RT3070網卡驅動在ferdora 9中的安裝

第一步:下載RT3070的無線網卡驅動;解壓得到/opt/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO 

第二步:由於是在虛擬機裏面安裝,所以不存在驅動移植的問題,一般源碼包裏面就已經支持了,直接make,在/opt/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux 目錄下會有RT3070.KO文件;再make install;

第三步:把/opt/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO 下的RT2870STA.dat 複製到 /etc/Wireless/ (這個目錄需要自己創建).

第四步:cd /opt/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux 這個目錄下,insmod RT3070.ko,如果說這個驅動已存在,就remmod RT3070,再繼續insmod.

第五步:使用命令,ifconfig -a ,此時會看到 ra0這個無線網卡了,啓動無線,ifconfig ra0 up.

第六步:需要移植wireless tools進行聯網和配置

1.下載wireless_tools.29.tar.gz

2.解壓:#tar zxvf wireless_tools.29.tar.gz

3.修改makefile

PREFIX = /home/leo/wirelesstoolsout

CC = /usr/src/usr/local/arm/3.4.1/bin/arm-linux-gcc

AR = /usr/src/usr/local/arm/3.4.1/bin/arm-linux-ar

RANLIB = /usr/src/usr/local/arm/3.4.1/bin/arm-linux-ranlib

4. 交叉編譯:

#cd wireless_tools.29

#make

#make install

5. 複製文件到ARM開發板

拷貝libiw.so.29文件到目標系統/lib/

拷貝用到的幾個程序到目標系統的 /bin/ 目錄下就可以了

iwpriv、iwconfig、iwlist, iwevent, iwspy

至此wireless_tools移植完成

6.設置ip地址及子網掩碼:

# ifconfig ra0 172.31.13.229 netmask 255.255.254.0

7.掃描無線熱點

# iwlist ra0 scan

===>rt_ioctl_giwscan. 14(14) BSS returned, data->length = 1526

ra0 Scan completed :

Cell 01 - Address: 00:23:89:08:02:10

Protocol:802.11b/g

ESSID:"IMUST"

Mode:Managed

Channel:1

Quality:42/100 Signal level:-73 dBm Noise level:-115 dBm

Encryption key:off

Bit Rates:18 Mb/s

Cell 02 - Address: 00:23:89:DC:35:B0

Protocol:802.11b/g

ESSID:"IMUST"

Mode:Managed

Channel:1

Quality:42/100 Signal level:-73 dBm Noise level:-115 dBm

Encryption key:off

Bit Rates:18 Mb/s

Cell 03 - Address: 00:23:89:DC:38:90

Protocol:802.11b/g

ESSID:"IMUST"

Mode:Managed

Ghannel:1

Quality:89/100 Signal level:-55 dBm Noise level:-115 dBm

Encryption key:off

Bit Rates:18 Mb/s

第七步:對網卡進行配置,命令行配置

在/etc/sysconfig/network-scripts目錄下添加ifcfg-ra0文件,添加如下內容:

DEVICE=ra0

ONBOOT=yes

ROOTPROTO=dhcp

進行以上幾步後,可以獲得ip了。但後來又出現不能獲取ip,並且重複以上也沒作用使用 
#dhclient ra0 

備註: 
Linux Force DHCP client (dhclient) to renew ip address 
Linux renew ip command
$ sudo dhclient -r //release ip 釋放IP
$ sudo dhclient //獲取IP 
Now obtain fresh IP:
$ sudo dhclient 
There is no need to restart network service. Above command should work with any Linux distro such as RHEL, Fedora, CentOS, Ubuntu and others. On a related note you can also try out the following commands:
# ifdown eth0
# ifup eth0
# /etc/init.d/network restart 
OR
# /etc/init.d/networking restart

通過以上步驟就可以連接外網了。

如果還是無法上網就做一下幾步:

1、/etc/sysconfig/network-scripts目錄下添加ifcfg-ra0文件,添加如下內容:
DEVICE=ra0
ONBOOT=yes
ROOTPROTO=dhcp
2、修改/etc/resolv.conf
nameserver 192.168.0.1

3、重新啓動網絡服務
/etc/init.d/network restart
4、ifconfig ra0 192.168.0.123
5、添加網關或者掩碼
route add default gw 192.168.0.1
route add default gw 192.168.0.1 netmask 255.255.255.0

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章