2012年(1008)
分类:
2012-08-01 10:39:12
|
tekkaman@MAGI:~/working/linux-wlan-ng-0.2.9$ CROSS_COMPILE=arm-9tdmi-linux-gnu- ./Configure -------------- Linux WLAN Configuration Script ------------- The default responses are correct for most users. Build Prism2.x PCMCIA Card Services (_cs) driver? (y/n) [y]: n Build Prism2 PLX9052 based PCI (_plx) adapter driver? (y/n) [y]: n Build Prism2.5 native PCI (_pci) driver? (y/n) [y]: n Build Prism2.5 USB (_usb) driver? (y/n) [y]: (不用配置,模认是y,这就是我们需要的Prism2.5 USB) Linux source directory [/lib/modules/2.6.27-14-generic/build]: /home/tekkaman/working/linux-2.6.28.5_tekkaman(你的Linux内核位置) The kernel source tree is version 2.6.28.5. ******* WARNING WARNING WARNING ******* Kernels newer than 2.6.24.x are not supported. (此警告不于理会,我们已经打过补丁了) ******* WARNING WARNING WARNING ******* WARNING: the current running kernel is actually version 2.6.27-14-generic. The current kernel build date is Wed Apr 15 18:59:16 2009. Alternate target install root directory on host []: /home/tekkaman/working/rootfs_test(你的target rootfs 位置) Module install directory [/lib/modules/2.6.28.5]: (不用配置,这是一个相对上面root directory的位置) It looks like you have a System V init file setup. Prefix for build host compiler? (rarely needed) []: Build for debugging (see doc/config.debug) (y/n) [n]: Configuration successful. Now type 'make' and pray. |
#!/bin/sh echo "-----------------------insmod the driver" insmod /lib/modules/p80211.ko insmod /lib/modules/prism2_usb.ko echo "-----------------------enable the wlan0" wlanctl wlan0 lnxreq_ifstate ifstate=enable echo "-----------------------set WEP key and enable WEP" wlanctl wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=11:22:33:44:55:66:77:88:99:00:12:31:23 wlanctl wlan0 lnxreq_hostwep decrypt=true encrypt=true wlanctl wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true echo "-----------------------config IP" ifconfig wlan0 192.168.1.10 ifconfig wlan0 echo "-----------------------join the AP network" wlanctl wlan0 lnxreq_autojoin ssid="Tekkaman Network" authtype=opensystem echo "-----------------------set the gateway" route add default gw 192.168.1.1 |
#!/bin/sh echo "-----------------------insmod the driver" insmod /lib/modules/p80211.ko insmod /lib/modules/prism2_usb.ko echo "-----------------------enable the wlan0" wlanctl wlan0 lnxreq_ifstate ifstate=disable wlanctl wlan0 lnxreq_ifstate ifstate=enable echo "-----------------------set WEP key and enable WEP" wlanctl wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0=11:22:33:44:55:66:77:88:99:00:12:31:23 wlanctl wlan0 lnxreq_hostwep decrypt=true encrypt=true wlanctl wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true echo "-----------------------config IP" ifconfig wlan0 192.168.2.2 ifconfig wlan0 echo "-----------------------set the gateway" route add default gw 192.168.2.1 netmask 255.255.255.0 echo "-----------------------join the Ad-Hoc network" wlanctl wlan0 dot11req_start ssid=tn bsstype=independent \ beaconperiod=100 dtimperiod=3 cfpollable=false cfpollreq=false cfpperiod=3 cfpmaxduration=100 probedelay=100 \ dschannel=12 basicrate1=2 basicrate2=4 operationalrate1=2 operationalrate2=4 operationalrate3=11 operationalrate4=22 |
问题1:平台搭建好之后,可以ping通内网ip和外网ip,但是ping不通域名。 |