Bricked WRT160NL - Serial Working - What do I type?

Report problems and success stories with Gargoyle on various hardware platforms.

Moderator: Moderators

Post Reply
Psychic
Posts: 6
Joined: Mon Dec 24, 2012 6:36 pm

Bricked WRT160NL - Serial Working - What do I type?

Post by Psychic »

I attempted to downgrade from Gargoyle 1.5.8 to the more stable 1.4.7 as I was getting some unexpected behavior. However, I made the mistake though of trying to keep my settings, so whilst everything looked like it went fine, it didn't boot again.

So, flashing blue power light when plugged in. At 8 seconds, all LEDs flash briefly, then just flashing blue power again.
No ping. No Telnet. No TFTP.exe. 30/30/30 didn't help. Boot with reset pin didn't help. I can see the IP address on ARP, and get an IP conflict if another device has the same IP, but cannot do anything with it directly.

So, after some more investigation, I decided that I'd probably need to go down the serial route.

I got me one of these USB to TTL (3.3v) Serial:
http://www.amazon.co.uk/gp/product/B00A ... 00_s00_i00
And the drivers from here:
http://www.silabs.com/products/mcu/Page ... ivers.aspx
and thought all would be well.

I downloaded Putty (Windows 7 64-bit has no hyperterminal) and connected, eventually, with 115200 8N1. I did need to have the modem power plugged in, and the USB TTL 3.3v wire unplugged, but it works.

If left to boot on its own, I now get:

Code: Select all

ÿ

U-Boot 1.1.6 (Apr 14 2010 - 14:02:36)

DRAM:  ar7100_ddr_initial_config(237) enter!
ar7100_ddr_initial_config(269) exit!

U-Boot 1.1.6 (Apr 14 2010 - 14:02:36)

AP81 (ar7100) U-boot
sri
32 MB
WRT160NL u-boot version: 1.0.0
Top of RAM usable for U-Boot at: 82000000
Reserving 279k for U-Boot at: 81fb8000
Reserving 192k for malloc() at: 81f88000
Reserving 44 Bytes for Board Info at: 81f87fd4
Reserving 36 Bytes for Global Data at: 81f87fb0
Reserving 128k for boot params() at: 81f67fb0
Stack Pointer at: 81f67f98
Now running in RAM - U-Boot at: 81fb8000
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7100_enet_initialize...
ag7100 get ethaddr for device eth0
Fetching MAC Address from 0x81feb1e0

 --------***** Get the RTL8306SD Manufactory ID=379c *****-------
 Reg6: speed=0 nway=1 duplex=0
 Reg5: speed=0 nway=0 duplex=0
 Reg1: a1=7fd9 a2=30e0 a3=15ac a4=30e0 a5=0
 Reg1: a1=7fd9 a2=30e0 a3=15ac a4=30e0
 Reg1: a1=7fd9 a2=30e0 a3=15ac a4=30e0
 Reg1: a1=7fd9 a2=30e0 a3=15ac a4=30e0
 Reg1: a1=7fd9 a2=30e0 a3=15ac a4=30e0
eth0: 20:aa:4b:55:05:a1
eth0 up
eth0
### main_loop entered: bootdelay=1

Hit any key to stop autoboot:  0
## Booting WRT160NL ...
Application code length 0x00500000
Bad CRC: trx.crc32 0x230a2ceb calculate 0xe2ca64da
 check link duplex:Full/speed:100
dup 1 speed 100
Tftpd start listening on port[69]!
Load address: 0x80060000
With the notable highlights of:
*** Warning - bad CRC, using default environment
Bad CRC: trx.crc32 0x230a2ceb calculate 0xe2ca64da


And if I just plug a network cable in at this point, I get 10 or so lines of "checksum bad", and can't connect or do anything.
I can, however, stop boot at the appointed line and get dropped into an "ar7100>" prompt.



So, that's about where I am right now, and I want to try and make sure what I do next is right, which is why I'm here posting again for advice!

I've seen a few conflicting posts about what to do at this point. Some mention a QFE> prompt and NVRAM ERASE which I don't have either of.
Another at least shows the right prompt, but when I enter "loady 80800000", I get:

Code: Select all

## Ready for binary (ymodem) download to 0x80800000 at 115200 bps...
CCCCCCCCCCTimed out
xyzModem - Cksum mode, 0(SOH)/0(STX)/0(CAN) packets, 20 retries

So, at this point in time, what should I actually be typing into Putty to unbrick the router? I'm guessing I need to upload another file - not sure exactly which file though, not how I'm supposed to do it.

Any help would be appreciated!

User avatar
DoesItMatter
Moderator
Posts: 1373
Joined: Thu May 21, 2009 3:56 pm

Re: Bricked WRT160NL - Serial Working - What do I type?

Post by DoesItMatter »

http://wiki.openwrt.org/toh/linksys/wrt ... tp.install

This is what you would follow once you have serial access

Serial just lets you see what is going on with the router.

You'll need to be connected via serial AND via ethernet cable to the router

What you do is type the commands and watch the results via serial

The ethernet cable is used to send the file from your computer to the router
via TFTP transfer

http://tftpd32.jounin.net/ (Very good free TFTP utility for windows)

If you're smart enough to be using Linux - you should already know
how to do TFTP transfers via command line
:twisted: Soylent Green Is People! :twisted:
2x Asus RT-N16 = Asus 3.0.0.4.374.43 Merlin
2x Buffalo WZR-HP-G300NH V1 A0D0 = Gargoyle 1.9.x / LEDE 17.01.x
2x Engenius - ESR900 Stock 1.4.0 / OpenWRT Trunk 49400

Post Reply