USB无线网卡配置步骤

2019-07-12 17:43发布

 最近花了三个星期,终于把基于嵌入式LINUX的无线网卡的驱动搞定了。写个配置步骤,具体开发流程后续,以供与我有相同工程任务的菜鸟参考: 1,  应用平台  Ucdragon PXA270 开发板,Intel XSCALE 处理器,嵌入式Linux 2.6.9 2,  网卡硬件  Netgear WG111 v2,所用芯片 RTL8187(台湾RealTech,Cop) 支持802.11b/g,USB2.0 3,  PC机:Operation System:ReadHat 9.0(kernel 2.4.20)+Windows XP           cross_complier:arm-linux-gcc,cross-3.3.2                 Linux 2.6.9 4,LINUX的80211支持模块: ieee80211_crypt_rtl.ko ieee80211_crypt_rtl_wep.ko ieee80211_crypt_rtl_tkip.ko ieee80211_crypt_rtl_ccmp.ko ieee80211-r8180. RTL8187驱动模块: kor8187.ko 无线配置工具: iwconfig iwlist iwspy 5,静态配置IP步骤: 1,download configuation tools:iwlist,iwconfig/*****static library compile********/
  download drivers:ieee80211_crypt*.ko,r8187.ko
2,insmod ieee80211_crypt-rtl.ko
  ieee80211_crypt_ccmp-rtl.ko
  ieee80211_crypt_tkip-rtl.ko
  ieee80211_crypt_wep-rtl.ko
  ieee80211_crypt_wep-rtl.ko
  r8187.ko
3,chmod 755 iwlist
  chmod 755 iwconfig
4,plug nic in
4,ifconfig wlan0 up
5,./iwlist wlan0 scan
6,./iwconfig wlan0 key restrict AFD53C7C5C1E447BEDAAEA78C6
7,./iwconfig wlan0 essid "mcc-dsl"
8,ifconfig wlan0 192.168.1.100 netmask 255.255.255.0
9,echo "nameserver 192.168.1.1">> /etc/resolv.conf
10,route add default gw 192.168.1.1
11,ping www.baidu.com
   That's OK! Now,we can enjoy it!