LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1686|回复: 4

2.6内核的模块加载和内核启动过程

[复制链接]
发表于 2006-1-14 02:48:12 | 显示全部楼层 |阅读模式
这个问题郁闷我很久了:
我的机器是Dell LATITUDE D610
系统是ETCH,从SARGE升级的,安装了STOCK内核(2.6.12-1-686),机器启动的时候会跳过一些“Faild ...”的消息,还有一些红色的“Skip...”消息,分别是模块加载失败和重复检测到已加载模块从而忽略加载的日志,但是系统启动完毕在/var/log目录里面任何地方都找不到这些消息日志,我的机器运行时会无规律地freezing,鼠标键盘都没有响应的那种,包括从网络登录也失效,总之死得很彻底,看了一下系统加载的模块,全部有94个之多:
Module                  Size  Used by
fglrx                 441664  7
ipv6                  261984  8
thermal                13224  0
fan                     4516  0
button                  6416  0
processor              21876  1 thermal
ac                      4612  0
battery                 9348  0
usbhid                 36480  0
3c589_cs               12872  0
pcmcia                 27112  1 3c589_cs
ide_cd                 43140  0
cdrom                  40640  1 ide_cd
joydev                 10144  0
evdev                   9728  1
yenta_socket           23528  2
rsrc_nonstatic         13728  1 yenta_socket
snd_intel8x0           34016  1
snd_pcm_oss            54848  0
snd_mixer_oss          19968  2 snd_pcm_oss
snd_intel8x0m          19524  0
snd_ac97_codec         83960  2 snd_intel8x0,snd_intel8x0m
pcmcia_core            51924  4 3c589_cs,pcmcia,yenta_socket,rsrc_nonstatic
mousedev               11776  1
intel_agp              24092  1
i2c_i801                8716  0
ehci_hcd               35336  0
uhci_hcd               32176  0
psmouse                31236  0
tg3                   102052  0
snd_pcm                93416  4 snd_intel8x0,snd_pcm_oss,snd_intel8x0m,snd_ac97_codec
snd_timer              24644  1 snd_pcm
snd                    56260  7 snd_intel8x0,snd_pcm_oss,snd_mixer_oss,snd_intel8x0m,snd_ac97_codec,snd_pcm,snd_timer
soundcore               9696  2 snd
agpgart                35560  2 fglrx,intel_agp
serio_raw               7108  0
usbcore               122300  4 usbhid,ehci_hcd,uhci_hcd
i2c_core               21776  1 i2c_i801
rtc                    12376  0
snd_page_alloc          9860  3 snd_intel8x0,snd_intel8x0m,snd_pcm
parport_pc             36708  0
parport                36936  1 parport_pc
pcspkr                  3332  0
xfs                   634232  1
exportfs                5792  1 xfs
ext2                   69800  0
ext3                  141736  1
jbd                    56760  1 ext3
mbcache                 9252  2 ext2,ext3
ide_disk               18688  0
ide_generic             1152  0 [permanent]
via82cxxx              13820  0 [permanent]
trm290                  4196  0 [permanent]
triflex                 3680  0 [permanent]
slc90e66                5664  0 [permanent]
sis5513                16488  0 [permanent]
siimage                12448  0 [permanent]
serverworks             9032  0 [permanent]
sc1200                  7296  0 [permanent]
rz1000                  2400  0 [permanent]
piix                   10340  0 [permanent]
pdc202xx_old           11168  0 [permanent]
pdc202xx_new            9248  0 [permanent]
opti621                 4324  0 [permanent]
ns87415                 4264  0 [permanent]
hpt366                 20384  0 [permanent]
hpt34x                  5152  0 [permanent]
generic                 3808  0 [permanent]
cy82c693                4676  0 [permanent]
cs5530                  5312  0 [permanent]
cs5520                  4544  0 [permanent]
cmd64x                 12028  0 [permanent]
atiixp                  5904  0 [permanent]
amd74xx                14396  0 [permanent]
alim15x3               12268  0 [permanent]
aec62xx                 7360  0 [permanent]
ide_core              130388  28 ide_cd,ide_disk,ide_generic,via82cxxx,trm290,triflex,slc90e66,sis5513,siimage,serverworks,sc1200,rz1000,piix,pdc202xx_old,pdc202xx_new,opti621,ns87415,hpt366,hpt34x,generic,cy82c693,cs5530,cs5520,cmd64x,atiixp,amd74xx,alim15x3,aec62xx
sd_mod                 19664  4
ata_piix                9636  3
libata                 49604  1 ata_piix
scsi_mod              138472  2 sd_mod,libata
unix                   27888  94
fbcon                  39936  0
tileblit                2240  1 fbcon
font                    8096  1 fbcon
bitblit                 5920  1 fbcon
vesafb                  7992  0
cfbcopyarea             3872  1 vesafb
cfbimgblt               2816  1 vesafb
cfbfillrect             4128  1 vesafb
softcursor              2176  1 vesafb
capability              4584  0
commoncap               6912  1 capability
于是安装了modconf,把不要的模块拿掉(例如thermal/processor:会导致VMWare时钟紊乱,造成GUEST剧慢),但是重启以后这些模块又自动加载了,嗯,我了解这是2.6内核,已经不用modules.conf那套东西了,但是看看Debian的手册跟Google,2.6系列模块配置放到了/etc/modprobe.d下面,进去一看,晕了。
-rw-r--r--  1 root root  4360 2005-12-12 00:26 aliases
-rw-r--r--  1 root root 13947 2005-12-16 17:05 alsa-base
-rw-r--r--  1 root root   156 2005-12-16 17:05 alsa-base-blacklist
drwxr-xr-x  2 root root    17 2006-01-05 02:34 arch
lrwxrwxrwx  1 root root     9 2006-01-05 02:34 arch-aliases -> arch/i386
-rw-r--r--  1 root root  1406 2005-12-12 00:34 blacklist
-rw-r--r--  1 root root   284 2005-12-12 00:34 display_class
-rw-r--r--  1 root root    38 2005-12-19 00:20 libsane
lrwxrwxrwx  1 root root    41 2006-01-04 22:06 linux-sound-base_noOSS -> /lib/linux-sound-base/noOSS.modprobe.conf
-rw-r--r--  1 root root   363 2005-12-12 00:34 pnp-hotplug
-rw-r--r--  1 root root    59 2006-01-04 22:06 sound
aliases推荐不让改,alsa-base我用不着,arch里面的里面的里面有两个UNIX兼容二进制的东东和一个并口的东东,那个pnp-hotplug是沾边了,但是还是不对,加载了94个模块啊,不知道根据什么文件加载的,尤其是电源管理的那些东西(我的机器通常不关机,不用电池),不论是modconf还是直接rmmod -fv(这个会弄不好导致频繁的死机),反正只要重启那些模块就顽固地待在系统里。
我问google了,也没有看到什么有用的信息。
论坛的搜索也关掉了,我知道大概这个问题在这里有人遇到过,可就是找不着,干着急。那位如果遇到过,请贴个链接或者给点提示就行。
谢谢!
发表于 2007-7-11 13:55:23 | 显示全部楼层
I've got almost the same trouble...and i did a search on Google and found your post...
Guys,does it the only way to recompile the kernel? Or there's something like a script to load the modules that i can modify?
---
Sorry for english,i havn't got chinese input installed yet.
回复 支持 反对

