This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
chumbyhackerboard:wifi [2011/02/24 16:51] ladyada |
chumbyhackerboard:wifi [2016/01/28 18:05] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Moved! ====== | ||
- | ====== Dongly ====== | + | This tutorial has moved to [[http://learn.adafruit.com/chumby-hacker-board/wifi|http://learn.adafruit.com/chumby-hacker-board/wifi]] |
- | + | ||
- | {{:chumbyhackerboard:wn321g_lrg.jpg?500|}} | + | |
- | + | ||
- | The Chumby hacker board does not have Wireless capability built in, but its very easy to add! The best dongle to use is the [[http://www.adafruit.com/index.php?main_page=product_info&cPath=47&products_id=283|TP-LINK TL-WN321G (or any other RT73-based dongle)]] which has drivers ready to go. Note that many dongles probably won't work - if you have one kicking around you can try it but don't be surprised when it is not recognized! | + | |
- | + | ||
- | If you know of an adapter that does/doesn't work, you should post it here: | + | |
- | * Works - RT73 based: | + | |
- | * Hawking HWUG1 with external antenna adapter. FCC ID: NDD957318S607 | + | |
- | * Works with alternate driver: | + | |
- | * [[http://www.dealextreme.com/details.dx/sku.48166|This]] mini-dongle from Deal Extreme works using [[http://junk.kanniets.nl/files/8192cu.ko|the 8192cu.ko]] module. | + | |
- | * <yours here> | + | |
- | * Doesn't work | + | |
- | * <here> | + | |
- | + | ||
- | === Alternate Driver Installation For 8192.ko === | + | |
- | == 8192cu.ko Instructions == | + | |
- | Download the module and copy it to your chumby, say /mnt/storage/. Then run the following commands. | + | |
- | + | ||
- | $ cd /mnt/storage/ | + | |
- | $ mount -oremount,rw / | + | |
- | $ install -p -m 644 8192cu.ko /lib/modules/2.6.28-chumby/kernel/drivers/net/wireless/ | + | |
- | $ depmod -a 2.6.28-chumby | + | |
- | $ mount -oremount,ro / | + | |
- | + | ||
- | + | ||
- | === Alternate Driver Installation For RT2800 === | + | |
- | + | ||
- | {{:chumbyhackerboard:rt2800.gif|}} | + | |
- | + | ||
- | The TP-Links changed from RT73 to RT2800. You can tell which is which because when you plug in the RT2800 a green LED lights up in the casing. | + | |
- | + | ||
- | Download this compressed file {{:chumbyhackerboard:rt2800-update.zip|RT2800 Kernel module update}}. Uncompress it and put it on a USB key. Plug the USB key into the CHB and copy it to /mnt/storage: | + | |
- | + | ||
- | $ cd /mnt/storage/ | + | |
- | $ mount -oremount,rw / | + | |
- | $ cp /mnt/usb-XXXXX/update-modules.sh . | + | |
- | $ ./update-modules.sh | + | |
- | + | ||
- | {{:chumbyhackerboard:updatingrt2800.gif|}} | + | |
- | + | ||
- | Reboot, then follow the rest of the tutorial! | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ====== Connecting to your WiFi network ====== | + | |
- | + | ||
- | Plug in the dongle | + | |
- | + | ||
- | {{:chumbyhackerboard:plugwlan.gif|}} | + | |
- | + | ||
- | Run **iwlist wlan0 scan** to list all the local networks | + | |
- | + | ||
- | {{:chumbyhackerboard:iwlist.gif|}} | + | |
- | + | ||
- | Find your network, we'll connect to **adafruit** (not listed here, just substitute your own connection name) | + | |
- | + | ||
- | Configure the wlan adapter (we'll be using WEP here, WPA is more complex) | + | |
- | * Set the WiFi password with **iwconfig wlan0 enc XXXXXXXXXX** where XXXXXXXXXX is your 10 digit hexadecimal WEP password (ps. our password isnt really DEADBEEF00) | + | |
- | * Set the channel to match the one in the **iwlist** output with **iwconfig wlan0 channel NN** | + | |
- | * Set the network you want to connect to with **iwconfig wlan0 essid adafruit** where **adafruit** is substituted with your network name | + | |
- | + | ||
- | {{:chumbyhackerboard:iwconfig.gif|}} | + | |
- | + | ||
- | You should get a **[ 1932.400000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready** response from the kernel | + | |
- | + | ||
- | ====== Start DHCP ====== | + | |
- | + | ||
- | DHCP will let you get your IP, route and DNS right from the router | + | |
- | + | ||
- | You'll need to remount root so that dhclient can edit it | + | |
- | + | ||
- | {{:chumbyhackerboard:iwremount.gif|}} | + | |
- | + | ||
- | Start up the **wlan0** connection | + | |
- | + | ||
- | {{:chumbyhackerboard:ifconfigup.gif|}} | + | |
- | + | ||
- | Then run **dhclient wlan0** (the image doesnt show the **wlan0** because I had already run dhclient to do this tutorial, make sure to stick the **wlan0** part on!) | + | |
- | + | ||
- | {{:chumbyhackerboard:dhclient.gif|}} | + | |
- | + | ||
- | You should be able to ping! | + | |
- | + | ||
- | {{:chumbyhackerboard:pinggooglewlan0.gif|}} | + | |
- | + | ||
- | + | ||
- | ====== Set up IP & DNS ====== | + | |
- | + | ||
- | Say you don't have DHCP or don't want to use DHCP for some reason. | + | |
- | + | ||
- | Pick an IP address, and **ifconfig wlan0 <ipaddress> up** to give yourself an IP address | + | |
- | + | ||
- | {{:chumbyhackerboard:ifconfignodhcp.gif|}} | + | |
- | + | ||
- | Don't forget to add a default route, through your router | + | |
- | + | ||
- | {{:chumbyhackerboard:addroute.gif|}} | + | |
- | + | ||
- | If you want DNS you'll have to remount the root directory **rw** and edit **/etc/resolv.conf** | + | |
- | + | ||
- | {{:chumbyhackerboard:iwremount.gif|}} | + | |
- | + | ||
- | If you need to, set up your **resolv.conf** so that you have one or two DNS servers in there | + | |
- | + | ||
- | {{:chumbyhackerboard:resolvconf.gif|}} | + | |
- | + | ||
- | When you're done, be tidy and remount / as read only, k? | + | |
- | + | ||
- | {{:chumbyhackerboard:remountro.gif|}} | + | |
- | + | ||
- | ====== "Easy" way ====== | + | |
- | + | ||
- | In [[http://forum.chumby.com/viewtopic.php?pid=31627#p31627|this]] post by ChumbyLurker you'll find an easy way to configure your wireless, WPA and all. | + |