SUSE10安裝網卡驅動 - Linux

Freda avatar
By Freda
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>

--
Tags: Linux

All Comments

James avatar
By James
at 2008-11-21T17:12
先lsmod看看有沒有e1000的module吧
proset1000應該是kernel內建不用另外支援的
Anonymous avatar
By Anonymous
at 2008-11-22T05:48
您好 有e1000的MODULE
Zanna avatar
By Zanna
at 2008-11-26T03:40
因為目的是想學會在SUSE下安裝好驅動
Jake avatar
By Jake
at 2008-11-29T06:41
你有 kernel source 嗎?
Erin avatar
By Erin
at 2008-11-30T01:01
請問kernel source 會在哪個路徑呢 SORRY對LINUX不是很
Gilbert avatar
By Gilbert
at 2008-12-02T01:14
zypper in kernel-devel 你貼出的訊息就有說啊
Sarah avatar
By Sarah
at 2008-12-02T08:22
沒看清是 SUSE 10 不知道有沒有 zypper
Emily avatar
By Emily
at 2008-12-07T02:03
用 yast 的軟體管理找出 kernel-devel 裝上

SVN 如何退到前一次 commit 版本

Faithe avatar
By Faithe
at 2008-11-17T15:22
請問 svn 要如何 rollback 到最後一次 commit 的版本呢? 比方說 我 commit 了 v99 這個版本 然後就很放心的改了一些東西 可是發現不妙想 rollback to v99 該下什麼指令? svn up svn up -r 99 我原本以為會是這樣的指令 但很意外的會被無視 ...

怎麼知道正在使用的distribution??

Rachel avatar
By Rachel
at 2008-11-17T14:11
我手邊有很多台機器 帳號密碼是同一組 可是我知道有些是Fedora, RHEL, CentOS 除了從一開機的登入訊息 和uname -a 去分辨 還有別的方法嗎?? -- My website http://tim ...

Linux我想學

Oscar avatar
By Oscar
at 2008-11-17T07:46
※ 引述《antonytung (夢醒時分)》之銘言: : Linux 一直聽過這作業系統,但是始終沒有好好的碰過它,我想它跟微軟的 : Windows 差別就是Linux安全性較高,Windows則動不動就要修補程式,假 : 以時日,我想我心血來潮,會去嘗試用Linux看看。 Linux的3D視窗管理器需要 ...

Linux我想學

Barb Cronin avatar
By Barb Cronin
at 2008-11-17T06:52
Linux 一直聽過這作業系統,但是始終沒有好好的碰過它,我想它跟微軟的 Windows 差別就是Linux安全性較高,Windows則動不動就要修補程式,假 以時日,我想我心血來潮,會去嘗試用Linux看看。 - ...

Driver ?

Regina avatar
By Regina
at 2008-11-16T21:29
我有一塊主機板, sourth 是 vt82c686a. kernel 是 2.4.20-8, 上面接有 3 HD + 1 cdrom 我用 dmesg 取得下列資訊 hda: WDC WD150AA, ATA DISK drive hdb: QUANTUM FIREBALLP LM20.5, ATA ...