|
我编译的未改变过的内核
编译的命令是:(用了make zImage后,它提示内核太大,用make bzImage或者make modules,于是我改用了:
make oldconfig
make dep
make clean
make bzImage
出现了这样的提示
........
Root device is (3, 7)
Boot sector 512 bytes.
Setup is 4933 bytes.
System is 1217 kB
warning: kernel is too big for standalone boot from floppy
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/arch/i386/boot'
警告,于是我用了make modules,出现了
.........
make[2]: *** [ac.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers/acpi'
make[1]: *** [_modsubdir_acpi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl/drivers'
make: *** [_mod_drivers] Error 2
出现了上面的错误
我还是将产生的bzImage复制到了boot下,修改了grub.congfig,添加了
title Fedora Core (2.4.22-1.2115.nptl new)
root (hd0,6)
kernel /boot/bzImage ro root=LABEL=/ rhgb
initrd /boot/initrd-2.4.22-1.2115.nptl.img
重启后停留在
.......
ERROR:/bin/insmod exited abnormally!
Mounting /proc filesystem
Creating block devices
Creating root filesystem
Mounting root filesystem
mount:error 19 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) fail :2
umount/initrd/proc failed:2
Freeing unused kernel memory:136k freed
Kernel panic:No init found .Try passing init = option to kernel.
始终进不去,为什么啊 |
|