OpenWrt Forum Archive

Topic: Has anyone flashed the WRT54G-TM

The content of this topic has been archived on 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I was wondering if anyone has installed Openwrt on a WRT54G-TM.  I see that this router will run DD-WRT, but I am interested in trying Openwrt.  It seems like it just isn't mentioned int the documentation or any Google searches. 

Thank you for your time,

Samuel

I have the WRT54G-TM with a serial number starting CO61... (i.e. a version 1) and have flashed to DD-WRT.

I also would like to try OpenWRT.

From: http://en.wikipedia.org/wiki/Linksys_WR … #WRT54G-TM:
---
The WRT54G-TM having a serial number that starts with C061 has these specifications:

    * Broadcom BCM5352EKPBG CPU
    * 32 MB RAM (Hynix HY5DU561622ETP-D43)
    * 8 MB Flash (JS28f640)
    * Uses the same BINs that the WRT54GS v3.0 does
---

So, which of the http://downloads.openwrt.org/kamikaze/8.09/brcm47xx/ following firmwares is best?  Is there a version optimized for the BCM5352 chipset?  Is there a difference?

This part is very confusing for me.  If I try the wrong firmware below will I brick my router?


openwrt-wrt54g-squashfs.bin                        15-Feb-2009 18:59             2494496
openwrt-wrt54g3g-em-squashfs.bin                   15-Feb-2009 18:59             2494496
openwrt-wrt54g3g-squashfs.bin                      15-Feb-2009 18:59             2494496
openwrt-wrt54gs-squashfs.bin                       15-Feb-2009 18:59             2494496
openwrt-wrt54gs_v4-squashfs.bin

After all was said and done (I believe) I've installed and played with the following on the WRT54G-TM:

1) openwrt-wrt54gs-squashfs.bin
2) dd-wrt.v24_mega_generic.bin
3) dd-wrt.v24-10404_NEWD_mega.bin
4) openwrt-wrt54gs-squashfs.bin (X-WRT version)

Some of these came from here: http://downloads.openwrt.org/kamikaze/8.09/brcm47xx/ 

It was interesting that I could NOT load some of these firmwares unless I returned to dd-wrt first and loaded them from that OS.

I am playing with the X-WRT version since it seems to load packages properly and the other openWRT version would not update the packages.

I'm trying to get BATMAN running but I get an error when starting it that the socket is already in use.  (???)

These options are great fun.

I have the WRT54G-TM (with a serial number starting CO61...) and used it earlier with DD-WRT.  I changed to OpenWRT by flashing it first with Linksys WRT54GL v1.1 software and then with OpenWRT (Kamikaze 7.09).  Now running Kamikaze 8.09.

I am purchasing a WRT54G-TM and will be trying to install OpenWRT after the initial CFE upgrade. I prefer OpenWRT to DD-WRT for the extra features and ability to add/remove packages I want. I plan to try adding USB and an MMC reader as well. <fingers crossed>

(Last edited by mordak on 25 Aug 2009, 02:28)

Just wanted to clarify that the wrt54g-tm can be flashed with the openwrt-wrt54gs image (not V4) and it will run Kamikaze 8.09 very well.

I just installed X-WRT (openwrt-wrt54gs-squashfs.bin) on my Linksys WRT54G-TM without any problems.

I followed the method detailed for installing dd-wrt:
http://www.dd-wrt.com/wiki/index.php/WRT54G-TM

and I also looked at these sites (in case I bricked the router):
http://www.nosloop.com/index.php?section=8
http://www.thenorth.com/apblog4.nsf/0/6 … A400535F16

The basic outline is update CFE, tftp flash DD-WRT, update firmware to openwrt

So I downloaded three files using "wget -c $filename":
http://www.dd-wrt.com/dd-wrtv2/download … 54G-TM.bin
http://www.dd-wrt.com/dd-wrtv2/download … D_mega.bin
http://downloads.x-wrt.org/xwrt/kamikaz … uashfs.bin

I shutdown my laptop's eth0 and wlan0 interfaces:
/etc/init.d/net.eth0 stop
/etc/init.d/net.wlan0 stop
ifconfig wlan0 down

and connected my laptop to one of my WRT54G-TM lan ports.

I chose not to configure two virtual addresses for my NIC (eth0 and eth0:1)
but to just setup a single NIC address:

ifconfig eth0 192.168.0.2 netmask 255.255.255.0; route add default gateway 192.168.0.1
and browsed with firefox to http://192.168.0.1

Under Administration->UpgradeFirmware
I selected "CFE_Updater-WRT54G-TM.bin" and clicked OK.

My browser said the task was done, and my router's power light began blinking.
Eventually my browser timed out (no connection to 192.168.0.1)
which was expected since router should no be 192.168.1.1

So I reconfigured my NIC to 192.168.1.2
/etc/init.d/net.eth0 stop
ifconfig eth0 192.168.1.2 netmask 255.255.255.0; route add default gateway 192.168.1.1

Now I could ping my router at 192.168.1.1
So I tried browsing to http://192.168.1.1 without success (This was unexpected!)
So I waited some more, but still couldn't connect via http to router.
So I decided to try and flash the dd-wrt firmware "dd-wrt.v24-12548_NEWD_mega.bin"
but that too was unsucessful.

Next, I decided to press the reset button for 30 seconds, then power cycle the router.
When "ping 192.168.1.1" got a response I then succeeded in flashing the dd-wrt firmware:
using the tftp client from http://redsand.net

/usr/bin/linksys-tftp 192.168.1.1
> binary
> trace
> rexmt 1
> timeout 90
> put dd-wrt.v24-12548_NEWD_mega.bin admin
   transferred so many bytes
   transferred so many bytes
   ...
