Chinaunix首页 | 论坛 | 博客
  • 博客访问: 241023
  • 博文数量: 43
  • 博客积分: 1878
  • 博客等级: 上尉
  • 技术积分: 457
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 11:08
文章分类

全部博文(43)

文章存档

2011年(3)

2010年(40)

分类: LINUX

2011-03-07 09:33:15

系统安装centos5.4,因为工作需要,需升级内核。选择的内核源码也是2.6.36,编译过程如下:
1,make mrproper
2,make clean
3,cp /boot/config-2.6.18-***   /usr/src/linux-2.6.36/.config (我将内核解压到/usr/src/linux-2.6.36目录)
4,make menuconfig (选择开启Inter ESB、 ICH、 PIIX3、 PIIX4、 PATA/SATA)
5,make bzImage
6,make modules
7,make modules_install
8,make install
 
编译完后重新引导,出现以下问题
Unable to access resume device(LABLE=SWAP-hdc3)
mount: can't not find FileSystem "/dev/root"
setuproot: moving /dev failed: No such file or directory
setuproot: error mounting /proc : No such file or directory
setuproot: error mounting /sys    : No such file or directory
switch root : mount failed: No such file or directory
kernel panic - not syncing : Attempted to kill init
 
解决方法:
make menuconfig时
eneral Setup-> enable deprecated sysfs features to support old【y】
(即生成的新 .config文件中的 CONFIG_SYSFS_DEPRECATED_V2=y)
阅读(3483) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~