Problem: Bricked after a bad dd-wrt flash.
Additionals: JTAG cable, 12pins header, Tornado's TJTAG 3.0, TFTP.
Hard reset (30/30/30) :
- Press and hold the reset button for 30 seconds.
- Keep holding the reset button and unplug power cable from router and hold for another 30 seconds.
- Keep holding the reset button and plug the power cable back and hold for the last 30 seconds.
This resets to default settings and cleans the NVRAM.
Default settings implies resetting the LAN ip to 192.168.1.1 which will allow you to TFTP flash.
Installing Tornado's TJTAG :
- [tjtag-3.0.1.zip] ftp://dd-wrt.com/others/tornado/jtag/
- If your windows is 32bit download the first file and extract it.
Copy giveio.sys to /windows/system32/drivers/
Execute loaddrv.exe, append giveio.sys and click Start - This will allow TJTAG to probe the serial bus.
- If your windows is 64bit, download the second file from dd-wrt forum.
Extract it, navigate to /InpOutBinaries_1200/Win32/ and execute InstallDriver.exe
Flash via TFTP :
- tftp 192.168.1.1
- >rexmt 1
- >timeout 60
- >put dd-wrt.v24_micro_generic.bin
Should appear something like: Sent 1769472 bytes in 3.4 seconds.
First of all, check what are the behaviors of your bricked router. Connect to router with a ethernet cable and manually configure your connection with the last known working settings.
- If you don't remember the settings go to @Step 1.
- If you are able to establish the connection, ping your router, if you get responses go to @Step 13. If you don't get any response do a 30/30/30 hard reset and try again if unsuccessful go to @Step 1.
- Solder the 12pin header to your router.
- Connect the JTAG cable to the 12pin header and to your computer's Serial port.
- [Install TJTAG]
- Open CMD and navigate to the folder containing tjtag exe.
- Run tjtag -probeonly, it should display info about your router. If it doesn't detect your flash chip, try to run this command right after pluging the power to the router.
- Run tjtag -erase:wholeflash twice, do the immediate command running in the step above if necessary.
- Get the correct CFE.bin for your router in ftp://ftp.barryware.net/cfe%20collection%20project/ user:dd-wrt password:router
- Rename to CFE.bin if necessary and move it to the same folder which contains tjtag exe.
- Run tjtag -flash:cfe /noemw /nocwd /noreset
- After finishing, power cycle and do a 30/30/30 hard reset. The leds should be off.
- Connect via ethernet to your router.
- ping 192.168.1.1 If you get a latency, means it worked and we will be able to tftp flash it.
- Search your router model at http://www.dd-wrt.com/site/support/router-database
- Download tftp utility and dd-wrt.v24_micro_generic.bin.
- [Flash via TFTP]
- Power cycle and do a 30/30/30 hard reset.
- Connect to 192.168.1.1 and it should now appear the dd-wrt management. Change user and password.