> quit

The router's power light began blinking but eventually stayed lit and I was able to
browse to http://192.168.1.1
and was now into DD-WRT
Then I used Adminstration->FirmwareUpgrade to upload X-WRT "openwrt-wrt54gs-squashfs.bin"

The router began blinking again, and when it stayed lit,
I hit the refresh button and was now looking at X-WRT

turnkit said he could not directly upgrade from one version of operwrt to another version (.bin)
without first changing back to dd-wrt.
The openwrt site says that if you're upgrading from Linksys firmware to openwrt, that you need to use
the .bin firmware files which contain header needed by Linksys, but otherwise to use the .trx files which
lack the header.

[UPDATE]
I successfully upgraded from X-WRT 8.09 to
10/03/09 snapshot (bleeding edge r17821 with kernel-2.6.30.8 )
using X-WRT's webif2 Firmware->Upgrade utility
with the trx image
(http://downloads.x-wrt.org/xwrt/kamikaz … uashfs.trx)

So once you're running openwrt you need to upgrade using .trx firmwares.

(Last edited by redwood on 6 Oct 2009, 22:28)

Please note that this guide is ONLY for the WRT54G-TM router and nothing else. Do NOT attempt to use this method on any other device, as it is written ONLY for the WRT54G-TM router.



In order to flash this router you need to do the following steps:

    * Download the DD-WRT firmware (v24-SP2 build 12548 OR NEWER is suggested)

NOTE: Check the Peacock thread for recommended build numbers if unsure.

    * Download the TFTP utility
    * Download Tornado's CFE_Updater-WRT54G-TM.bin
    * Turn OFF/Disable any AV/Firewall on your pc.
    * Make sure your pc is wired to a LAN port on the router when flashing.


Note to new users: Do your research and find out what the latest build is and use it from the start, unless there are issues with the latest build preventing the WRT54G-TM from operating properly, then go to a previous build.


1. The default LAN IP Address of the Linksys WRT54G-TM is 192.168.0.1. You will need to set a Static IP Address on your computer for this procedure. If you are on Windows I suggest that you reset the router to it's defaults and set 2 LAN IP Address on your network controller to speed up the process, otherwise once you upload the CFE_Updater-WRT54G-TM.bin you will need to change your LAN IP Address from 192.168.0.2 to 192.168.1.2 to be able to TFTP DD-WRT onto the router.

On Windows XP, Control Panel/Network Connections/right-click on Local Area Connection icon and select Properties. On Windows Vista, Control Panel/Network and Sharing Center.

Go into the properties of the Local Area Connection/Internet Protocol TCP/IP and set the static IP address.

     IP Address: 192.168.0.2
     Subnet Mask: 255.255.255.0
     Default Gateway: 192.168.0.1

Click the Advanced button in the TCP/IP setup window and in the IP Address section click the ADD button to add the following 2nd IP Address to the adapter:

     IP Address: 192.168.1.2
     Subnet Mask: 255.255.255.0

Then click OK on each screen. Your network interface card (NIC) now has 2 LAN IP Address statically set on it, 192.168.0.2 and 192.168.1.2. This will allow your PC to communicate with the router before and after replacing the CFE on it. It will also allow you to be able to tell when the router is ready for a TFTP upload.


2. Open a command prompt window and type ping -t 192.168.1.1 and hit enter. Leave this window open.


3. Log into the WRT54G-TM's web interface @ http://192.168.0.1 (assuming that the router has been reset to defaults) and go to the Administration Tab - Firmware Upgrade. Upload the CFE_Updater-WRT54G-TM.bin to the router.


!!!ATTENTION!!! You MUST wait at least 5 minutes after clicking the Upgrade button to allow the CFE_Updater to replace the stock CFE on the router and for it to erase the rest of the flash, otherwise you will brick your router.


A few seconds after clicking the Upgrade button the Linksys web interface will report that the upload has been successful and the power light will begin flashing on the router. Do NOT assume that the CFE replacement/flash erasing/reboot process has finished as the power light will continue to flash after it has rebooted. So there is no way to tell when it is ready for you to TFTP the DD-WRT firmware to it except when you begin to see the ping respond.

So once it is finished replacing the stock CFE and erasing the rest of the flash, the router will reboot. When the router is ready for the TFTP upload of the DD-WRT firmware, you will see the ping -t 192.168.1.1 begin to respond in the command prompt window that you opened before.


4. Start up the TFTP utility and set the following:

     Server: 192.168.1.1
     Password: <leave blank>
     File: <path to dd-wrt.v24-12548_NEWD_mega.bin> (or whichever build you wish to use)

Now click the Upgrade button. Once the firmware is sent to the router, it will reboot. The power light will change from flashing to solid when it is ready to be configured @ http://192.168.1.1

If you do not see a progress bar as the tftp utility transmits the file, you may need to power cycle your router. Wait until the tftp utility has finished its attempts, then power cycle (possibly waiting a few seconds) and wait until you can ping 192.168.1.1 before clicking Upgrade again.

A few notes:

    * Tornado has made it so that the router will retain it's MAC Address that is on the label on the bottom of the router with the new CFE replacement.
    * Tornado is in the process of making a revert bin for those who may choose to revert back to the stock Linksys firmware (god only know why)

Many thanks goes out to Tornado, Eko, and Brainslayer for their work on this!!! Cool

No more will you need to void your warranty by opening the WRT54G-TM to JTAG DD-WRT onto it, or spending $70+ USD for a WRT54G-TM pre-loaded with DD-WRT from eBay






Mengembalikan Jati Diri Bangsa|
Kenali Dan Kunjungi Objek Wisata Di Pandeglang

The discussion might have continued from here.