E4200 bad flash recovery

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4  Next
Author Message
mama_mia
DD-WRT Novice


Joined: 15 Aug 2012
Posts: 44

PostPosted: Tue Mar 15, 2016 11:48    Post subject: Reply with quote
No I didn't lied. I don't know how to configure screen to those setting, wiki doesn't tell you how. I googled and didn't find the answer, so I asked.

How do you think I reached the first and second posts state?
Of course I was reading the wiki. I know google and I don't need someone to tell me to use it.
I just ask for help because I wasn't able to to do it by reading wiki, wiki isn't that straight.

But your reply just made my point, people only replies when you complain, to help, nobody does that. You let people make the mistake and then come to mock them.

This is not the community's spirit, I think some people need to go around some communities to learn how to behave there. When I got your first answer telling me to google it, the post was already more the 100 views, and now it has more than 300, so no one knows how to do it? Or are they to lazy to write a sentence help another...

Who knows, one day you'll need help, and you'll understand my situation here.
Sponsor
Malachi
DD-WRT Guru


Joined: 17 Jul 2012
Posts: 7217
Location: Columbus, Ohio

PostPosted: Tue Mar 15, 2016 11:57    Post subject: Reply with quote
I did need help when I first started and was directed to read the wiki pages.
There are also a lot of threads about serial recovery on the e4200.
Don't use the forum search option. Use google.
Google dd-wrt e4200 serial recovery.

_________________
I am far from a guru, I'm barely a novice.
mama_mia
DD-WRT Novice


Joined: 15 Aug 2012
Posts: 44

PostPosted: Tue Mar 15, 2016 12:05    Post subject: Reply with quote
I have the router broken by over two weeks, and I did lots of reading before starting (wiki, this forum, other forums).
I searched on google by e4200 serial, by serial recovery, by ddwrt serial, but I got cross information, so I thought should ask first here, where it says "issues and requests about Broadcom".

But you're right, sorry for my bad mood, i'm having a bad day here at work and discharging at you...I just didn't like this statement, it looked cynical:
"Let us know if you have any success after already applying positive and negative 12vdc from the rs232 port to the router 3v rx port."
Malachi
DD-WRT Guru


Joined: 17 Jul 2012
Posts: 7217
Location: Columbus, Ohio

PostPosted: Tue Mar 15, 2016 12:10    Post subject: Reply with quote
Also I use a USB to uart adapter. Maybe look on eBay for one or goggle.
This is what I use http://m.ebay.com/itm/NEW-CP2102-USB-2-0-to-UART-TTL-6PIN-Module-Serial-Converter-Free-Cables-/201497833130

_________________
I am far from a guru, I'm barely a novice.
mama_mia
DD-WRT Novice


Joined: 15 Aug 2012
Posts: 44

PostPosted: Tue Mar 15, 2016 12:15    Post subject: Reply with quote
I ordered this:
http://www.ebay.com/itm/371521486969?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

and this:
http://www.ebay.com/itm/121360052937?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

But has I have an old Pentium 4 with rs232, I installed Fedora to give it a shot...

Should I bought something like this?
http://www.ebay.com/itm/3-3V-5V-USB-to-TTL-Converter-CH340G-UART-Serial-Adapter-Module-STC-5V-3-3V-6-pin-/121797014151?hash=item1c5baaf287:g:YV4AAOSw5ZBWLFCZ
Malachi
DD-WRT Guru


Joined: 17 Jul 2012
Posts: 7217
Location: Columbus, Ohio

PostPosted: Tue Mar 15, 2016 12:27    Post subject: Reply with quote
The last one, which is like the one I linked.
_________________
I am far from a guru, I'm barely a novice.
Malachi
DD-WRT Guru


Joined: 17 Jul 2012
Posts: 7217
Location: Columbus, Ohio

PostPosted: Tue Mar 15, 2016 12:29    Post subject: Reply with quote
Also, this is in the wiki I told you to read.
Malachi stated:
I have purchased a few of the Nokia clones that didn't work, for that reason I buy USB to uart adapters like these http://www.dx.com/p/usb-to-uart-5-pin-cp2102-module-serial-converter-81872#.VqrGiEo8KK0