使用道具 举报

发表于 2007-7-11 15:54:48 | 显示全部楼层
每一个安装laptop的,如果有问题,应该想到www.linux-laptop.org(现在已经换名了),那里有很多notebook的安装示例,如果是2.6.18以上的内核对于以前的机器应该问题不大,如果机器能全新安装就全新安装试试。
http://tuxmobil.org/dell.html
http://home.comcast.net/~canez/d610/
回复 支持 反对

使用道具 举报

发表于 2007-7-11 22:38:05 | 显示全部楼层
我的也是D610,直接装的Debian4.0,没发现什么问题,就修改了下Xorg.conf把显卡驱动改了下。
双编译了下内核,还是一切正常,就是休眠有些问题。
回复 支持 反对

使用道具 举报

发表于 2007-7-12 09:56:16 | 显示全部楼层
Post by favoyun
每一个安装laptop的,如果有问题,应该想到www.linux-laptop.org(现在已经换名了),那里有很多notebook的安装示例,如果是2.6.18以上的内核对于以前的机器应该问题不大,如果机器能全新安装就全新安装试试。
http://tuxmobil.org/dell.html
http://home.comcast.net/~canez/d610/


这两个网站不错啊,一直不知道。。实在是孤陋寡闻。。谢谢~
另:
关于系统启动时加载驱动模块的过程的详细文章能否介绍几篇呢?谢谢!
回复 支持 反对

使用道具 举报

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

本版积分规则

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