SUSE10安裝網卡驅動 - Linux

By Freda
at 2008-11-17T19:06
at 2008-11-17T19:06
Table of Contents
各位前輩好 想請教安裝驅動的指令和步驟 因為看README較後面的步驟看不是很懂
網卡:Intel PRO1000
請問Building和Note部分是針對RH嗎?
所以我直接從1開始做 目前在第3
第4步下 make install 但是出現了錯誤:
(none):/usr/local/src/e1000-8.0.6/src # make install
Makefile:71: *** Linux kernel source not found in any of these locations:
Makefile:72:
Makefile:73: *** Install the appropriate kernel development package, e.g.
Makefile:74: *** kernel-devel, for building kernel modules and try again.
Stop.
解壓縮後src內無install這個檔但有makefile
下 make Makefile 也出現了錯誤:
(none):/usr/local/src/e1000-8.0.6/src # make Makefile
Makefile:71: *** Linux kernel source not found in any of these locations:
Makefile:72:
Makefile:73: *** Install the appropriate kernel development package, e.g.
Makefile:74: *** kernel-devel, for building kernel modules and try again.
Stop.
煩請高手幫我看是哪裏該修正呢 謝謝
-------------------------------------------------------------------------------
Intel PRO1000 Readme:
Building and Installation
=========================
To build a binary RPM* package of this driver, run 'rpmbuild -tb
<filename.tar.gz>'. Replace <filename.tar.gz> with the specific filename
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/e1000 or /usr/local/src/e1000.
2. Untar/unzip archive:
tar zxf e1000-x.x.x.tar.gz
3. Change to the driver src directory:
cd e1000-x.x.x/src/
4. Compile the driver module:
make install
The binary will be installed as:
/lib/modules/<KERNEL VERSION>/kernel/drivers/net/e1000/e1000.[k]o
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 e1000
insmod e1000
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/<KERNEL VERSION>/kernel/drivers/net/e1000/e1000.ko
With 2.6 based kernels also make sure that older e1000 drivers are
removed from the kernel, before loading the new module:
rmmod e1000; modprobe e1000
6. Assign an IP address to the interface by entering the following, where
x is the interface number:
ifconfig ethx <IP_address>
7. Verify that the interface works. Enter the following, where <IP_address>
is the IP address for another machine on the same subnet as the
interface that is being tested:
ping <IP_address>
--
網卡:Intel PRO1000
請問Building和Note部分是針對RH嗎?
所以我直接從1開始做 目前在第3
第4步下 make install 但是出現了錯誤:
(none):/usr/local/src/e1000-8.0.6/src # make install
Makefile:71: *** Linux kernel source not found in any of these locations:
Makefile:72:
Makefile:73: *** Install the appropriate kernel development package, e.g.
Makefile:74: *** kernel-devel, for building kernel modules and try again.
Stop.
解壓縮後src內無install這個檔但有makefile
下 make Makefile 也出現了錯誤:
(none):/usr/local/src/e1000-8.0.6/src # make Makefile
Makefile:71: *** Linux kernel source not found in any of these locations:
Makefile:72:
Makefile:73: *** Install the appropriate kernel development package, e.g.
Makefile:74: *** kernel-devel, for building kernel modules and try again.
Stop.
煩請高手幫我看是哪裏該修正呢 謝謝
-------------------------------------------------------------------------------
Intel PRO1000 Readme:
Building and Installation
=========================
To build a binary RPM* package of this driver, run 'rpmbuild -tb
<filename.tar.gz>'. Replace <filename.tar.gz> with the specific filename
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/e1000 or /usr/local/src/e1000.
2. Untar/unzip archive:
tar zxf e1000-x.x.x.tar.gz
3. Change to the driver src directory:
cd e1000-x.x.x/src/
4. Compile the driver module:
make install
The binary will be installed as:
/lib/modules/<KERNEL VERSION>/kernel/drivers/net/e1000/e1000.[k]o
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 e1000
insmod e1000
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/<KERNEL VERSION>/kernel/drivers/net/e1000/e1000.ko
With 2.6 based kernels also make sure that older e1000 drivers are
removed from the kernel, before loading the new module:
rmmod e1000; modprobe e1000
6. Assign an IP address to the interface by entering the following, where
x is the interface number:
ifconfig ethx <IP_address>
7. Verify that the interface works. Enter the following, where <IP_address>
is the IP address for another machine on the same subnet as the
interface that is being tested:
ping <IP_address>
--
Tags:
Linux
All Comments

By James
at 2008-11-21T17:12
at 2008-11-21T17:12

By Anonymous
at 2008-11-22T05:48
at 2008-11-22T05:48

By Zanna
at 2008-11-26T03:40
at 2008-11-26T03:40

By Jake
at 2008-11-29T06:41
at 2008-11-29T06:41

By Erin
at 2008-11-30T01:01
at 2008-11-30T01:01

By Gilbert
at 2008-12-02T01:14
at 2008-12-02T01:14

By Sarah
at 2008-12-02T08:22
at 2008-12-02T08:22

By Emily
at 2008-12-07T02:03
at 2008-12-07T02:03
Related Posts
SVN 如何退到前一次 commit 版本

By Faithe
at 2008-11-17T15:22
at 2008-11-17T15:22
怎麼知道正在使用的distribution??

By Rachel
at 2008-11-17T14:11
at 2008-11-17T14:11
Linux我想學

By Oscar
at 2008-11-17T07:46
at 2008-11-17T07:46
Linux我想學

By Barb Cronin
at 2008-11-17T06:52
at 2008-11-17T06:52
Driver ?

By Regina
at 2008-11-16T21:29
at 2008-11-16T21:29