viskanta 发表于 2003-12-11 20:51:01

求助:内核后modules无法加载

radhat 9.0,自带的linux-2.4.20-8内核
内核配置基本没有动,特别是没有动USBsupport,仅仅选择CPU类型,网卡8139,和声卡
基本步骤; make mrproper
         make xconfig
         make dep
         make bzImage
         make modules
         make modules_install
         depmod -a
         make install
在此过程中,一直正常,没有遇到error.
重启后,启动时有如下的 :屏幕卷动太快了,有何办法看全那些failed
基本有两类: USB和iptables
initializing USB controller (usb-uhci):modprobe: can't locate module usb-uhci
其他还有USB file system,USB keyboard,和USB mouse等。

另一个是关于iptable的:大致的意思是can't locate module ip_tables,其余都是和iptable相关的错误。
当启动结束后能正常使用系统,包括xwindow和其他软件,但是在重启时:
当用reboot 重启时出现:
Syncing hardware clock to system time modprobe: can't locate module char-major-10-135
过一段时间才关机。
如何解决,请帮助我。谢谢
:roll:

Dragonfly 发表于 2003-12-11 23:39:40

post u .config file here.

i guess u can solve u question by

choose usb related as M instead of Y
choose iptable as M instead of Y
choose rtc, in character devices options menu

viskanta 发表于 2003-12-12 09:48:38

谢谢Dragonfly回复,
choose iptable as M instead of Y,请问iptable选项在哪里?
我的.config是哪个文件啊?

Dragonfly 发表于 2003-12-12 11:44:07

cd /usr/src/linux-2.4.20-8
ls -a

u will find u .config file

and sorry that iptables can only be Y
see Network packet filtering (replaces ipchains)

viskanta 发表于 2003-12-14 16:59:13

三天下来三个问题搞定两个,总结一下:(并且谢谢Dragonfly)
用 charater devices的enhanced real time clock support将Can't locate module char-major-10-135 解决了

选择Support for USB
    Preliminary USB device filesystem

USB Human Interface Devic (full HID) support
USB HIDBP Keyboard(basic) support
USB HIDBP Mouse(base) suppport
编入模块
重要的是在Input core supprt中
将input core supprt
Keyboard support
Mouse Support
编入模块。USB的问题也解决了。可是iptable的问题依旧。


Networking options中已选择了Network packet filtering (replaces ipchains)
                  又在IP:Netfiler Configuration中 将IP tables support(required for filtering/masq/NAT)编入模块。
但是boot后依然出现

iptables: modprobe:
iptables: Can't locate module ip_tables
can't initialize iptables table
`filter': iptables who? (do you need to insmod?)
iptables: Perhaps iptables or your kernel needs to be upgraded.
iptables: Flushing all current rules and user defined chains: failed
iptables: modprobe: Can't locate module ip_tables
iptables: Applying iptables firewall rules failed
难道大家没有出现这个问题吗,在网上也搜索不到相关解决办法,我可是用RedHat 9.0发行版中的内核编译的,为什么不行想不明白啊。
我倒是也不想用什么firewall,只是看着那些failed不舒服,请帮助我。

sarge_ma 发表于 2003-12-14 17:41:31

你虽然把
ip_tables
iptable_filter
编进了模块,可是启动时候你没有加载啊。

就这么简单一回事 :)

viskanta 发表于 2003-12-14 17:49:54

我应该怎么做才能去掉那些讨厌的Failed呢?

rt

sarge_ma 发表于 2003-12-14 18:10:36

别问我怎么随启动加载,我不知道redhat用什么init script控制modules,自己查查吧

sarge_ma 发表于 2003-12-14 20:58:06

reject是因为lokkit默认用这个,自己改成drop就是了

viskanta 发表于 2003-12-14 22:25:11

照你们所说,完全成功了。非常感谢,还是觉得自己知识缺乏,不过对Linux来说,要想大众化/普及化方向发展还有很多路要走。
根据你们所说,在 Networking Options/ IP:Netfilfer Configuration / 将Packet Filtering和 REJECT target support编成模块,的确可行。不过最初编译内核的时候,Network Packet filtering(replaces ipchains)是“n”,我没有动过,这样
IP:Netfilfer Configuration是灰色的,我也无法进去选 IP tables support ( require for filtering/masq/NAT),但是如此编译后,boot就会出现 can't locate modules:ip_tables, 所以我才选Network Packet filtering(replaces ipchains)为“Y”(选不了M),进入IP:Netfilfer Configuration,选择了IP tables support (require for filtering/masq/NAT)。
按照你们的说法,用原始脚本编译不会出问题的,但我的情况恰恰相反,真奇怪。
我想再从头试试,反正知道问题的原因了。
再次感谢你们。
页: [1]
查看完整版本: 求助:内核后modules无法加载