make menuconfig dep clean bzImage modules modules_install depmod -a 执行完上面步骤后,编译成功,然后
#cp /usr/src/linux2.4.20-8/System.map /boot/System.map-2.4.20
#cp /usr/src/linux2.4.20-8/arch/i386/bzImage /boot/wwybzImage-2.4.20,
再修改GRUB/////////////////
default=1
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
///这里开始修改
title wwy Linux
root(hd0,6)
kernel /wwybzImage-2.4.20 ro root=LABEL=/
initrd /initrd-2.4.20-8.img 这部分都是参照原来GRUB文件来修改的
title DOS
rootnoverify (hd0,0)
chainloader +1
重新启动系统后,出现以下一些错误:
loading jbd.o module
/lib/jbd.o:kernel-module version mismatch.h
/lib/jbd.o was compiled for kernel version 2.4.20-8
while this kernel is version 2.4.20-8custom
ERROR:/bin/insmod exited abnormally!
.......
mount:error 19 mounting ext3
...
umount /initrd/proc failed:2
kernel panic:No init found Try Passing init=optiong to kernel ///关键这里?????
就停在这里,不动了
谢谢啊