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内核编译详细过程【新手入门】

linux2.6.38之后内核版本调用open_by_devnum()函数出错

linux2.6.38之后内核版本下编译内核模块,当调用open_by_devnum()函数时会出错。该问题原因在于:在linux2.6.37版本以后的内核中,已将open_by_devnum()函数去除,而用 blkdev_get_by_dev函数取代其功能。 可参考如下引用内容: xen/blkback: Update to use blkdev_get_by_dev instead
linux2.6.38之后内核版本调用open_by_devnum()函数出错

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

Ubuntu系统内核更新与垃圾清理方法

Ubuntu系统定期更新内核,你该将系统内核升级到最新版本,那么如何删除老的版本?系统由于各种软件升级及使用产生的垃圾该如何清理?本文将给你最好的答复。 当我第一次更新内核时,提示我: “引导文件menu.list经过编辑,是否自动更新? 当时我想,更新了还要重新编辑,麻烦。 ”no“。 为什么我要编辑它?因为硬件的问题,我加了个参数 noapic,才能启动系统。 于是,问题来了,虽然机器上安装了
Ubuntu系统内核更新与垃圾清理方法