I've been a little quiet because I've been busy working. For a career programmer I am an extremely slow typist, so I can either work or talk about it. I wanted to get the OpenWrt install a little easier before I provided any documentation, rather than provide conflicting information. If I'm not clear on anything, point it out and I'll fill in more detail.
Step 1 - OpenWrt Kernel 2.4 (optional)
Follow the instructions on the
OpenWrt WRT54GL page to install OpenWrt. I can't provide any clearer explanations than they have there. The safest thing to do is install a 2.4 kernel version like they say to. These are located in the brcm-2.4 folder for these Linksys WRT54GL routers. Once it is installed, telnet 192.168.1.1 and set the boot_wait property in nvram. This gives you a failsafe in case a later flash fails and leaves your router unbootable.
Step 2 - OpenWrt for reals
While LinkMeter can run on any OpenWrt install I believe, I've built
a custom firmware image that has all the prerequisites in it. The easiest way to flash this if you've done the previous step is to telnet back in and flash it from the command line:
<pre class="ip-ubbcode-code-pre">
cd /tmp
wget
http://capnbry.net/linkmeter/s...rcm47xx-squashfs.trx
mtd write /tmp/linkmeter-brcm47xx-squashfs.trx linux && reboot
</pre>
Step 3a - Configure wireless client (manual)
If you're familiar with editing config files with vi, the quickest way to do this is to edit /etc/config/network and make your wan section look like this:<pre class="ip-ubbcode-code-pre">
config 'interface' 'wan'
option 'ifname' 'eth0.1'
option 'proto' 'dhcp'
option 'hostname' 'lm54'
</pre>
and edit your /etc/config/wireless
<pre class="ip-ubbcode-code-pre">
config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'macaddr' '00:25:9c:52:44:5e'
option 'hwmode' '11g'
option 'channel' 'auto'
config 'wifi-iface'
option 'device' 'radio0'
option 'ssid' 'yourwirelessap'
option 'mode' 'sta'
option 'network' 'wan'
option 'encryption' 'psk2'
option 'key' 'yourwpakey'
</pre>
Obviously the ssid and key should be changed, also the encryption if you aren't using WPA2 PSK. Finally commit it by /etc/init.d/networking restart
Step 3b - Configure wireless client (web)
Connect to the web interface
http://192.168.1.1/. Go to Network -> Interfaces -> WAN -> Physical Settings and uncheck the box that says "creates a bridge over specified interface". Save.
Next go Network -> Wifi and click the Edit icon. You want to check the Enable checkbox, set the channel to auto, the Mode to be Client, and the network to be WAN,and the rest of the setting are specific to your network. Namely ESSID should be your network name, and the security probably needs to be configured. Save, reboot.
Once you reboot your router will get a DHCP dynamic address and you can access it wirelessly. The
http://192.168.1.1/ address will only work when you're physically plugged into the router.
Step 4 - Install LinkMeter
Command Line: opkg install
http://capnbry.net/linkmeter/s...meter_1_brcm47xx.ipk
GUI: Go to System -> Software and paste the url in the "Download and install package" box:
http://capnbry.net/linkmeter/s...meter_1_brcm47xx.ipk
Step 5 - That's it.
Go to the base URL of your router again:
http://your.router.address/
And you should be redirected to the LinkMeter main page. You can access it without the double bounce using the URL
http://your.router.address/cgi-bin/luci/lm/
You'll notice you can't change any the probe names or setpoint if you're not logged in. If you see a link on the bottom of the page that says "Login", you're in guest mode.