Linux内核编译详细过程【新手入门】

  1、准备源码   最新的源码可以从kernel.org上获取,如当前最新版本为2.6.31: $ wget linux-kernel/v2.6/linux-2.6.31.tar.bz2">http://oss.ustc.edu.cn/linux-kernel/v2.6/linux-2.6.31.tar.bz2   2、解压源码 $ tar xvf linux-2.6.31.ta
Linux内核编译详细过程【新手入门】

include/linux/mmzone.h error: linux/bounds.h

 问题: 编译内核驱动模块的时候,提示缺少头文件 mmzone.h 、bounds.h...等   include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory include/linux/mmzone.h:197:5: warning: "MAX_NR_ZONE
include/linux/mmzone.h error: linux/bounds.h

ld: cannot find /ubuntu/omnibook/sections.lds: No

编译下载的linux-source-2.6.32内核源码过程中,出现如下错误导致无法继续进行: ld: cannot find /ubuntu/omnibook/sections.lds: No such file or directory 原因与解决方法: 这是因为makefile中一处目录获取错误导致,修正一下即可。具体解决方法参考如下。 编辑文件 /usr/src/linux-so
ld: cannot find /ubuntu/omnibook/sections.lds: No