See, all the info you needed is there.

_________________
I am far from a guru, I'm barely a novice.
Malachi
DD-WRT Guru


Joined: 17 Jul 2012
Posts: 7217
Location: Columbus, Ohio

PostPosted: Tue Mar 15, 2016 12:32    Post subject: Reply with quote
Also the reason some question go unanswered for a long time is because they get asked over and over and over.
So after 100 times it's easier for me to add the info in the wiki and tell people to Google dd-wrt serial recovery.

_________________
I am far from a guru, I'm barely a novice.
mama_mia
DD-WRT Novice


Joined: 15 Aug 2012
Posts: 44

PostPosted: Tue Mar 15, 2016 12:46    Post subject: Reply with quote
I'll order that one you posted. I have another 5 linksys routers running ddwrt, maybe I'll need the cable later.

Anyway I'll try again with max232 stepping down the tension, who knows the rX port is not burned...maybe it isn't.

Now I know wiki has all the info, but there are so much info there that is not east to filter which is the one I need....

Thank you!!
mama_mia
DD-WRT Novice


Joined: 15 Aug 2012
Posts: 44

PostPosted: Sun Mar 20, 2016 21:19    Post subject: Reply with quote
ddaniel51 wrote:
Let us know if you have any success after already applying positive and negative 12vdc from the rs232 port to the router 3v rx port.


Look's like the rX port handles +/-12vdc.
After making the circuit with MAX232 i'm able to communicate with the E4200.

The problem is that I did everything that's on wiki and it's not working. I flashed original linksys FW and the inicial "dd-wrt.v24-21061_NEWD-2_K2.6_mini-e4200.bin" and happens the same.
There's a print of putty:

Code:
"CFE version 2010.09.20.0 based on BBP 1.0.37 for BCM947XX (32bit,SP,LE)
Build Date: Fri Nov 12 11:01:26 CST 2010 (lzh@team2-complier)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.

No DPN
This is a Serial Flash
Boot partition size = 262144(0x40000)
Found an ST compatible serial flash with 256 64KB blocks; total size 16MB
sflash_cfe_probe: flash type ST, nparts 4
sflash_cfe_probe: idx 0, name boot, descr ST Serial flash offset 00000000 size 256KB
sflash_cfe_probe: idx 1, name trx, descr ST Serial flash offset 00040000 size 1KB
sflash_cfe_probe: idx 2, name os, descr ST Serial flash offset 0004001C size 16068KB
sflash_cfe_probe: idx 3, name nvram, descr ST Serial flash offset 00FF1000 size 60KB
sflash_cfe_probe: flash type ST, nparts 3
sflash_cfe_probe: idx 0, name boot, descr ST Serial flash offset 00000000 size 256KB
sflash_cfe_probe: idx 1, name trx, descr ST Serial flash offset 00040000 size 16068KB
sflash_cfe_probe: idx 2, name nvram, descr ST Serial flash offset 00FF1000 size 60KB
sflash_cfe_probe: flash type ST, nparts 0
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 2010.09.20.0
CPU type 0x19740: 480MHz
Tot mem: 65536 KBytes

CFE mem:    0x80700000 - 0x8079EA40 (649792)
Data:       0x80734000 - 0x80737FE0 (16352)
BSS:        0x80737FE0 - 0x80738A40 (2656)
Heap:       0x80738A40 - 0x8079CA40 (409600)
Stack:      0x8079CA40 - 0x8079EA40 (8192)
Text:       0x80700000 - 0x80734000 (212992)

board_final_init: commit=0, restore_defaults=0Boot version: v5.2
The boot is CFE

mac_init(): Find mac [58:6D:8F:**:**:**] in location 1
Nothing...
country_init(): Find country code in location 0
The country is same
Device eth0:  hwaddr 58-6D-8F-**-**-**, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
cfe_led_init: start to set power LED and switch LEDs.
Check CRC of image1
  Header CRC:    0x6D2467A3
  Calculate CRC: 0xB74CEB18
Boot program checksum is invalid
Please use tftp to upload an image for upgrade...
cfe_led_switch_fail: loading firmware fail in boot, then blink power led.
Reading :: Failed.: Timeout occured
Reading :: Failed.: Interrupted"
mama_mia
DD-WRT Novice


