史萊姆論壇

史萊姆論壇 (http://forum.slime.com.tw/)
-   網路疑難應用技術研討區 (http://forum.slime.com.tw/f47.html)
-   -   [新手問]如何安裝驅動程式 (http://forum.slime.com.tw/thread118632.html)

wzj001 2004-07-28 01:49 PM

[新手問]如何安裝驅動程式
 
小弟安裝了,Linux ReadHat 9.0
但是並沒有支援主機板上的網路卡,
於是切回WINDOWS到了華碩官方網站,
把"for LINux"的 網卡驅動程式下載回來,
燒到光碟裡,再切成Linux讀取光碟..

無奈..無奈..
我不會安裝啊...

網路卡 3Com Gigabit LOM (3C940)

飛鳥 2004-07-28 02:06 PM

下載回來是zip的檔案
要壓縮檔裡又有一個linux當用的壓縮檔.gz
先解一次成gz
再到linuz下下面指令

(1)解壓:
#gunzip 壓縮檔名稱.gz
#tar xvf - <perl-5.004.tar.gz
(2)编译:
#make makefile
(3)放置:
將編譯成的可執檔copy到,可執行檔通常所在目錄,如:
#copy <compiled excutable file> /usr/local/bin/perl
再下
#rpm -ivh 編譯好的程式.rpm

wzj001 2004-07-28 03:44 PM

感謝版主的回答,
但是...
小弟還是搞不定...
不僅程式沒有相關的檔案,
弄了半天還是不行..我也不會形容了..
啊啊啊....:56gtyhu:

我附上我下載的2個檔案..
http://www.asus.com.tw/pub/ASUS/misc.../1985Linux.zip
http://www.asus.com.tw/pub/ASUS/lan/.../046_Linux.zip

有空,麻煩您撥冗幫我看看吧:sxde45fty

luka 2004-07-28 04:56 PM

1985Linux.zip裡的安裝說明
真不知道ASUS沒事壓二層做啥= =??
解開來後裡面有個INSTSALL的文字檔裡面有說明
截取一段︰
Quick install
=============

1) You must have full configured source for the Linux kernel which you
want to use for the ALSA drivers. Note that ALSA drivers are part
of the kernel, so there is necessary to resolve all symbol dependencies
between the used kernel and ALSA driver code. Partly installed kernels
(for example from distributor makers) can be unuseable for this action.
2) You must turn on sound support (soundcore module).
3) Run './configure' script.
If you have ISA Plug & Play soundcard, use --with-isapnp=yes switch.
If you want sequencer support, use --with-sequencer=yes switch.
If you do not want OSS/Free emulation, use --with-oss=no switch.
If you want turn on debug mode use --with-debug=full switch.
If you want debug soundcard detection try --with-debug=detect switch.
If you have kernel source code in another directory than /usr/src/linux,
use --with-kernel=<kernel_directory>.
Example: ./configure --with-isapnp=yes --with-debug=full
4) Run 'make install'.
5) Run the './snddevices' script to create new sound devices in /dev directory.
Skip this step, if you have a kernel with the DEVFS support.
6) Edit your /etc/modules.conf (see the kmod support section below).
7) Run 'modprobe snd-xxxx' where xxxx is the name of your card.
Note: If you have a ISA PnP soundcard you need to first run the isapnp
program from isapnptools package to initialize your
soundcard. You can also use the native ISA PnP support by
using the --with-isapnp=yes configuration switch, in which
case you do not need the isapnptools package.

You can also look at the utils/alsasound file. This script is designed for
the RedHat distribution, but it can be used with other distributions which
use System V style rc init scripts.

Note: All mixer channels are muted by default. You must use a native
or OSS mixer program to unmute appropriate channels (for example a
mixer from the alsa-utils package).

Note: This document notices the /etc/modules.conf file. Many current
distributions uses the old /etc/conf.modules file. Both names are
valid.

另一個檔046_Linux.zip裡也有 readme可以看
裡面看了一下說的很詳細,照著做我想就可以了。
如果要學Linux的話,最好是先習慣看英文訊習和英文文件。裡面的單字絕對比聯考容易的多,所以不要怕他:bj375mg:

