ºìÁªLinuxÃÅ»§
Linux°ïÖú

LinuxÄں˹ÜÀí»ù´¡ÖªÊ¶¸ÅÊö

·¢²¼Ê±¼ä:2006-02-24 00:33:52À´Ô´:ºìÁª×÷Õß:wide
Ò»¡¢Ê²Ã´ÊÇÄںˣ»
Äں˹ٷ½£ºhttp://www.kernel.org

ÄÚºËÑóÎÄÓà kernel£¬ÎҸղŷ­ÁËһϴʵ䣬kernel ÖÐÎÄÒâ˼ÊÇÄںˡ¢ºËÐÄ¡¢ÖÐÐÄ¡¢¾«ËèµÄÒâ˼£»Ò²ÊǹûÈÊ¡¢¹ûºËµÄÒâ˼¡£´Ó×ÖÃæÀí½â£¬kernel ÊÇÒ»ÊÂÎïµÄÖÐÐÄ£¬Ö²ÎïµÄ¹ûʵ×îÖØÒªµÄÒ²ÊǹûÈʺ͹ûºË£»:) ÓÉ´ËÎÒÃÇ¿ÉÒÔÍƶÏÄÚºËÊDzÙ×÷ϵͳµÄÖÐÐÄ¡£

ÎÒÃÇÖªµÀLinus Torvalds ¿ª·¢ÁËLinux £¬ÆäʵËû¿ª·¢µÄ¾ÍÊÇÄںˣ¬°´Äں˹ٷ½Ö÷Ò³µÄÀí½â£¬Õâ¸öÄں˾ÍÊÇLinux £»ÆäËüµÄÀ©Õ¹ºÍÓ¦Óö¼ÊÇΧÈÆÄں˶øÕ¹¿ªµÄ¡£ËùÓÐLinuxÓ¦ÓóÌÐò¶¼»áºÍÄں˷¢ÉúÖ±½Ó»òÕß¼ä½ÓµÄ½Ó´¥£»±ÈÈçÓ²¼þÐèÒªÄÚºËÖ§³Ö£¬ÍøÂçµÄͨÐÅÒ²ÐèÒªÄÚºËÖ§³Ö£»Îļþϵͳ¸üÐèÒªÄÚºËÖ§³Ö... ...

Ö±ÑÔÎÒµÄÄÜÁ¦µÄ²»ÐУ¬Èç¹ûÄúÏëÁ˽âºÍѧϰ½â²Ù×÷ϵͳ£¬ÎÒдµÄ½Ì³ÌÖ»Êdzõ¼¶Ó¦Óã¬ÀíÂÛÐԵĶ«Î÷²»ÊÇÒ»ÑÔÁ½ÓïÄÜ˵µÄÇå³þµÄ£¬¸ü²»ÊÇÓ¦ÓÃÕßÄÜ˵µÄÇå³þµÄ¡£

¶þ¡¢ÎªÊ²Ã´ÐèÒª±àÒëÄں˺͹ÜÀíÄÚºË

Ó²¼þÊÇÐèÒªÄÚºËÖ§³Ö²ÅÐУ¬ÓÐЩӲ¼þµÄÖ§³ÖûÓб»±àÈëÄںˣ¬ÕâÒ²ÐèÒªÎÒÃÇÖرàÄںˣ»Äں˵İüº¬µÄ²»½ö½öÊÇÉ豸µÄÇý¶¯£¬»¹ÓÐÆäËüµÄÄÚÈÝ£¬±ÈÈçÍøÂçЭÒéµÄÖ§³Ö£¬·À»ðǽµÄÖ§³Ö... ... ±ÈÈçiptablesµÄʵÏÖ£¬ÓÐЩ¹¦ÄÜÊÇÐèÒªÄÚºËÖ§³ÖµÄ£¬Èç¹ûÄÚºËÓëiptablesÏà¹ØµÄÄÚÈÝûÓб»±àÈ룬iptables Ïà¹ØµÄ¹¦ÄܾÍÎÞ·¨ÊµÏÖ£»

Èý¡¢Äں˱àÒë·½·¨

Çë²Î¿¼£º¡¶±àÒëÄں˲Ù×÷Á÷³Ì ©¤©¤ÎªÐÂÊÖÖ¸ÄÏ¡·

ËÄ¡¢¹ÜÀíÄÚºËÄ£¿éµÄÏà¹ØÃüÁî