Joined: 15 Aug 2012
Posts: 44

PostPosted: Mon Apr 04, 2016 21:41    Post subject: Reply with quote
Update:
After some weeks trying to un-brick my E4200 I finally got it!! It's working now!!!

Looks like tftp by default flashes on ascii mode, it needs to be changed to binary!
After that it worked, the router started to boot to original linksys firmware.
ZeroLabs
DD-WRT Novice


Joined: 08 Apr 2017
Posts: 48
Location: Underground lair

PostPosted: Wed Dec 09, 2020 0:19    Post subject: Reply with quote
Well, I'm up to my eyeballs in trying to recover from a bad flash on a E4200 as well. I know this is an old thread but it still seems like the best place to chart my progress. Present state of the router is it boots repeatedly every 20 seconds or so. It is pingable at 192.168.1.1 for about 5 pings in between. I am able to TFTP and upload firmware but the problem persists. I have also tried to connect via serial adapter with two different USB to serial adapters. A Prolific 2303 and a FTDI. I've used GTKTerm and PuTTy. 115200, 8, N, 1, no flow control. Results are the same with both adapters. Hieroglyphics and unable to interrupt it.

This is not my first rodeo. I've done this before on a WRT54GS and I could swear I used a 2303 successfully. Be that as it may, it looks like I need a TTL converter for this router. So yeah, I could spend a whopping $3.30 to buy what is claimed to be a USB to TTL serial adapter on ebay and wait a few days for it to arrive, OR, I can cobble something together on perfboard from my spare parts drawers with this simple schematic. I'm going with the latter option. I'll probably build and test it tomorrow. Hope it works! Really not looking forward to that Jtag thing.



unnamed.jpg
 Description:
 Filesize:  24.17 KB
 Viewed:  411 Time(s)

unnamed.jpg



_________________
Routers: Netgear R8000, Linksys E1200v1, E4200, WRT54Gv3, TL-WDR4300v1.7
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 8065
Location: Texas, USA

PostPosted: Wed Dec 09, 2020 14:28    Post subject: Reply with quote
If you're using a recent version of PuTTY:

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=323931

Otherwise, it's a bad connection or wrong connection order of the wires. I've never had to JTAG an E4200.

_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is?
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
ZeroLabs
DD-WRT Novice


Joined: 08 Apr 2017
Posts: 48
Location: Underground lair

PostPosted: Wed Dec 09, 2020 21:55    Post subject: Reply with quote
kernel-panic69 wrote:
If you're using a recent version of PuTTY:

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=323931

Otherwise, it's a bad connection or wrong connection order of the wires. I've never had to JTAG an E4200.


Well, if I get any data to the terminal at all (which I do) then my TX/RX are correct. Swapping them just for giggles produces nothing. I looked at the thread you linked. Really good find. I'm a Xubuntu LTS evangelist still running 16.04.7. The only PuTTy version in the repos for me is 0.67 and trying to compile 0.74 is really breaking my balls! Still working on it but I still think I've got data corruption going on due to not having a TTL connection. Just say'n.

Update: So, again for giggles, I loaded PuTTy 0.74 onto my winblows 7 virtual machine and used the recommended setting described in the other thread. Still nothing but hieroglyphics. Too cold in the workshop to build the TTL converter today. Maybe this weekend.

_________________
Routers: Netgear R8000, Linksys E1200v1, E4200, WRT54Gv3, TL-WDR4300v1.7
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 8065
Location: Texas, USA

PostPosted: Thu Dec 10, 2020 2:41    Post subject: Reply with quote
Check your ground connection.
_________________
Official Forum Rules, Guidelines & Helpful InformationFirmware FAQInstallation WikiWhere Do I Download Firmware?
DON'T use Chromium-based browsersRTFM/STFW TL;DR is NOT an excuse. • Why Should I Care What Color the Bikeshed Is?
Please DO NOT PM me with questions; Ask in the forum. ---------------------- Linux User #377467 counter.li.org / linuxcounter.net
Goto page Previous  1, 2, 3, 4  Next Display posts from previous:    Page 2 of 4
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum