内核编译
Oliverlyn
学习是一个漫长的过程!长到从出生到死亡……
唯有对新知识、新技术保持激情才能长生不老!
展开
-
利用qemu-system-aarch64调试Linux内核(arm64)
qemu-system-aarch64调试linux-4.12内核借助Linux操作系统中已有的工具,比如mkinitramfs构建rootfs前提条件(0) arm64物理服务器或虚拟机(1) qemu-2.11.1: qemu-system-aarch64(2) busybox-1.31.1(3) 内核版本为linux-4.12安装qemu由于qemu的编译过程中存在-CFLA...原创 2020-03-29 19:17:51 · 3944 阅读 · 0 评论 -
compile linux kernel encount: make: warning: Clock skew detected. Your build may be incomplete.
问题描述:...make: warning: Clock skew detected. Your build may be incomplete....问题分析:出现这个提示的原因是因为 Makefile 的修改时间与系统的当前时间不匹配.问题解决:# find . -exec touch \{\} \;...原创 2019-01-21 14:11:21 · 328 阅读 · 0 评论 -
Disable the feature: KASLR Before debugging the kernel with qemu+gdb
qemu+gdb debugging kernel (version>4.8)When debugging the linux kernel (version > 4.8) with qemu and gdb, something wrong occurs:picture as follows:Why?The kernel (version >4.8...原创 2018-03-08 21:16:54 · 1139 阅读 · 0 评论 -
GDB调试Qemu程序
1.编译与安装qemu时需要添加debug选项,即--enable-debug,--enable-debug-info2.编译内核,根据需要,选择编译选项(bzImage)3.编译安装BusyBoxBusybox Settings ---> --- Build Options [*] Build BusyBox as a position independent ex原创 2017-10-08 19:41:47 · 1891 阅读 · 2 评论 -
ubuntu获取源码方法
原文地址:https://github.com/hokein/Wiki/wiki/ubuntu%E8%8E%B7%E5%8F%96%E6%BA%90%E7%A0%81%E6%96%B9%E6%B3%95以下载ls的源码为例说明:首先要知道ls是属于哪个包的,可以通过下面命令: #dpkg -S 'command name' 通用格式 $ dpkg -S /转载 2017-02-16 21:30:39 · 1182 阅读 · 0 评论 -
如何在Debian或Ubuntu上安装完整的内核源码
原文地址:http://ask.xmodulo.com/install-full-kernel-source-debian-ubuntu.html原创:LCTT https://linux.cn/article-5015-1.html 本文地址:https://linux.cn/article-5015-1.html转载 2017-02-16 21:23:05 · 1595 阅读 · 0 评论 -
加快编译linux内核速度的四种方法
(1)ccache: 减少重复编译相同代码的时间,加快编译速度(2)make -jN: 充分利用本机计算资源,N为线程数,一般区机器核数的整数倍(3)distcc: 利用多台计算机资源共同编译一个大型程序,内核或者大型程序(4)tmpfs: 解决IO瓶颈,充分利用内存资源原创 2016-12-08 21:42:14 · 11296 阅读 · 0 评论 -
模块加载常见之错误及策略
一、模块加载常见错误(以执行 insmod virtio_net.ko为例)(1) Unknown symbol in module insmod: ERROR: could not insert module virtio_net.ko: Unknown symbol in module 原因: 依赖的模块没有加载,需要先加载 depends 中原创 2017-01-05 10:44:10 · 5185 阅读 · 0 评论 -
Linux kernel compile--linux-3.18.8编译过程
linux-3.18.8内核编译过程原创 2015-02-28 16:03:36 · 2128 阅读 · 0 评论