Dragonfly 发表于 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.

maso 发表于 2003-4-9 15:25:54

http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&p=80919#80919


link /usr/inculde/scsi

Nocturne 发表于 2003-4-9 19:37:45

顺便问一下,如何编译出BusLogic这个模块?我把SCSI编译模块后/lib/modules里面没有BusLogic.o这个文件。

Dragonfly 发表于 2003-4-9 21:27:01

under scsi low level device, there is a buslogic support, choose it as module as well.

Dragonfly 发表于 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 toramdisk 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

Dragonfly 发表于 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

Nocturne 发表于 2003-4-10 14:06:50

问题终于解决了,果然是BusLogic的原因!
感谢各位的支持!
特别是cheungming兄。Thank you very much!

Nocturne 发表于 2003-4-10 15:07:08

补充一点,正如cheungming兄所说,如果要root=LABEL=/生效而不是使用root=dev/sda2这样的格式,必须使用initrd,而其他诸如ext3,SCSI Support等等都可以编译成模块。

Dragonfly 发表于 2003-4-10 22:58:40

u are so welcome.

cnhnln 发表于 2003-4-10 23:39:07

补充一点,正如cheungming兄所说,如果要root=LABEL=/生效而不是使用root=dev/sda2这样的格式,必须使用initrd,而其他诸如ext3,SCSI Support等等都可以编译成模块。

编译进内核不行吗?

Dragonfly 发表于 2003-4-10 23:42:19

no, this is grub problem, not kernel problem.
页: 1 [2]
查看完整版本: 内核编译问题!!参考了多篇文章。还是无法解决!!!