WRT160NL debrick

I wanted to update the firmware on my router, but I ended up bricking it. After some panic and research I found these three solutions:
1. http://redtechmonster.wordpress.com/2011/04/17/recover-wrt160nl/
2. Use JTag
3. unicorn (lives in the legends) https://forum.openwrt.org/viewtopic.php?id=27665

I had chose the first, I have a USB-serial converter (UART, Cp2102), on Windows:
Preparation: You will need a usb-serial converter, some program that will support serial communication(I had picked Putty), a program that will help you upload a file via TFTP, and the right firmware.

1. Remove the case of the router.
2. Here you can see the serial port. I plugged the right cables to the right place. From up to down:

1 – GND
2 – NC
3 – RX
4 – TX
5 – 3.3V

I only used, the RX, TX and the GND, in my case it was enough ( the PC’s usb provided me the power)

wrt160nl serial port

3. When you connected everything, run the Putty, and set the serial parameters(choose the right com port, in my case it was com 4, use 115200 baud for the speed).
4. Turn on the router, then connect the Putty to the router, and cancel the uboot(with ctrl+c keyboard combination).
5. If you did right you will get this prompt:
6. Prepare the router for the upload, give this command:
upgrade code.bin #the code.bin will be the filename that it will wait for upload. You will get back something like this:
check link duplex:Full/speed:100
dup 1 speed 100
Tftpd start listening on port[69]!
Load address: 0×80060000
7. Rename the firmware to code.bin. Set your PC IP on same network to some address in range 192.168.1.[2-254]. Now run the TFTP software. The host will be, browse the file, and start the upload (you will not need the password).
8. If you did everything right you can see the Putty’s window it will start the upload, and do the flashing. After about 10 mins, it is done. You will get back the console. Now you can reboot the device and use it as you want.

4 thoughts on “WRT160NL debrick

  1. One addition, as it wasn’t clear to me: in order to do this, the network cable needs to go directly from your computer to one of the LAN ports of the router.

  2. very good article! helped me a lot however it does missing like someone else said the fact that you need rj46 cable to connect the router i think it was port 4 the last one to a pc, only then you need to change your pc to point to or any other address that is not in the range of 2-253.

    I had an issue i didn’t know of that my pc had bad ethernet port, once i switched a laptop it worked, easily checked with ping command though available both in u-boot and a pc.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.