1¡¢lsmod ÁмÓÒÔ¹ÒÔصÄÄÚºËÄ£¿é£»

lsmod ÊÇÁгöĿǰϵͳÖÐÒѼÓÔصÄÄ£¿éµÄÃû³Æ¼°´óСµÈ£»ÁíÍâÎÒÃÇ»¹¿ÉÒԲ鿴 /proc/modules £¬ÎÒÃÇÒ»Ñù¿ÉÒÔÖªµÀϵͳÒѾ­¼ÓÔصÄÄ£¿é£»

[root@localhost beinan]# lsmod

2¡¢modinfo ²é¿´Ä£¿éÐÅÏ¢£»

modinfo ¿ÉÒԲ鿴ģ¿éµÄÐÅÏ¢£¬Í¨¹ý²é¿´Ä£¿éÐÅÏ¢À´Åж¨Õâ¸öÄ£¿éµÄÓÃ;£»

[root@localhost beinan]# moinfo Ä£¿éÃû

¾ÙÀý£º

ÒýÓÃ:
[root@localhost beinan]# modinfo ne2k-pci
filename: /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/ne2k-pci.ko
author: Donald Becker / Paul Gortmaker
description: PCI NE2000 clone driver
license: GPL
parmtype: debug:int
parmtype: options:array of int
parmtype: full_duplex:array of int
parm: debug:debug level (1-2)
parm: options:Bit 5: full duplex
parm: full_duplex:full duplex setting(s) (1)
vermagic: 2.6.11-1.1369_FC4 686 REGPARM 4KSTACKS gcc-4.0
depends: 8390
alias: pci:v000010ECd00008029sv*sd*bc*sc*i*
alias: pci:v00001050d00000940sv*sd*bc*sc*i*
alias: pci:v000011F6d00001401sv*sd*bc*sc*i*
alias: pci:v00008E2Ed00003000sv*sd*bc*sc*i*
alias: pci:v00004A14d00005000sv*sd*bc*sc*i*
alias: pci:v00001106d00000926sv*sd*bc*sc*i*
alias: pci:v000010BDd00000E34sv*sd*bc*sc*i*
alias: pci:v00001050d00005A5Asv*sd*bc*sc*i*
alias: pci:v000012C3d00000058sv*sd*bc*sc*i*
alias: pci:v000012C3d00005598sv*sd*bc*sc*i*
alias: pci:v00008C4Ad00001980sv*sd*bc*sc*i*
srcversion: 6ACE95F441CD26DF9DC31C2


ÉÏÃæµÄÀý×ÓÊÇÎÒÃDz鿴 ne2k-pci Õâ¸öÄ£¿éµÄÐÅÏ¢£¬Í¨¹ý²é¿´£¬ÎÒÃÇÖªµÀne2k-pci Ä£¿éÊÇ8029Íø¿¨£¨PCI NE2000 clone driver£©µÄÇý¶¯£»Ä£¿éÊÇλÓÚ /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/ ÖÐne2k-pci.ko

ÎÒÃÇÏÖÔÚ³£ÓõÄÍø¿¨Ò²ÓÐ8139µÄ£¬8139Íø¿¨ËùÓõÄÇý¶¯ÊÇ 8139too £»²é²é¿´£¿

[root@localhost beinan]# modinfo 8139too

ÎÒÃÇÔÙ²é²évfat ºÍntfs µÄÄ£¿éÐÅÏ¢£»

[root@localhost beinan]# modinfo vfat
[root@localhost beinan]# modinfo ntfs

×Ô¼º³¢ÊÔһϣ»

×¢Ò⣺ Ä£¿éÃûÊDz»ÄÜ´øÓкó׺µÄ£¬ÎÒÃÇͨ¹ýmodprobe -l Ëù¿´µ½µÄÄ£¿é£¬¶¼ÊÇ´øÓÐ.ko »ò.oºó׺£»

3¡¢modprobe ¹ÒÔØÐÂÄ£¿éÒÔ¼°ÐÂÄ£¿éÏàÒÀÀµµÄÄ£¿é

