【求助】無線網卡華碩WL-107G for Linux driver安裝問題



贊助商連結


password
2004-06-30, 11:52 AM
以下是華碩wl-107g說明書的部份,


This source code package can be use in Linux version after RedHat Linux 7.1



Script or command functionality comment:

load load module to kernel

unload unload module from kernel

Configure config build linux version

bridge_setup script for bridge setup



Setup sequence:

1. Use 'chmod' command to change access right of following script files

'load', 'unload', 'Configure', 'bridge_setup'



2. Turn on or patch linux bridge package



3. $make config # config build linux os version



4. $make all # compile driver source code



5. $load # load/insmod module(rt2500ap.o)



6. $bridge_setup # configure bridge


但我執行make config時,
都會出現:
-------------------- RT2500 SoftAP Configuration --------------------

Linux kernel source directory [/usr/src/linux-2.4.20-8]:
直接按enter會出現路徑錯誤,
指向/lib/modules/2.4.20-8會出現:

Linux kernel source directory : /lib/modules/2.4.20-8

sed: can't read /lib/modules/2.4.20-8/Makefile: 沒有此一檔案或目錄
sed: can't read /lib/modules/2.4.20-8/Makefile: 沒有此一檔案或目錄
sed: can't read /lib/modules/2.4.20-8/Makefile: 沒有此一檔案或目錄
sed: can't read /lib/modules/2.4.20-8/Makefile: 沒有此一檔案或目錄
expr: syntax error
./Configure: line 115: [: -lt: unary operator expected
Module install directory : /lib/modules/2.4.20-8/kernel/drivers/net

Type make to build the module.


直接用
make clean
make all
會出現以下錯誤...
make: *** [rtmp_main.o] Error 1
請站上各位大大協助小弟解決這個問題
感激不盡...

贊助商連結


wangcm
2004-06-30, 06:06 PM
Driver看來是給v2.4.20的kernel用的,你是用這版(而且有裝kernel source,BTW,貼一下lspci吧;) )嗎??

BTW,我比較喜歡自己裝source code(wether kernel or driver,所以我沒用過RedHat;) ),不知他們提供的是source或binary/semi-binary code??

wangcm
2004-07-01, 12:50 PM
剛去Asus下載linux的driver,是Ralink的chipset,driver只有semi-binary,如果你kernel的版本跟其所提供的libary不同的話可能會有點麻煩;) ;) ....

password
2004-07-02, 10:20 AM
謝謝wangcm大大指導,

我已經到ralink網站下載最新的driver了
以下是說明書部分:

但我在做到c步驟時還是會出現
Linux kernel source directory [/usr/src/linux-2.4.20-8]:
直接按enter會出現路徑錯誤,
輸入/lib/modules/2.4.20-8,還是會有錯誤訊息
Linux kernel source directory : /lib/modules/2.4.20-8


expr: syntax error
./Configure: line 115: [: -lt: unary operator expected
Module install directory : /lib/modules/2.4.20-8/kernel/drivers/net

請問在這個步驟我應該把路徑指向哪邊?


RT2500 b/g driver for RT2500 b/g, Ralink Tech Corp.
=================================================================
Supported linux distribution are:
1. Redhat : 7.2,7.3,8.0,9.0
2. Mandrake : 9.0, 9.1, 9.2, 10.0
3. SuSE : 8.1, 9.0
4. Fedora : Core1, (and generic kernel source,2.4.24, 2.4.25, 2.4.26, 2.6.2, 2.6.4, 2.6.5)
5. Slackware : 8.1, 9.0, 9.1


FILE LAYOUT
=================================================================
./LINUX_RACONFIG : source codes for RT2500b/g user interface API.
./redhat : drivers for redhat official release.
./mandrake : drivers for mandrake official release.
./SuSE : drivers for SuSE official release.
./fedora : drivers for Fedora official release.
./slackware : drivers for Slackware official release.
./2.4.x : contains Makefile for kernel source 2.4.x
./2.6.x : contains Makefile for kernel source 2.6.x
RT2500STA.dat : sample file for configuration file. Driver will search configuration file in
/etc/Wireless/RT2500STA/ at every startup.



1) SETUP SEQUENCE
======================================================================
a. $tar -xvzf RT2500STA-Linux-1.3.0.2.tgz
go to "./RT2500STA-Linux-1.3.0.2/" directory.

b. for kernel version greater than 2.6.x,
cp ./2.6.x/Makefile .
for kernel version 2.4.x,
cp ./2.4.x/Makefile .

c. $make config # config build linux os version

d. $make install # cp driver module to /lib/modules/'uname -r'\kernel\drivers\net.
# In redhat, mandrake, SuSE, Fedora distributions,
# create script file so as to auto-start at boot.
# In slackware distributions, no script file created.
# For who wants auto-start at boot in slackware, please change related config files yourself.

e. Go to the corresponding directory to derive your driver modules according to your linux distribution,
then /sbin/insmod rt2500.o (or rt2500.ko for kernel 2.6.x)

f. $load


Note: Script functionality:
load load module to kernel
unload unload module from kernel
Configure retrive linux version

wangcm
2004-07-02, 04:05 PM
抱歉因為我沒用過RedHat,只能給你大略的建議....

1:你是用那套distribution?? 你貼的說明中Redhat只支援到9.0或FC1,最近很流行的FC2並不在其中;)...

2:你有沒有裝kernel modules?? 試一下ls /lib/modules看有啥東東...BTW,通常要update kernel相關的東東必須要有root permission,這點不要忘了;) ...

3:你的kernel是哪個版本的?? 試一下uname -r,看來它認為你是跑2.4.20-8(RedHat released的版本),這類semi-binary driver如果判斷錯誤的話會裝不起來甚至讓kernel crash:eek: :eek: ....

4:你有沒有裝kernel source(至少要裝kernel header),不然是compile不起來的;) ....

password
2004-07-05, 10:38 AM
感謝wangcm大大...^^

我的是RedHat9.0...
安裝時還是一堆錯誤訊息
不過網卡已經亮燈...
索性把tool安裝起來,
執行...真的可以抓到AP...-__-
而且還可以正常連線...怪怪...

lynyeh
2005-02-18, 05:34 PM
感謝wangcm大大...^^

我的是RedHat9.0...
安裝時還是一堆錯誤訊息
不過網卡已經亮燈...
索性把tool安裝起來,
執行...真的可以抓到AP...-__-
而且還可以正常連線...怪怪...

您好
華碩網站有提到WL-107g可當作AP使用
說明書上指稱AP僅能在winxp使用,但其網站宣稱linux可使用
請問您有沒有架設過呢?是否可以始用?