- 论坛徽章:
- 0
|
我的编译环境是:
win2K上装VMWare Workstation,VMware上跑linux4.2(kernel 2.0.30),编译新内核2.2.25
#cd /usr/src
#rm -f linux
#tar xzvf linux-2.2.25.tar.gz
#ln -s linux-2.2.25 linux
#cd linux
#make mrproper
#make menuconfig /* 主要做的改动是把ramdisk,BusLogic 编进内核 */
#make dep; make clean; make bzImage; make modules; make modules_install
#vim /etc/lilo.conf
boot=/dev/sda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.2.25
label=new
root=/dev/sda1
initrd=/boot/initrd-2.2.25.img
read-only
image=/boot/vmlinuz
label=linux
root=/dev/sda1
initrd=/boot/initrd
read-only
#cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-2.2.25
#cp /usr/src/linux/System.map /boot/System.map-2.2.25 /* 这一步好像没有必要????
* 只有vmlinuz不同,其它的System.map,boot.b,map
* 都相同,会不会有问题? */
#mkinitrd -f -v /boot/initrd-2.2.25.img 2.2.25
#lilo -v
#reboot
/boot下主要文件的信息:
System.map ->; System.map=2.0.30
module-info ->; module-info-2.0.30
vmlinuz ->; vmlinuz-2.0.30
出错信息:
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Loading BusLogic module
kernel_version needed, but can't be found
VFS: Cannot open root device 08:01
Kernel panic: VFS: Unable to mount root fs on 08:01
总是死在这里,问题出在哪里?恳请高手赐教!谢过! |
|