modprobe ÎÒÃdz£ÓõŦÄܾÍÊǹÒÔØÄ£¿é£¬ÔÚ¹ÒÔØij¸öÄÚºËÄ£¿éµÄͬʱ£¬Õâ¸öÄ£¿éËùÒÀÀµµÄÄ£¿éÒ²±»Í¬Ê±¹ÒÔØ£»µ±È»modprobe Ò²ÓÐÁгöÄÚºËËùÓÐÄ£¿é£¬»¹ÓÐÒƳýÄ£¿éµÄ¹¦ÄÜ£»ÏÂÔÚÎÒÃǾٸöÀý×Ó˵һ˵ÔÛÃdz£ÓõŦÄܺͲÎÊý£»

modprobe [-v] [-V] [-C config-file] [-n] [-i] [-q] [-o ] [parameters...]
modprobe -r [-n] [-i] [-v] ...
modprobe -l -t [ -a ...]

ÉÏÃæÊÇmodprobe µÄÓ÷¨£¬¾ßÌå¸üΪÏêϸµÄ°ïÖú£¬ÎÒÃÇ¿ÉÒԲ鿴 man modprobe £»

[root@localhost beinan]# modprobe -c

modprobe -c ¿ÉÒԲ鿴modules µÄÅäÖÃÎļþ£¬±ÈÈçÄ£¿éµÄ±ðÃûÊÇʲôµÈ£»

[root@localhost beinan]# modprobe -l

modprobe -l ÊÇÁгöÄÚºËÖÐËùÓеÄÄ£¿é£¬°üÀ¨ÒѹÒÔغÍδ¹ÒÔصģ»Í¨¹ýmodprobe -l £¬ÎÒÃÇÄܲ鿴µ½ÎÒÃÇËùÐèÒªµÄÄ£¿é£¬È»ºó¸ù¾ÝÎÒÃǵÄÐèÒªÀ´¹ÒÔØ£»Æäʵmodprobe -l ¶ÁÈ¡µÄÄ£¿éÁбí¾ÍλÓÚ /lib/modules/'uname -r' Ŀ¼ÖУ»ÆäÖÐuname -r ÊÇÄں˵İ汾£»

[root@localhost beinan]# uname -r
2.6.11-1.1369_FC4
[root@localhost beinan]# ls /lib/modules/2.6.11-1.1369_FC4/

ͨ¹ýÉÏÃæµÄÃüÁ×Ô¼ºÊÔÊÔ¿´£¿

[root@localhost beinan]# modprobe Ä£¿éÃû ×¢£º¹ÒÔØÒ»¸öÄ£¿é£»

¾ÙÀý£º

[root@localhost beinan]# modprobe ne2k-pci ×¢£º¹ÒÔØ ne2k-pci Ä£¿é£»
[root@localhost beinan]# modprobe vfat ×¢£º¹ÒÔØvfat Ä£¿é
[root@localhost beinan]# modprobe ntfs ×¢£º¹ÒÔØntfs Ä£¿é
[root@localhost beinan]# lsmod ×¢£ºÁгöÒѹÒÔØÄ£¿é£¬ ÎÒÃǻῴµ½ne2k-pci £¬vfat £¬ntfsµÄÄ£¿é £»

×¢Ò⣺ Ä£¿éÃûÊDz»ÄÜ´øÓкó׺µÄ£¬ÎÒÃÇͨ¹ýmodprobe -l Ëù¿´µ½µÄÄ£¿é£¬¶¼ÊÇ´øÓÐ.ko »ò.oºó׺£»

[root@localhost beinan]# modprobe -r Ä£¿éÃû ×¢£ºÒƳýÒѼÓÔصÄÄ£¿é£¬ºÍrmmod ¹¦ÄÜÏàͬ£»

×¢Ò⣺ Ä£¿éÃûÊDz»ÄÜ´øÓкó׺µÄ£¬ÎÒÃÇͨ¹ýmodprobe -l Ëù¿´µ½µÄÄ£¿é£¬¶¼ÊÇ´øÓÐ.ko »ò.oºó׺£»

[root@localhost beinan]# modprobe -r Ä£¿éÃû

¾ÙÀý£º

[root@localhost beinan]# modprobe -r ne2k-pci

¾Í˵Õâô¶à°É£¬¸üΪÏêϸµÄ»¹ÊÇÓà man modprobe À´²é¿´ºÍ³¢ÊÔ£»

4¡¢rmmod ÒƳýÒѹÒÔØÄ£¿é£»

ÃüÁî¸ñʽ£º

rmmod Ä£¿éÃû