wzj001 2004-07-28 07:04 PM

謝謝大大的回覆
但是,我執行了 make load之後,竟出現這一堆..
skge.c:2448: dereferencing pointer to incomplete type
skge.c:2449: dereferencing pointer to incomplete type
skge.c:2450: dereferencing pointer to incomplete type
skge.c:2452: dereferencing pointer to incomplete type
skge.c:2453: `PCI_DMA_FROMDEVICE' undeclared (first use in this function)
skge.c: In function `ReQueueRxBuffer':
skge.c:2488: dereferencing pointer to incomplete type
skge.c:2489: dereferencing pointer to incomplete type
skge.c:2490: dereferencing pointer to incomplete type
skge.c:2491: dereferencing pointer to incomplete type
skge.c: In function `ReceiveIrq':
skge.c:2525: dereferencing pointer to incomplete type
skge.c:2542: dereferencing pointer to incomplete type
skge.c:2543: dereferencing pointer to incomplete type
skge.c:2543: dereferencing pointer to incomplete type
skge.c:2545: dereferencing pointer to incomplete type
skge.c:2546: dereferencing pointer to incomplete type
skge.c:2546: warning: left-hand operand of comma expression has no effect
skge.c:2571: dereferencing pointer to incomplete type
skge.c:2589: dereferencing pointer to incomplete type
skge.c:2611: dereferencing pointer to incomplete type
skge.c:2645: warning: implicit declaration of function `pci_dma_sync_single'
skge.c:2645: dereferencing pointer to incomplete type
skge.c:2648: `PCI_DMA_FROMDEVICE' undeclared (first use in this function)
skge.c:2659: `GFP_ATOMIC' undeclared (first use in this function)
skge.c:2659: warning: assignment makes pointer from integer without a cast
skge.c:2665: warning: implicit declaration of function `skb_put'
skge.c:2669: dereferencing pointer to incomplete type
skge.c:2673: warning: implicit declaration of function `eth_copy_and_sum'
skge.c:2673: dereferencing pointer to incomplete type
skge.c:2690: warning: implicit declaration of function `pci_unmap_single'
skge.c:2690: dereferencing pointer to incomplete type
.
.
skge.c:2757: dereferencing pointer to incomplete type
skge.c:2757: warning: implicit declaration of function `eth_type_trans'
skge.c:2758: dereferencing pointer to incomplete type
skge.c:2758: dereferencing pointer to incomplete type
skge.c:2759: warning: implicit declaration of function `netif_rx'
skge.c:2760: dereferencing pointer to incomplete type
skge.c:2760: dereferencing pointer to incomplete type
skge.c:2760: `jiffies' undeclared (first use in this function)
skge.c:2767: warning: implicit declaration of function `dev_kfree_skb'
skge.c:2776: dereferencing pointer to incomplete type
.
.

skge.c:2850: dereferencing pointer to incomplete type
skge.c:2855: warning: implicit declaration of function `dev_kfree_skb_irq'
skge.c:2857: dereferencing pointer to incomplete type
skge.c:2858: dereferencing pointer to incomplete type
skge.c:2542: warning: value computed is not used
skge.c: In function `ClearAndStartRx':
skge.c:2880: dereferencing pointer to incomplete type
skge.c: In function `ClearTxIrq':
skge.c:2900: dereferencing pointer to incomplete type
skge.c: In function `ClearRxRing':
skge.c:2922: dereferencing pointer to incomplete type
skge.c:2922: dereferencing pointer to incomplete type
skge.c:2925: dereferencing pointer to incomplete type
skge.c:2926: dereferencing pointer to incomplete type
skge.c:2942: dereferencing pointer to incomplete type
skge.c:2944: dereferencing pointer to incomplete type
skge.c:2945: `PCI_DMA_FROMDEVICE' undeclared (first use in this function)
skge.c:2954: dereferencing pointer to incomplete type
skge.c:2955: dereferencing pointer to incomplete type
skge.c:2956: dereferencing pointer to incomplete type
skge.c:2956: dereferencing pointer to incomplete type
skge.c:2957: dereferencing pointer to incomplete type
skge.c: In function `ClearTxRing':
skge.c:2982: dereferencing pointer to incomplete type
skge.c:2983: dereferencing pointer to incomplete type
skge.c:2984: dereferencing pointer to incomplete type
skge.c:2989: dereferencing pointer to incomplete type
skge.c: In function `SkGeSetMacAddr':
skge.c:3103: dereferencing pointer to incomplete type
skge.c:3111: warning: implicit declaration of function `netif_running'
skge.c:3114: dereferencing pointer to incomplete type
.
.
.
skge.c:3127: dereferencing pointer to incomplete type
skge.c: In function `SkGeSetRxMode':
skge.c:3160: dereferencing pointer to incomplete type
.
.
skge.c:3201: dereferencing pointer to incomplete type
skge.c:3187: warning: value computed is not used
skge.c: In function `SkGeChangeMtu':
skge.c:3232: dereferencing pointer to incomplete type
.
.
skge.c:3384: dereferencing pointer to incomplete type
skge.c:3388: warning: implicit declaration of function `netif_start_queue'
skge.c:3388: dereferencing pointer to incomplete type
.
.
.
skge.c:3425: dereferencing pointer to incomplete type
skge.c: In function `SkGeStats':
skge.c:3444: dereferencing pointer to incomplete type
.
.
.
skge.c:3500: dereferencing pointer to incomplete type
skge.c: In function `SkGeIoctl':
skge.c:3529: dereferencing pointer to incomplete type
skge.c:3532: warning: implicit declaration of function `copy_from_user'
skge.c:3539: warning: implicit declaration of function `capable'
skge.c:3541: dereferencing pointer to incomplete type
skge.c:3542: dereferencing pointer to incomplete type
skge.c:3543: dereferencing pointer to incomplete type
skge.c:3547: warning: implicit declaration of function `copy_to_user'
skge.c:3547: dereferencing pointer to incomplete type
skge.c: In function `SkGeIocMib':
skge.c:3592: dereferencing pointer to incomplete type
.
.
.
skge.c:4034: dereferencing pointer to incomplete type
skge.c:4038: dereferencing pointer to incomplete type
skge.c: In function `ProductStr':
skge.c:4062: dereferencing pointer to incomplete type
skge.c:4063: dereferencing pointer to incomplete type
skge.c:4063: dereferencing pointer to incomplete type
skge.c:4065: dereferencing pointer to incomplete type
skge.c:4070: dereferencing pointer to incomplete type
skge.c: In function `SkDrvAllocRlmtMbuf':
skge.c:4104: `GFP_ATOMIC' undeclared (first use in this function)
skge.c:4104: warning: assignment makes pointer from integer without a cast
skge.c:4108: dereferencing pointer to incomplete type
skge.c:4112: dereferencing pointer to incomplete type
skge.c: In function `SkOsGetTime':
skge.c:4164: `jiffies' undeclared (first use in this function)
skge.c: In function `SkPciReadCfgDWord':
skge.c:4185: warning: implicit declaration of function `pci_read_config_dword'
skge.c:4185: dereferencing pointer to incomplete type
skge.c: In function `SkPciReadCfgWord':
skge.c:4207: warning: implicit declaration of function `pci_read_config_word'
skge.c:4207: dereferencing pointer to incomplete type
skge.c: In function `SkPciReadCfgByte':
skge.c:4229: warning: implicit declaration of function `pci_read_config_byte'
skge.c:4229: dereferencing pointer to incomplete type
skge.c: In function `SkPciWriteCfgDWord':
skge.c:4251: warning: implicit declaration of function `pci_write_config_dword'
skge.c:4251: dereferencing pointer to incomplete type
skge.c: In function `SkPciWriteCfgWord':
skge.c:4274: warning: implicit declaration of function `pci_write_config_word'
skge.c:4274: dereferencing pointer to incomplete type
skge.c: In function `SkPciWriteCfgByte':
skge.c:4297: warning: implicit declaration of function `pci_write_config_byte'
skge.c:4297: dereferencing pointer to incomplete type
skge.c: In function `SkDrvEvent':
skge.c:4336: dereferencing pointer to incomplete type
.
.
.
skge.c:4579: dereferencing pointer to incomplete type
skge.c: In function `SkErrorLog':
skge.c:4637: `KERN_INFO' undeclared (first use in this function)
skge.c:4637: parse error before string constant
skge.c: At top level:
h/skdrv2nd.h:531: storage size of `TxPort' isn't known
h/skdrv2nd.h:532: storage size of `RxPort' isn't known
/usr/include/linux/proc_fs.h:193: warning: `create_proc_read_entry' declared `static' but never defined
make: *** [skge.o] Error 1
bash-2.05b#
-------------------------

