QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

楼主: Nocturne

内核编译问题!!参考了多篇文章。还是无法解决!!!

[复制链接]
发表于 2003-4-9 11:41:09 | 显示全部楼层
do u use ext3? if so, u may need initrd support. redhat seems has some hacks on that.
and u can use u old kernel to boot and lsmod to see what modules are needed, then u can know which modules u should include in u initrd. it is really painful. i remember i spent several days on my dell poweredge server because of similar problem. but i forgot how i solved it. that is one year ago. and the cache in my brain are smaller and smaller now.
回复

使用道具 举报

发表于 2003-4-9 15:25:54 | 显示全部楼层
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&p=80919#80919


link /usr/inculde/scsi
回复

使用道具 举报

 楼主| 发表于 2003-4-9 19:37:45 | 显示全部楼层
顺便问一下,如何编译出BusLogic这个模块?我把SCSI编译模块后/lib/modules里面没有BusLogic.o这个文件。
回复

使用道具 举报

发表于 2003-4-9 21:27:01 | 显示全部楼层
under scsi low level device, there is a buslogic support, choose it as module as well.
回复

使用道具 举报

发表于 2003-4-9 23:14:23 | 显示全部楼层
i install a rh8.0 on my vmware (my vmware is run on gentoo linux 1.4). and recompile the 2.4.20 kernel. and my new kernel can boot up. my new kernel use initrd.
*i compile scsi support, scsi disk and buslogic all as modules.
*under block devices, say y to  ramdisk support, init rd support. use default 4M size. this is very important for mkinitrd support. if u compile it as module, it is useless.
*make dep bzImage modules modules_install.
*mkinitrd /boot/initrd-2.4.20.img 2.4.20
*i change my /etc/fstab, change that root to /dev/sda2 instead of that LABEL/. u can try to see if this is needed.
*choose ext3, in fact, i think ext3 can be module too.
*add entry in u grub.conf, nothing special, indicate u want to use initrd-2.4.20.img
*reboot and should work
回复

使用道具 举报

发表于 2003-4-9 23:32:21 | 显示全部楼层
i also can boot it without initrd support. u need choose all into kernel, including, ext3, scsi support, scsi disk support, buslogic support. need not choose ramdisk and initrd support.

btw, in my last post, i mention the change of the /etc/fstab. in fact, u need not change the /etc/fstab, either can work. i alredy test it.

another issue is about grub.conf. if u use initrd, u can use root=LABEL=/. if no, u need use root=/dev/sda2. u can try it and tell me what's happen on u box.

good luck. u linux should be able to boot now
回复

使用道具 举报

 楼主| 发表于 2003-4-10 14:06:50 | 显示全部楼层
问题终于解决了,果然是BusLogic的原因!
感谢各位的支持!
特别是cheungming兄。Thank you very much!
回复

使用道具 举报

 楼主| 发表于 2003-4-10 15:07:08 | 显示全部楼层
补充一点,正如cheungming兄所说,如果要root=LABEL=/生效而不是使用root=dev/sda2这样的格式,必须使用initrd,而其他诸如ext3,SCSI Support等等都可以编译成模块。
回复

使用道具 举报

发表于 2003-4-10 22:58:40 | 显示全部楼层
u are so welcome.
回复

使用道具 举报

发表于 2003-4-10 23:39:07 | 显示全部楼层
[quote:c35f133501="Nocturne"]补充一点,正如cheungming兄所说,如果要root=LABEL=/生效而不是使用root=dev/sda2这样的格式,必须使用initrd,而其他诸如ext3,SCSI Support等等都可以编译成模块。[/quote]

编译进内核不行吗?
回复

使用道具 举报

发表于 2003-4-10 23:42:19 | 显示全部楼层
no, this is grub problem, not kernel problem.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-18 14:34 , Processed in 0.107868 second(s), 13 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表