1) make clean
2) make mrproper
3) make xconfig
注意设置CONFIG_SYSFS_DEPRECATED_V2=y
默认该选项为not set,被注释掉的。如果不做如上设置用新编译的内核启动时会出现如下问题。切记!
https://patchwork.kernel.org/patch/37444/
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmounting old /proc
unmounting old /sys
switchroot: mount failed: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
4) make bzImage
5) make modules
6) make modules_install, 这是/lib/modules/2.6.33.3目录会创建
7) cp bzImage to /boot folder
8) cd to /boot folder, running "mkinitrd initrd.img 2.6.33.3" to create ram disk
9) update grub.conf
10) reboot system to boot machine using new created kernel
[@more@]
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/80587/viewspace-1033463/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/80587/viewspace-1033463/