×¢Ò⣺ Ä£¿éÃûÊDz»ÄÜ´øÓкó׺µÄ£¬ÎÒÃÇͨ¹ýmodprobe -l Ëù¿´µ½µÄÄ£¿é£¬¶¼ÊÇ´øÓÐ.ko »ò.oºó׺£»

¾ÙÀý£º

[root@localhost beinan]# rmmod vfat ×¢£ºÒƳýÒѹÒÔصÄÄ£¿évfat

5¡¢depmod ´´½¨Ä£¿éÒÀÀµ¹ØϵµÄÁбí

Õâ¸öÄ£¿é¹ÜÀí¹¤¾ßÊÇ´´½¨Ä£¿éÒÀÀµ¹ØϵµÄÁÐ±í£¬Óм¸¸ö²ÎÊýÎÒÃÇ×¢ÒâһϾÍÐÐÁË£¬Ä¿Ç°µÄµÄLinux ·¢ÐаæËùÓõÄÄÚºËÊÇ2.6x°æ±¾£¬ÊÇ×Ô¶¯½â¾öÒÀÀµ¹Øϵ£¬ËùÒÔÕâ¸öÃüÁîÖªµÀ¾ÍÐÐÁË£»Ä£¿é֮ǰҲÓÐÒÀÀµ¹Øϵ£¬±ÈÈçÎÒÃÇÏëÇý¶¯USB Òƶ¯Ó²ÅÌ£¬Ä¿Ç°ÓÐÁ½ÖÖÇý¶¯£¬Ò»ÖÖÊÇudev £¬ÔÚÄÚºËÖÐÓУ¬µ«Ä¿Ç°²»Ì«Îȶ¨£»ÁíÒ»ÖÖ°ì·¨ÊÇÓÃusb-storageÇý¶¯£¬¶øusb-storage ÒÀÀµµÄÄ£¿éÊÇscsi Ä£¿é£¬ËùÒÔÎÒÃÇÒªÓÃusb-storage µÄÄ£¿é£¬Ò²µÃ°Ñscsi ±àÒë°²×°£»

ÔپٸöÀý×Ó£ºsataµÄÓ²ÅÌ£¬ÔÚLinuxÖеÄÉ豸±íʾµÄÊÇ/dev/sd* £¬±ÈÈç /dev/sda£¬/dev/sdb µÈ... ϵͳҪÇý¶¯ sataÓ²ÅÌ£¬ÔòÐèÒª°ÑsataÔÚÄÚºËÖÐÑ¡ÖУ¬»ò±àÒë³ÉÄ£¿é£¬»òÄÚÖÃÓÚÄÚºËÖ®ÖУ¬ÔÚ´Ëͬʱ£¬»¹ÐèÒªÔÚÄÚºËÖÐÑ¡ÖÐide £¬scsi µÄÖ§³ÖµÈ£»

depmod ¹¤¾ßµÄÑóÎÄÔ­Ò⣺depmod -- program to generate modules.dep and map files.£¨ÎÒÒëµÄ£ºÎªmodules.dep Îļþ»òÓ³ÉäÎļþ´´½¨ÒÀÀµ¹Øϵ£©

[root@localhost beinan]# depmod -a ×¢£ºÎªËùÓÐÁÐÔÚ/etc/modprobe.conf »ò/etc/modules.conf ÖеÄËùÓÐÄ£¿é´´½¨ÒÀÀµ¹Øϵ£¬²¢ÇÒдÈëµ½modules.depÎļþ£»
[root@localhost beinan]# depmod -e ×¢£ºÁгöÒѹÒÔص«²»¿ÉÓõÄÄ£¿é£»
[root@localhost beinan]# depmod -n ×¢£ºÁгöËùÓÐÄ£¿éµÄÒÀÀµ¹Øϵ£¬µ«½ö½öÊÇÊä³ö³öÀ´ £¨Write the dependency file on stdout only£©

×¢£ºmodules.dep λÓÚ /lib/modules/Äں˰汾 Ŀ¼

±ÈÈç Fedora Core 4.0 ÖУ¬ÏµÍ³Ä¬ÈϵÄÄںˣº

[root@localhost beinan]# ls /lib/modules/2.6.11-1.1369_FC4/modules.dep
/lib/modules/2.6.11-1.1369_FC4/modules.dep

6¡¢insmod ¹ÒÔØÄ£¿é£»

