系统安装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)
阅读(3589) | 评论(0) | 转发(0) |