弄得我的頭好痛...飯也吃不下...
不知道我哪裡操作有問題..

luka 2004-07-28 10:35 PM

剛回到一半打雷,電源掛掉了:56gtyhu: :56gtyhu:
換了一個新的再重新上陣:ddrf567h:
沒必要為這種事吃不下飯啦,真的不行的話,大不了花二百買張螃蟹卡了事就好啦!!
錯誤訊習重點都會在最後面,前面的可以別太去理他
------------------------------------------------------------
/usr/include/linux/proc_fs.h:193: warning: `create_proc_read_entry' declared `static' but never defined
make: *** [skge.o] Error 1
bash-2.05b#
------------------------------------------------------------
只是我目前也不知道要怎麼解決
所找到的資料也是說無解
http://66.102.7.104/search?q=cache:8...3%26forum%3D4+(3C940)+%2BLinux%E4%B8%8B%E9%A9%85%E5%8B%95%E7%A8%8B%E5%BC%8F%E5%AE%89%E8%A3%9D&hl=zh-TW&lr=lang_zh-TW
所以..........嗯.........

wzj001 2004-07-29 12:40 AM

啊..換一個...網路卡嗎?
那是在主機板裡面的呢...

不過..真是感謝你的回覆...^^:bj375mg:

luka 2004-07-29 01:39 AM

