在2.4.20-8内核下编译2.4.20内核(内核编译)

717阅读 1评论2009-09-08 red_eyed_hare
分类:LINUX

我用的是linux red hat 9.0,内核2.4.20-8,我直接编译内核,能通过编译,但是启动的时候就出现

vfs:can’t open root device “LABEL=/” or 00.00

please append a correct “root=” boot option

kernel panic: VFS: unable to mount root fs on 00.00

不知道是什么原因?

但是现在我重新下载了一份2.4.20的内核,一样的编译过程,内核可以正常启动,真搞不懂是什么地方出现了问题?

现在我总结一下成功编译2.4.20内核的过程:

1.把linux-2.4.20.tar.gz复制到/usr/src目录下

# cd /usr/src

# tar -zxvf  linux-2.4.20.tar.gz

# ln -s linux-2.4.18 linux

2.选择编译选项

# cd /usr/src/linux

# make mrproper

# make xconfig

a)在Block devices选项中-->

Loopback device support 选择y

Network block device support 选择y

RAM disk support 选择y

initial RAM disk(initrd) support 选择y

Per partition statistics in /proc/partitions选择y

b)在SCSI support 选项中-->

SCSI generic support 选择y

SCSI low-level drivers-->BusLogic SCSI support 选择m

c)在File systems 选项中-->

Ext3 journalling file system support 选择y

JBD (ext3) debugging support 选择y

DOS FAT fs support 选择y

MSDOS fs support 选择y

NTFS file system support (read only) 选择y

其他都是默认配置,保存退出

3.编译内核

# make dep

# make clean

# make bzImage

# make modules

# make modules_install

# make install

以上就是编译2.4.20的全部过程,到这一步你就可以reboot系统,开机选择2.4.20内核便可以享受自己的新内核了。

编译内核出现问题比较多,以上的步骤是一次通过的,没有任何问题,可供大家参考。但是同样我直接在red hat 9.0下编译(2.4.20-8的核)就无法开机。

有过经验的可以留言和我说下,谢谢了!

以上编译还出现问题的,可以可我联系,我可以帮大家看看。

 

 

 

 

 

上一篇:2.4.20-8到2.6.18内核升级(内核编译)
下一篇:2.4.20-8内核编译

文章评论