usb hub

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: usb hub

Post by mightyohm »

I settled on using a 128MB thumb drive for the demo I did at Notacon, because I had issues with larger drives and FAT filesystems. However, I think other members of the forums have made larger flash drives work. You might search around to see what people have done (I would search on the openwrt.org forums as well.)

Here are my notes - this is for Kamikaze 8.09, slightly different than what I used for the original Wifi Radio project. I compiled the packages myself and had them in a separate repository that I pointed opkg to.

Code: Select all

Hacking the WL-520gU Wireless Router - Demo
JSK 4/11/09

Step 0 - Flash the factory firmware into the router.  Verify operation,

1. Connect ethernet, USB-serial to the macbook and router.
2. Open Zterm.
3. Apply power to the router.  Show boot messages on Zterm,
4. Open http://192.168.1.1 and show factory firmware is running.

5. Power off.  Press reset.  Power on.  Show tftp prompts.
6. tftp the new image to the router
cd ~/openwrt/kamikaze-8.09
tftp
trace
mode binary
connect 192.168.1.1
put openwrt-brcm-2.4-squashfs.trx
~/openwrt/kamikaze-8.09/openwrt-brcm-2.4-squashfs.trx

wait until programming is complete.
7. Power cycle router.
8. Wait for flash format to complete.  Hit enter.
9. Set passwd
10. Edit /etc/opkg.conf to point to:
src/gz snapshots http://192.168.1.185/~jkeyzer/kamikaze-8.09/

11. Run opkg update.  Confirm that it worked.
12. opkg install kmod-usb-ohci kmod-usb-audio kmod-usb-storage kmod-
fs-vfat
13. reboot
13. Plug in USB hub with usb-audio and thumb drive
14. mkdir /mnt/usb
15. mount /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb
16. cd /mnt/usb ;  ls
17. opkg update
18. opkg install libpthread tinysid
19. tinysid ./Resolution.sid


if I get that far...
20. edit /etc/config/wireless to point to wlan
21. opkg install mpc mpd
22. cd ~
23. mkdir music
24. mkdir .mpd
25. mkdir .mpd/playlists
26. vi /etc/mpd.conf
27. mpd
28. mpc add http://relay3.slayradio.org:8000/
29. mpc play

User avatar
mightyohm
Site Admin
Posts: 1064
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: usb hub

Post by mightyohm »

More info in the last few slides on my Notacon talk:
http://mightyohm.com/blog/2009/04/notac ... -download/
Post Reply