就再買張網路卡來用就好啦,主機版內建的就別用了。
方法很爛我知道,但是就現在看來只有這個方法:dcft689kj

wzj001 2004-07-29 08:47 PM

我換了螃蟹卡...還是不行..
我決定重灌..:jmfopr:

motorbid 2004-07-29 09:54 PM

我正想把另一台電腦改成LINUX 看你這樣我真的要好好考慮一番

NeoHsu 2004-07-29 10:07 PM

有那麼困難嗎?你下的指令也很奇怪?
./configure
make
make load
上面三個指令應該就可以安裝好dreiver了,接下來就是掛上driver
引用:

5) Run the './snddevices' script to create new sound devices in /dev directory.
Skip this step, if you have a kernel with the DEVFS support.
6) Edit your /etc/modules.conf (see the kmod support section below).
7) Run 'modprobe snd-xxxx' where xxxx is the name of your card

你貼的這些說明應該是audio音效晶片的driver說明
引用:

3Com Gigabit NIC (3C2000) Driver Readme Version A02
Copyright (c) 2003 3Com Corporation

This file describes the 3Com Gigabit NIC (3C2000) driver for Linux.

Loading the driver
------------------

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 http://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


To unload the driver
--------------------

1) Type 'ifconfig eth0 down' (Substitute you actual interface for 'eth0')

2) Type 'rmmod 3c2000'

這個才是3com網路晶片的說明,請勿誤導

你安裝RH時有沒有選擇完整安裝?或者有選擇將kernel全部安裝起來?編譯這些driver需要這些,而且只需要下載第二個檔就可以了

luka 2004-07-29 10:09 PM

結果如何再和大家分享一下吧:bj375mg:
裝Linux的話,要注意一下別用太新的硬體,不然就會容易有無法驅動的問題。
顯示卡的話最好是買NVIDA的晶片的顯示卡,他官方有出Linux的驅動,而且是"能裝成功"的那種。


所有時間均為台北時間。現在的時間是 05:53 PM

Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2025, Jelsoft Enterprises Ltd.

『服務條款』

* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *


SEO by vBSEO 3.6.1