無法安裝網卡.使用make編譯*.o檔案或依網卡的說明均發生錯誤



贊助商連結


金田一
2004-05-28, 06:16 PM
版本:Mandrake 9.2
網卡:3com Gigabit NIC
初學者我按照書上的方法將3c2000.tar.gz編譯成
*.o檔但是失敗了..會發生ERROR也沒有產生*o
接下小弟我依照了網卡的說明文件.但是會產生了
..destination not found (是不是版本的不同所造成的??如是該如何解決)
謝謝回答
網卡文件內容:
1) Make sure that the kernel source is installed in /usr/src/linux
or /usr/src/linux-2.4.
2) Copy the file /Linux/3c2000.tar.gz from the 3Com driver CD to
your hard drive.

3) Change to the directory containing 3c2000.tar.gz

4) Type 'tar zxvf 3c2000.tar.gz'

5) Type 'cd 3c2000'

Note: on SuSE systems since 7.1, you will have to execute the
following commands before running make:

cp /boot/vmlinuz.version.h /usr/src/linux/include/linux/version.h
cp /boot/vmlinuz.autoconf.h /usr/src/linux/include/linux/autoconf.h

For more details se sdb.suse.de/en/sdb/html/mwalter_kernel_24.html

6) Type 'make load' to load the driver.

Alternatively, you may type the following to load the driver:

insmod 3c2000.o

Something like the following will be added to /var/log/messages:

Jan 22 19:31:19 localhost kernel: 3C2000: 3Com Gigabit NIC Driver Version A08
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 3Com Corporation.
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 Marvell.
Jan 22 19:31:19 localhost kernel: eth0: 3Com Gigabit NIC (3C2000)

Depending on your configuration, the OS may then automatically bring the
interface up and request an address from a DHCP server. If it does not,
bring the interface up with the command:

ifconfig eth0 up

You may have to substitue 'eth0' for your actual interface if you have
more than one ethernet NIC installed.

If your system is not configured for DHCP, you can assign an IP address
with the command:

ifconfig eth0 a.b.c.d

Where a.b.c.d is the IP address that you wish to use. Again, eth0 may
be different depending on your system configuration.

Configuring the Driver
------------------------

The 3C2000 driver supports various options, which can be supplied
as command line arguments to the 'insmod' command or in the
/etc/modules.conf file. You may specify more than one option.
Unless otherwise stated, all settings take the form of:

<Option-Name>=value [,value...]

If you use the modules.conf file to load the driver at boot time,
include the word "options" when configuring the driver.

For example:
options 3c2000 DupCap_A=Full

If you use command line 'insmod', do not include the word "option"
when configuring the driver.

For example:
insmod 3c2000.o DupCap_A=Full


The following options are supported:

OPTION: Speed_A
Selects the speed of Port A of the NIC.

"Auto" - Automatic Resolution
"10" - 10MBPS
"100" - 100MBPS
"1000" - 1GIG

OPTION: DupCap_A
Selects the duplex capabilities of Port A of the NIC.

"Full" - Full Duplex
"Half" - Half Duplex
"Both" - Both Half Duplex & Full Duplex

贊助商連結


金田一
2004-05-29, 09:08 PM
請容初學者我問..kernel-smp是什麼

金田一
2004-05-30, 10:01 PM
是指沒有安裝kernel-headers氶kernel-source嗎

raytracy
2004-05-31, 12:37 AM
最初由 金田一 發表
請容初學者我問..kernel-smp是什麼
在 Linux 下, 是指「可以支援多CPU的作業核心」, 平時安裝的 Kernel 通常不支援多 CPU, 但若安裝時, 您的安裝程式偵測到您的硬體存在多顆 CPU 的話, 通常就會自動幫您把 Kernel 換成 SMP 的版本.

假設您用的是 Intel P4 CPU (不是 P4C 喔!), 由於 P4 內建 Hyper-threading 功能, 可以模擬成兩顆 CPU, 很可能會使您的安裝程式選擇安裝成 SMP 的版本.

您可以在 Linux 中輸入:

uname -a

看一下顯示出來的訊息裡面, 有沒有 SMP 的字樣?

金田一
2004-06-15, 11:47 PM
嗯~~謝謝大家回答.問題己解決了(因初學者我忘了裝kernel-source
還有一個小問題是.請問使用split分割可執行檔(windows下)後,如何還原(我用paste xa[a-h] >XX.exe還原後到windows下執行沒有回應.)