20 Apr 2011 20:59
TAGS: cisco linksys linux openwrt router wifi wrtu54g-tm x-wrt
OK, so some time ago I bought a Linksys WRTU54G-TM. It's powered by Infineon ADM8668 processor (at 200 MHz) and has 64 MB RAM, which makes is pretty powerful router. Also it's really cheap. It looks like this:
The problem with this router is that there was no cool open source software for it. Linksys opened its sources, but I meant something like DD-WRT or OpenWRT. The problem is that the CPU architecture is different from for example the widely known and used WRT54G series.
Nonetheless there was some heavy work done to run a custom Linux firmware on it. After some successes, the author decided to port OpenWRT distribution to this router. And this is how it's done :-).
The OpenWRT is a command-line distribution of Linux for a bunch of routers. There is a web interface called X-Wrt which is installable as a opkg package to the OpenWRT systems, but there is no real information of how to install it on specifically WRTU54G-TM.
The good news is it can be done, the bad news is you have to hack it a little (but only very little). So let's go.
First, you need to "update" the software of the router to the OpenWRT version. The reference here is: http://wiki.scottn.us/wrtu54g-tm. Just log in to the router WWW interface, select Administration » Firmware Upgrade and choose this file wrtu54g-tm-openwrt-devel-b5.bin (download it from http://wrt.scottn.us/wrtu54g-tm-openwrt-devel-b5.bin).
This takes a while. Router then reboots. Give it a few minutes to load and install. After that the power LED keeps blinking which is probably a bug (in the official firmware, the LED blinks while the system is loading, but once it's up it lights still).
Connect to one of 4 Ethernet ports and you should be given an address IP in the 192.168.1.* network. If not, assign yourself one (for example 192.168.1.10). Then you can confirm the router is up, by pinging it:
ping 192.168.1.1
Trying to ssh to it will reveal you can't really do it, since you don't know the root password. This is tricky, but you need telnet to the router:
telnet 192.168.1.1
You'll be given the root shell. Set the password:
passwd
You'll need to enter the password twice for confirmation. Don't forget it :-).
Now you can ssh to the router:
ssh root@192.168.1.1
Deal with the RSA "host not known" warnings etc, and supply the password you just set.
If you connected the router to the network (by Ethernet cable to the "Internet" port) and your ISP has DHCP server, you should already have the Internet connectiong:
ping google.com
If you need to supply the static IP address, edit the following file:
/etc/config/network
You can use vim (busybox version) editor:
vim /etc/config/network
wan network corresponds to the Internet connection, while lan to the 4-port switch.
In this scenario it's possible you also have to supply the DNS servers, so instead of checking the Internet connectivity by pinging google.com, ping some IP address, like:
ping 8.8.8.8
Once you have the Internet connection, you can update the packages repositories, so you can install the X-Wrt interface:
mv /etc/opkg.conf /etc/original.opkg.conf
cat > /etc/opkg.conf
Enter the following:
src/gz adm8668 http://wrt.scottn.us/packages
src/gz snapshots http://downloads.openwrt.org/snapshots/trunk/brcm47xx/packages
dest root /
dest ram /tmp
lists_dir ext /var/opkg-lists
option overlay_root /overlay
arch all 5
arch brcm47xx 10
arch adm8668 20
… and press Ctrl-D. Your /etc/opkg.conf file should now contain the lines above. Update the repositories:
opkg update
Install the X-Wrt, which is packed in package named webif:
opkg install webif
Now if you point your web browser to http://192.168.1.1/ you should have a poor 404 page. It seems the permissions of the /www directory are wrong. I just did that to fix the problem:
chmod -R a+rX /www
/etc/init.d/uhttpd restart
Now you can log to the Web interface in with your login (root) and password.
You can now play with the router settings using the browser :-). Much simpler.
References:
http://wiki.scottn.us/wrtu54g-tm
http://wiki.openwrt.org/doc/start
Hi
When I type "vim /etc/config/network" I get: "'vim' is not recognized as an internal or external program…"
What should I do? My router is useless if I don't configure it.
Piotr Gabryjeluk
visit my blog
I picked up a WRTU54G-TM for $4.00 at a thrift store. I flashed it with wrtu54g-tm-openwrt-devel-b5.bin. The power light blinks continuously but I can ping it using Windows 7 at 192.168.1.1 as expected in you help file so its not bricked yet lol. I'm 59 yeas old and have been tinkering with computers since DOS and the beginning of Windows 3.1. From some of my reading I see I'm going to learn some Linux with command lines to get this router back on line. Thanks for your hard work. Would you recommend a Linux release for me to cut my teeth on? It's not crucial but I see if I'm going to tinker I've got to learn part of Linux. Again Thanks
Post preview:
Close preview