intelǧÕ×Íø¿¨ÔÚlinuxϵÄÇý¶¯°²×°(e1000)
ÎÒÃÇÊÇ×ö·þÎñÆ÷µÄ,linuxÏÂ×öÊÂÇ飬±ðµÄÒ²²»¶à£¬¾ÍÊǼӸöÇý¶¯É¶µÄ£¬ÏÈËµËµÍø¿¨°É£¬Ò»°ãºÜ¶à¸ßÊÖÔÚÇý¶¯intelµÄÍø¿¨µÄʱºò»¹ÊÇ·¸ÔΣ¬ÒòΪINTELµÄÍø¿¨£¬ÓкܶàÖÖ£¬»¹¶¼Í³³Æ½Ðintel£¬e1000ÆäʵÖ÷Òª»¹ÊÇ¿´Ð¾Æ¬¶¼ÊÇʲô82541,82573²»¹ý°²×°·½·¨»¹ÊÇͦ¼òµ¥µÄ
1:¿´Çå³þÁËϵͳµÄ°æ±¾:
unname -r
2:È¥intelµÄÍøÕ¾ÏÂÒ»ÏÂÇý¶¯:
http://support.intel.com/support/network/adapter/
Èç¹ûÍø¿¨ÊÇÖ÷°å°åÔØµÄ¾ÍÖ±½ÓÏÂÔØËüµÄÄǸöÖ÷°å¡£
3:°ÑÏÂÔØµÄÍø¿¨Îļþ½â¿ª:
tar zxf e1000-.tar.gz
4:½ø°²×°Ä¿Â¼
cd e1000-/src/
5:°²×°
make install
6:°²×°µÄĿ¼
/lib/modules//kernel/drivers/net/e1000/e1000.[k]o
7:°²×°Íê³ÉºóÖØÆô£¬»áÌáʾ¼ÓÔØÍø¿¨Ò»¶¨ÒªÅäÖÃÁËIPµØÖ·£¬Òª²»È»ÓеÄʱºò»¹»á³ö´í£¬Åª²»ºÃ»¹ÒªÖØ×°
8:Èç¹ûûÓеϰ½øÏµÍ³ºóÊäÈë
insmod e1000 =
Ò»°ã¾Í»áÓУ¬»òÕßÔÚ/etc/
9:modprobe e1000
10:Ò²¿ÉÒÔÊäÈëdmesg |grep eth0/eth1
¿´¿´Íø¿¨µÄÐÅÏ¢¡£
×¢:ϵͳһ¶¨Òª°ÑÄÚºËÎļþ¶¼×°È«Á˰¡
======
intelǧÕ×Íø¿¨Çý¶¯µÄ°²×°2008-07-12 10:07
ÓÐÁ½¿é°åÔØÇ§Õ×Íø¿¨£¬µ«ÊÇÓÃifconfig¿´µÄʱºò£¬Ö»¿´µ½eth0£¬Ã»Óп´µ½eth1Ö±½ÓÖ´ÐÐ/etc/init.d/net.eth1 startµÄʱºò±¨´í£¬ÐÅÏ¢Ìáʾ£ºÕÒ²»µ½eth1Õâ¸öÉ豸ֱ½Ódmesg¿´µÄʱºò£¬·¢ÏÖe1000µÄÇý¶¯ÒѾ¼ÓÔØÁË
È»ºóʹÓÃlspci·¢ÏÖ£¬Ö»Ê¶±ð³öÀ´ÁËÒ»¿éÍø¿¨£¬ÁíÍâÒ»¿é°åÔØÍø¿¨±»±ê¼ÇΪintel unknown device
ºË¶ÔÁËÒ»ÏÂÓ²¼þÅäÖ㬷¢ÏÖ£º
ʶ±ð³öÀ´µÄÊÇ£ºintel 82573L ûÓÐʶ±ð³öÀ´µÄÊÇ£ºintel 82566DM
¶øÉÏÃæÒѾ·¢ÏÖe1000µÄÇý¶¯¼ÓÔØÁË£¬ËùÒԿ϶¨ÊÇe1000µÄÇý¶¯²»Ö§³Öintel 82566DM
´ÓintelµÄÕ¾µãÉÏÃæÖ±½ÓÏÂÔØÁË×îеÄ8.0.3.1µÄÇý¶¯
±àÒë°²×°ÒԺ󣬷¢ÏÖinsmodµÄʱºò³öÏÖ£º
insmod: error inserting '..../e1000.lo': -1 File exists
µ«ÊÇÖ±½Ólsmod£¬·¢ÏÖûÓÐe1000µÄmodulesµÄinfo£¬½áºÏe1000ÒѾ¼ÓÔØµÄÏÖʵ£¬¶à°ë¾ÍÊÇe1000ÊÇÒÔÄÚÖÃÇý¶¯µÄ·½Ê½¼ÓÔØµ½Äں˵ġ£
½øÈë/usr/local/src/linux£¬Ö´ÐÐmake menuconfig
·¢ÏÖe1000¹ûÈ»ÊÇÄÚÖõġ£½«e1000¸Ä³ÉmodulesÒÔºó£¬ÖØÐ±àÒëÄÚºË
make
make install
make modules_install
È»ºóÖØÐÂÆô¶¯ÒԺ󣬷¢ÏÖe1000¹ûȻûÓмÓÔØÁË¡£
´Ëʱ£¬½«×îеÄÇý¶¯£¨ÆäʵÄǸö8.0.3.1µÄÇý¶¯Ã»Ó㬺óÀ´ÏÂÁËÒ»¸ö7.x°æ±¾µÄ¹ÜÓÃÁË£©£¬make && make installÒÔºó
·¢ÏÖ£¬Äܹ»Ö§³Öintel 82566dmÍø¿¨ÁË¡£
ΪÁËÈÃe1000Ä£¿éÄܹ»¿ª»ú×Ô¶¯¼ÓÔØ£¬±ØÐëÐÞ¸Ä/etc/modprobe.conf£¬Ìí¼Ó£º
alias eth0 e1000
alias eth1 e1000
È»ºóÖØÐÂÆô¶¯¾Í¿ÉÒÔÁË
===intel(R) 82566DM-2
Building and Installation
=========================
To build a binary RPM* package of this driver,
run 'rpmbuild -tb
Replace
of the driver.
NOTE: For the build to work properly, the currently running kernel MUST
match the version and configuration of the installed kernel sources.
If you have just recompiled the kernel reboot the system now.
RPM functionality has only been tested in Red Hat distributions.
1. Move the base driver tar file to the directory of your choice. For
example, use /home/username/e1000e or /usr/local/src/e1000e.
2. Untar/unzip archive:
tar zxf e1000e-x.x.x.tar.gz
3. Change to the driver src directory:
cd e1000e-x.x.x/src/
4. Compile the driver module:
make install
The binary will be installed as:
/lib/modules/
The install locations listed above are the default locations. They
might not be correct for certain Linux distributions.
5. Load the module using either the insmod or modprobe command:
modprobe e1000e
insmod e1000e
Note that for 2.6 kernels the insmod command can be used if the full
path to the driver module is specified. For example:
insmod /lib/modules/
With 2.6 based kernels also make sure that older e1000e drivers are
removed from the kernel, before loading the new module:
rmmod e1000e; modprobe e1000e
6. Assign an IP address to the interface by entering the following, where
x is the interface number:
ifconfig ethx
7. Verify that the interface works. Enter the following, where
is the IP address for another machine on the same subnet as the
interface that is being tested:
ping
=====================
×î½ü²Å¿ªÊ¼Ñ§Ï°LinuxÊÔ×Å×°ÁËRedHat AS 5.0ΪÁ˰²×°Íø¿¨ÕÒÁËºÃ¶àµØ·½ÖÕÓÚ°²×°³É¹¦£¬ÏּǼÏÂÀ´·½±ã×Ô¼ºÒÔºóʹÓã¬Í¬Ê±Ò²Ï£ÍûÄܹ»¸øÏñÎÒÕâÑùµÄÐÂÊÖÌá¹©ÕÆÎÕ°²×°Íø¿¨Çý¶¯µÄ½Ý¾¶
1.È·ÈÏϵͳµÄÄں˰汾
[root@localhost ~]# uname -r
2.6.18-8.el5PAE
ÎÒµÄÄں˰汾ÊÇ2.6.18-8.el5PAE
2.È·ÈÏϵͳÊÇ·ñÒѾ°²×°ÏÂÁаü
ÓÉÓÚ±àÒëÐèÒªÓõ½Äں˵ÄÔ´´úÂë°üºÍ±àÒë³ÌÐògcc.ËùÒÔÈç¹ûûÓеϰ,ÒªÏÈ×°.
²é¿´:
¼ì²éÊÇ·ñÒѾ°²×°ÄÚºËÔ´Âë
[root@localhost ~]# rpm -qa|grep kernel
kernel-doc-2.6.18-8.el5
kernel-xen-2.6.18-8.el5
kernel-2.6.18-8.el5
kernel-PAE-2.6.18-8.el5
kernel-headers-2.6.18-8.el5
kernel-PAE-devel-2.6.18-8.el5
kernel-devel-2.6.18-8.el5
¼ì²éÊÇ·ñÒѾ°²×°±àÒëÓõ½µÄgcc
[root@localhost ~]# rpm -qa|grep gcc
gcc-gfortran-4.1.1-52.el5
gcc-java-4.1.1-52.el5
libgcc-4.1.1-52.el5
gcc-c++-4.1.1-52.el5
compat-gcc-34-c++-3.4.6-4
compat-gcc-34-3.4.6-4
gcc-4.1.1-52.el5
compat-gcc-34-g77-3.4.6-4
compat-libgcc-296-2.96-138
Ò»°ãÇé¿öÏÂÈç¹û°²×°ÁËÄÚºËÔ´ÂëµÄ»°Ô´ÂëĿ¼һ°ã¶¼ÔÚ/usr/src/rRedHatĿ¼ÏÂ
Èç¹ûûÓеϰ¾ÍÓð²×°ÅÌÀïÃæµÄÎļþ½øÐа²×°
3.Çý¶¯³ÌÐò±àÒë¼°°²×°
ͨ¹ý¹Ù·½ÍøÕ¾»ñÈ¡ÏàÓ¦µÄÇý¶¯³ÌÐò£¬ÎÒÓõÄÊÇIntelµÄe1000eµÄÍø¿¨Çý¶¯³ÌÐò
ÏàÓ¦µÄÇý¶¯³ÌÐò°üΪe1000e-0.5.8.2.tar.gz½«Çý¶¯³ÌÐò°ü¿½±´µ½/usr/srcĿ¼Ï½âѹËõ
cd /usr/src
tar zxvf e1000e-0.5.8.2.tar.gz
Íê±ÏÒÔºóתµ½ cd e1000e-0.5.8.2/srcĿ¼ÏÂ×¼±¸±àÒë°²×°
ÔÚsrcĿ¼ÏÂÒÀ´ÎÖ´ÐÐ
make (±àÒëÇý¶¯³ÌÐòÔ´Âë)
make install(°²×°ÏàÓ¦µÄÇý¶¯³ÌÐò)
°²×°Íê±ÏÒÔºó½«Çý¶¯³ÌÐòÉú³ÉµÄe1000e.o¿½±´µ½/lib/modules/2.6.18-8.el5PAE/kernel/drives/net Ŀ¼ÏÂ
cp e1000e.o /lib/modules/2.6.18-8.el5PAE/kernel/drivers/net
È»ºóÖ´ÐÐdepmod -a¼ÓÔØÇý¶¯³ÌÐò
4.Çý¶¯³ÌÐò²âÊÔ
ÎÒÃÇ¿ÉÒÔͨ¹ýmodprobe e1000e½øÐмÓÔØ Èç¹ûûÓÐÌáʾ´íÎóÐÅÏ¢Ö¤Ã÷Çý¶¯³ÌÐòÒѾ¼ÓÔØ
ͬʱ¿ÉÒÔͨ¹ýlsmod²é¿´ÒѾ¼ÓÔØµÄÇý¶¯³ÌÐò
Èç¹ûÔÚÏÔʾµÄÇý¶¯³ÌÐòÖÐÄܹ»¿´µ½e1000eµÄ×ÖÑù˵Ã÷Çý¶¯³ÌÐòÒѾ¼ÓÔØ³É¹¦
pingchen4337 ÓÚ 2009-05-05 09:38:19·¢±í:
ÒÔÉϲ½ÖèÒ»¶¨Òª°ÑkernelÎļþ×°È« ²»È»makeµÄʱºò»á±¨´í ÌØ±ðÊÇÓÐÈË×°·þÎñÆ÷µÄmini°²×° ûÓа취make
Dywesz ÓÚ 2009-02-02 16:10:15·¢±í:
Íû¶øÈ´²½