insmod Õâ¸ö¹¤¾ß£¬ºÍmodprobe ÓеãÀàËÆ£¬µ«¹¦ÄÜÉÏûÓÐmodprobe Ç¿£¬modprobe ÔÚ¹ÒÔØÄ£¿éÊDz»ÓÃÖ¸¶¨Ä£¿éÎļþµÄ·¾¶£¬Ò²²»ÓôøÎļþµÄºó׺.o »ò.ko £»¶øinsmod ÐèÒªµÄÊÇÄ£¿éµÄËùÔÚĿ¼µÄ¾ø¶Ô·¾¶£¬²¢ÇÒÒ»¶¨Òª´øÓÐÄ£¿éÎļþÃûºó׺µÄ(modulefile.o »òmodulesfile.ko £©£»

¶ÔÓÚÕâ¸ö¹¤¾ß£¬ÎÒÃÇÖ»ÊǽéÉÜһϣ¬ ²¢²»ÍƼöʹÓá£ÒòΪģ¿éÓÐÒÀÀµ¹Øϵ£¬¶ÔÓÚÐÂÊÖÀ´Ëµ£¬¿ÉÄܲ»ÖªµÀÕâ¸öÄ£¿éÒÀÀµºÍÄĸöÄ£¿éÒÀÀµ£»

¾ÙÀý£º

[root@localhost beinan]# insmod /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/tg3.ko

ÎÒÃÇÒªµ½ /lib/modules/Äں˰汾 uname -r µÄÃüÁîÊä³ö/kernel/drivers ÖÐÕÒÏà¶ÔÓ¦µÄÄ£¿é²ÅÐУ¬ÒªÓоø¶Ô·¾¶£¬¶øÇÒ±ØÐëÒªÓõ½ÎļþÃûµÄÈ«³Æ£¬²»ÄÜ°ÑÎļþÃûµÄºó׺ʡÂÔ£»

Îå¡¢ÓëÄÚºËÄ£¿é¼ÓÔØÏà¹ØµÄÅäÖÃÎļþ£»

1¡¢Ä£¿éµÄÅäÖÃÎļþ modules.conf »ò modprobe.conf

ÄÚºËÄ£¿éµÄ¿ª»ú×Ô¶¯¹ÒÔØÄ£¿éÒ»°ãÊÇλÓÚÒ»¸öÅäÖÃÎļþ£¬Ò»°ãµÄLinux·¢Ðа汾¶¼ÓÐ /etc/modules.conf »ò /etc/modprobe.conf ¡£±ÈÈçFedora Core 4.0 ÄÚºËÄ£¿é¿ª»ú×Ô¶¯¼ÓÔØÎļþÊÇ /etc/modprobe.conf £»ÔÚÕâ¸öÎļþÖУ¬Ò»°ãÊÇдÈëÄ£¿éµÄ¼ÓÔØÃüÁî»òÄ£¿éµÄ±ðÃûµÄ¶¨ÒåµÈ£»±ÈÈçÎÒÃÇÔÚmodules.conf ÖпÉÄܻᷢÐÐÀàËƵÄÒ»ÐÐ £»

alias eth0 8139too

¶ø8029µÄÍø¿¨Ó¦¸ÃÊÇ

alias eth0 ne2k-pci

ÕâÑùϵͳÆô¶¯µÄʱºò£¬Ê×ÏÈ»ámodprobe 8139too £¬È»ºóÔÙΪ8139too Ö¸¶¨±ðÃûΪ eth0£¬È»ºóÎÒÃÇÔڵǼµÄʱºò£¬Óà ifconfig ¾Í»á²é¿´µ½Íø¿¨µÄIP µÈÇé¿ö£¬µ±È»ÄúµÃΪÍø¿¨ÉèÖÃIP ²ÅÐУ»

Ò»°ãµÄÇé¿öÏ£¬modproe.conf »òmodules.confµÄÄÚÈÝ ÊÇÎÒÃÇÓÃÏàÓ¦µÄÓ²¼þÅäÖù¤¾ß¶øÉú³ÉµÄ£»Èç¹ûÄúµÄÓ²¼þÇý¶¯ÊÇûÓб»ÄÚºËÖ§³Ö£¬Äú×Ô¼ºµ½Ó²¼þµÄ³§ÉÌÏÂÔضøÀ´µÄÇý¶¯¡£Ò»°ãµÄÇé¿ö϶¼Óа²×°ºÍ°ïÖúÎļþ¡£ËûÃǵÄÇý¶¯ÔÚÅäÖÃʱ£¬Ëû»áдÈëÓ²¼þµÄÖ§³Öµ½modules.conf »òmodprobe.conf ÎļþÖС£

ÔÙ±ÈÈçÎÒÃǵÄÉù¿¨ÔÚmodules.conf »òmodprobe.conf ÖÐÒ²ÓÐÏàÓ¦µÄÄÚÈÝ£¬ÕâÊÇÓÉalsaconf ÅäÖù¤¾ßÉú³ÉµÄ£¬Ã÷°×ÁË°É£»Í¬ÀíÍø¿¨ÔÚmodprobe.conf »òmodules.confÖеÄÄÚÈÝÒ²ÊÇÓÉÍø¿¨µÄÅäÖù¤¾ß¶øÀ´µÄ¡£

ÓÐЩӲ¼þÊÇÒÔÄÚºËÄ£¿éµÄ·½Ê½Çý¶¯µÄ£¬Ä£¿éÒ»µ©¼ÓÔØÉϾÍÄÜÓã¬Ò²Ã»ÓÐʲôÅäÖù¤¾ß£¬±ÈÈçvfat ºÍntfs µÄÖ§³Ö£»Èç¹ûÊÇÓ²¼þÇý¶¯²»ÒÔÄ£¿éµÄ·½Ê½Ö§³Ö£¬¶øÊÇÖ±½Ó±àÈëÄںˣ¬Ò²²»»áÓÃÔÚmodprobe.conf »ò modules.conf ÖмÓÈëʲôÄÚÈÝ£»

Èç¹ûÄúÓÐЩģ¿é²»ÄÜ¿ª»ú¼ÓÔØ£¬ÄúÏëÈÃһЩģ¿é¼Ó»ú×Ô¶¯¼ÓÔØ£¬¾Í¿ÉÒÔ°Ñmodprobe Ä£¿é Ö±½ÓдÈëÅäÖÃÎļþ£»

2¡¢ÄÚºËÄ£¿éÆäËüÅäÖÃÎļþ

ÄÚºËÄ£¿éµÄÆäËüÅäÖÃÎļþ»¹ÊÇÐèÒªÁ˽âµÄ£¬±ÈÈç /lib/modules/Äں˰汾Ŀ¼Ïµļ¸¸öÎļþ£»Á˽âһϾÍÐУ»±ÈÈ磺

[root@localhost beinan]# uname -r
2.6.11-1.1369_FC4
[root@localhost beinan]# ls /lib/modules/2.6.11-1.1369_FC4/
build misc modules.ccwmap modules.ieee1394map modules.isapnpmap modules.symbols source
kernel modules.alias modules.dep modules.inputmap modules.pcimap modules.usbmap

Áù¡¢Ó²¼þÇý¶¯ÔÚϵͳÖеÄĿ¼£»

Ó²¼þÇý¶¯ÔÚÄÚºËÖÐÒÔÄ£¿éÖ§³ÖµÄĿ¼£»

Ó²¼þÇý¶¯ÊDZØÐëÓÉÄÚºËÖ§³ÖµÄ£¬ÎÞÂÛÊÇÎÒÃÇ×Ô¼º°²×°Çý¶¯£¬»¹ÊÇÄÚºË×Ô´øµÄÇý¶¯¶¼ÊÇÈç´Ë¡£Ó²¼þÇý¶¯Èç¹ûÊÇÒÔÄÚºËÄ£¿éÖ§³ÖµÄ£¬Çý¶¯Ä¿Â¼Î»ÓÚ£º /lib/modules/Äں˰汾/kernel/Ŀ¼ »ò /lib/modules/Äں˰汾/kernel/drivers Ŀ¼ÖУ»

[root@localhost beinan]# uname -r
2.6.11-1.1369_FC4
[root@localhost beinan]# ls /lib/modules/2.6.11-1.1369_FC4/kernel
arch crypto drivers fs lib net sound

×¢£ºÖ»ÓÐÇý¶¯ÔÚÄÚºËÖÐÒÔÄ£¿éµÄ·½·¨Ö§³Ö£¬Çý¶¯²ÅλÓÚ /lib/modules/ÏàÓ¦µÄĿ¼£»Èç¹ûÊÇÖ±½ÓÖÃÈëÄں˵ģ¬²»»á³öÏÖÔÚ/lib/modulesÇý¶¯Ïà¹ØµÄĿ¼£»

Æß¡¢×Ô¼º±àÒëÇý¶¯µÄ°ì·¨£»

Èç¹ûÊÇÓ²¼þ³§ÉÌ»òÕß¿ªÔ´ÉçÇøÌṩµÄÇý¶¯£¨Ã»Óм¯³ÉÔÚÄÚºËÔ´ÂëÖеģ©£¬±àÒëÇý¶¯¹ý³ÌÒ»°ãÊÇ./configure ;make;make install £¬ÓÐʱ³ÌÐò²»Ìṩ./configure £¬ÎÒÃÇ¿ÉÒÔmake»òmake install £¬»òÕßÖ´ÐÐmake;make install £»Èç¹û²»ÄÜmake install £¬ÔòÐèÒªÎÒÃÇ×Ô¼º¸´ÖÆ.o»òÕß.koÎļþµ½ /lib/modules/Äں˰汾/kernel/Ŀ¼ »ò /lib/modules/Äں˰汾/kernel/drivers Ŀ¼ÖÐÏàÓ¦µÄÇý¶¯Ä¿Â¼£»

Õâ¸ö»¹ÊÇ×Ô¼º³¢ÊÔ°É£¬ËµÒ²Ëµ²»Çå³þ£¬Óöµ½ÎÊÌâºó¾ÍÖªµÀÔõôŪÁË£»¾ßÌåµÄ»¹ÊÇÇý¶¯µÄREAMEºÍINSTALLΪ׼£»

ÏÖÔÚ´ó¶àÇý¶¯¶¼ÊÇÔÚ±àÒ밲װʱ£¬¶¼×Ô¶¯¸´ÖÆ.o»ò.ko Îļþµ½ÄÚºËÄ£¿éĿ¼£¬´ó¶à²»ÓÃÎÒÃÇ×Ô¼º¶¯ÊÖ¸´ÖƹýÈ¥¡£Èç¹ûÄú³¢ÊÔ±àÒë°²×°Éù¿¨Çý¶¯ alsa-drivers ¾Í»áÃ÷°×ÎÒËù˵µÄÒâ˼£»

Èç¹ûÊÇÎÒÃÇͨ¹ýÖرàÄÚºËÀ´½â¾öÇý¶¯ÎÊÌ⣬¿ÉÒԲ鿴/usr/src/Ŀ¼ÖеÄÄÚºËÔ´ÂëĿ¼ÖÐµÄ Documentation µÄREAME £»ËùÓеİïÖúÎļþ¶¼ÔÚÄÇÀ

ºó¼Ç£º

Äں˱àÒë¶ÔÐÂÊÖÀ´ËµÊÇÓеãÀ§ÄÑ£¬ÎÒд¹ýÀàËƵÄÎĵµÒ²Óкöàƪ£¬µ«ÊDz»ÊÇÐÂÊÖµÜÐÖ´ÓÖÐÄÜѧµ½µãʲô£¬ÎÒ²»Ì«ÖªµÀ£»±Ï¾¹ÎÒдµÄÎĵµÔÚÄÚºËÎļþ¸æËßһЩ»ù±¾µÄÁ÷³ÌºÍ×¢ÒâµÄÊÂÏÄں˵ÄÅäÖÃÖ»Óжàʵ¼ù²ÅÄÜѧ»á£¬ÔÚÅäÖÃÄÚºËʱ£¬Òª¶à¿´¿´°ïÖú£»

ÄÚºËÄ£¿é¹ÜÀí·½ÃæÎÒÔÚ±¾ÎÄÖÐÒѾ­Ð´ÁËһЩ£¬´óÌåÉϾÍÕâЩ£¬Èç¹ûÏëÒªÖªµÀ¸üΪÏêϸµÄ£¬Ö»ÄÜÊÇ×Ô¼º¿´man ºÍ--helpÁË£¬ÎÒдÎĵµÒ²ÎÞ·ÇÊDz鿴ÕâЩ¶«Î÷£¬È»ºóʵ¼ùÔÙд¸ø´ó¼Ò£»ÎÒÄÜд³öÀ´£¬ÎÒÏëÄúµÄÄÜÁ¦²¢²»Ò»¶¨±ÈÎҲӦ¸Ã³¬³öÎҲŶԣ»
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