JTag debricking guide for WRT54G

Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11563
Location: Wherever the wind blows- North America

PostPosted: Sat Feb 07, 2009 20:42    Post subject: Reply with quote
moreins wrote:
issued issued tjtag -erase:wholeflash /noreset twice

then tjtagv2 -flash:cfe /noreset /bypass

it was flying until it got to 37%...now...its as slow as the first time i did it...
ill leave it there...i need to go a run some errands..ill let you know what happens...
thanks!


OK...but what has probably happened is that the communication link between tjtag and the flash chip is broken now. At that 37% mark...data is probably being corrupted now. (just from my 26 hours of experience)

keep trying...it is possible on these V8 boxes...but it is very time consuming....just don't give up.

redhawk

_________________
The only stupid question....is the unasked one.
Sponsor
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Sat Feb 07, 2009 21:37    Post subject: Reply with quote
hey
it stayed for 1 or 2 minutes at 37% and then it continued very fast

Code:
[ 99% Flashed]   1fc3ffd0: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ffe0: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3fff0: ffffffff ffffffff ffffffff ffffffff
Done  (CFE.BIN loaded into Flash Memory OK)

=========================
Flashing Routine Complete
=========================
elapsed time: 363 seconds


i will now tftp the micro build:

EDIT
Sad Sad Sad
i couldnt even get an ethernet link to the router...
still the 1,2,3,4, Internet LEDS are steady ON and it looks like the utp cable is disconnected but its not...
any ideas?

_________________
WRT54GS v2.1 > v24-sp2 (01/01/09) mega
WRT54GS v5 > v24-sp2 (01/01/09) micro
PPTP, WDS link and SD Mod
Shawn360
DD-WRT Guru


Joined: 26 Jul 2008
Posts: 1237

PostPosted: Sat Feb 07, 2009 22:46    Post subject: Reply with quote
Do a wholeflash erase 3 times.
Then flash a good working cfe use this one.
https://secure.dd-wrt.com/phpBB2/viewtopic.php?p=241874#241874
Before you do this get your jtag cable as short as possible under 6 inches long. You might want to try this on a different computer if you can.
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Sun Feb 08, 2009 2:14    Post subject: Reply with quote
hey
thanks for all the support given
i just flashed the CFE that you gave me on the link above. here is the final command output after running tjtagv2 -flash:cfe /noemw /bypass. i did also erased wholeflash 3 times.

Code:
[ 99% Flashed]   1fc3ff70: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ff80: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ff90: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ffa0: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ffb0: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ffc0: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ffd0: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3ffe0: ffffffff ffffffff ffffffff ffffffff
[ 99% Flashed]   1fc3fff0: ffffffff ffffffff ffffffff ffffffff
Done  (CFE.BIN loaded into Flash Memory OK)

=========================
Flashing Routine Complete
=========================
elapsed time: 178 seconds


 *** REQUESTED OPERATION IS COMPLETE ***


since im able to get to this point, i believe the jtag cable is OK...

after this got done, i waited for a minute and then turned the router off.i plugged the jtag cable off and when i turned the router back on, i still get LEDS 1-2-3-4-INTERNET steady ON. And, when i connect the UTP cable between my pc and the router, theres no link activity on the ethernet interface (windows says the network cable is disconnected and of course its not)
any thought that maybe could help me with this? Crying or Very sad

btw, im having exactly the same issue than this guy here: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=44680

thanks!

_________________
WRT54GS v2.1 > v24-sp2 (01/01/09) mega
WRT54GS v5 > v24-sp2 (01/01/09) micro
PPTP, WDS link and SD Mod


Last edited by moreins on Sun Feb 08, 2009 2:23; edited 2 times in total
jmh9072
DD-WRT Guru


Joined: 04 Sep 2007
Posts: 800
Location: Ohio

PostPosted: Sun Feb 08, 2009 2:21    Post subject: Reply with quote
It sounds like the CFE is being corrupted as it is written, as redhawk suggested. Maybe you could try a compressed CFE (I'm sure redhawk has one), and improve your odds of success since you only have to flash half the amount of data.
_________________
WRT54G v3 - v24 r14471M NEWD Eko - AP
WRT350N v1.0
WRT600N v1.1 - halfway there!
Se7en is Darker...
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Sun Feb 08, 2009 2:31    Post subject: Reply with quote
flashing isnt taking that much time...it runs very smoothly and you can see it only takes around 178 seconds...
where can i get the compressed cfe youre talking about? tried to look at downloads section but couldnt find anything than the cfe

more info. i just downloaded a program that compare hex files and the cfe that i just flashed is completly different than the one i backed up after flashing. they should be the same. you guys are right: the cfe on the router gets corrupted while flashing Crying or Very sad

_________________
WRT54GS v2.1 > v24-sp2 (01/01/09) mega
WRT54GS v5 > v24-sp2 (01/01/09) micro
PPTP, WDS link and SD Mod


Last edited by moreins on Sun Feb 08, 2009 2:41; edited 1 time in total
jmh9072
DD-WRT Guru


Joined: 04 Sep 2007
Posts: 800
Location: Ohio

PostPosted: Sun Feb 08, 2009 2:37    Post subject: Reply with quote
moreins wrote:
flashing isnt taking that much time...it runs very smoothly and you can see it only takes around 178 seconds...
where can i get the compressed cfe youre talking about? tried to look at downloads section but couldnt find anything than the cfe

PM redhawk. I'm sure he has one.

_________________
WRT54G v3 - v24 r14471M NEWD Eko - AP
WRT350N v1.0
WRT600N v1.1 - halfway there!
Se7en is Darker...
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Sun Feb 08, 2009 20:48    Post subject: Reply with quote
hello again
while i wait for redhawk response, i wanna show you something weird...
i tried to flash the tornado's cfe using this command

Code:
tjtagv2 -flash:cfe /nocwd /noreset


note that i didnt use the /bypass command at all. flash process goes ok but incredibly damn slow. i barely got to 8% after 5 hours...also (this happens all the time with tjtagv2) my cpu works at full capacity which makes it very noisy...

i gave up around 8%...so i stopped the process and made a backup of that 8% flashed...i compared it to the original tornado's cfe and both were identical on that part!!!

i decided to give it a try again and used

Code:
tjtagv2 -flash:cfe /nocwd /noreset /bypass


process went really fast and finished with this
Code:
Done  (CFE.BIN loaded into Flash Memory OK))=ffffffff


did the same thing...backup and compare...and the backup'd cfe was full of 'F'......

im just thoughtless.... Crying or Very sad

_________________
WRT54GS v2.1 > v24-sp2 (01/01/09) mega
WRT54GS v5 > v24-sp2 (01/01/09) micro
PPTP, WDS link and SD Mod
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11563
Location: Wherever the wind blows- North America

PostPosted: Sun Feb 08, 2009 22:16    Post subject: Reply with quote
OK...moreins...I sent the 128K cfe.

Sorry it was late...I am teaching my 16 year old daughter to drive.

She's doing good...but her dad is a wreck. Laughing

redhawk

_________________
The only stupid question....is the unasked one.
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Sun Feb 08, 2009 23:36    Post subject: Reply with quote
thans for the cfe. i will give it a try tonight!
good shes learning how to drive so she can drive you whenever you need to! lol

back to business...have you tried flasing the cfe without the /bypass parameter? what do you get as a result when backing up the stored cfe?


i also rechecked the jtag cable and only connected GND from paralell to jtag pin 6. i also set my paralell as ECP.
its been almost 2 hours and the 256 cfe is barely at 15% flash without /bypass (this is the only way data dont get corrupted when im flashing it but its soooo damn slow). with the /bypass ON flash will take only a few minutes but all data stored in flash will be FFFFFFFFFFFFFFFFFFF....
i will probably give up with this 256 cfe...so i will test your 128 tonight and let you know anything.

v8 sucks Mad ! lol
thanks again

_________________
WRT54GS v2.1 > v24-sp2 (01/01/09) mega
WRT54GS v5 > v24-sp2 (01/01/09) micro
PPTP, WDS link and SD Mod
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Mon Feb 09, 2009 3:37    Post subject: Reply with quote
Code:
Done  (CFE.BIN loaded into Flash Memory OK)

=========================
Flashing Routine Complete
=========================
elapsed time: 18695 seconds


 *** REQUESTED OPERATION IS COMPLETE ***


just flashed the 256kb cfe (without the /bypass)...didnt work at all...now i got 0000000000000 in the stored cfe...
this is sooo frustrating...Crying or Very sad
will try with the 128kb cfe and see what happens....

_________________
WRT54GS v2.1 > v24-sp2 (01/01/09) mega
WRT54GS v5 > v24-sp2 (01/01/09) micro
PPTP, WDS link and SD Mod
Shawn360
DD-WRT Guru


Joined: 26 Jul 2008
Posts: 1237

PostPosted: Mon Feb 09, 2009 3:49    Post subject: Reply with quote
moreins wrote:
Code:
Done  (CFE.BIN loaded into Flash Memory OK)

=========================
Flashing Routine Complete
=========================
elapsed time: 18695 seconds


 *** REQUESTED OPERATION IS COMPLETE ***


just flashed the 256kb cfe (without the /bypass)...didnt work at all...now i got 0000000000000 in the stored cfe...
this is sooo frustrating...Crying or Very sad
will try with the 128kb cfe and see what happens....
At this point it's either the jtag cable or your computer. Check those soldering points again on the router itself and the jtag cable.
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Mon Feb 09, 2009 4:17    Post subject: Reply with quote
thanks for the reply...i will test this in a different computer and will recheck the soldering points..
i also tried the 128k cfe and after flashing with /bypass mode and read the stored cfe i only get FFFFFFFFFFFFFFFF......same happened when flashing the 256kb cfe with and without bypass....

im using the unbuffered jtag cable and i have some doubts about the pinouts..
tha openwrt wiki says to ground all even jtag pinouts...i believe redhawk only uses pin 6 as ground...
i dunno if that could cause the flash not to work...

i think i just got to a dead end... Crying or Very sad
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11563
Location: Wherever the wind blows- North America

PostPosted: Mon Feb 09, 2009 12:13    Post subject: Reply with quote
moreins wrote:
thanks for the reply...i will test this in a different computer and will recheck the soldering points..
i also tried the 128k cfe and after flashing with /bypass mode and read the stored cfe i only get FFFFFFFFFFFFFFFF......same happened when flashing the 256kb cfe with and without bypass....

im using the unbuffered jtag cable and i have some doubts about the pinouts..
tha openwrt wiki says to ground all even jtag pinouts...i believe redhawk only uses pin 6 as ground...
i dunno if that could cause the flash not to work...

i think i just got to a dead end... Crying or Very sad


I use only pin 6.... but all even (except 12) are shorted together on my cable...and....

If you ohm out the JTAG port on the unit..you will find that 2,4,6,8,10 are all shorted together also...so pulling a ground from any one of those pins will work.

keep at it....its the V8 unit that is causing this...not your cable or computer.

These V8's are horrible devices for JTAGing. I have 26 hours into mine now (didn't get back to it yesterday)...but I'll be working on it again this week.

The V8s are the only ones that cause such grief (at least for me)....I may try changing resistors for the JTAG this week too. (on the mobo)...just to see what will happen.

redhawk

_________________
The only stupid question....is the unasked one.
moreins
DD-WRT User


Joined: 18 Nov 2006
Posts: 320
Location: Cali, Colombia

PostPosted: Mon Feb 09, 2009 12:45    Post subject: Reply with quote
thanks for the reply. i will really appreciate if you give me a heads up when you find anything relevant with this.
i was wondering if theres any chance to flash specific memory groups of the cfe...i thought about this since flashing only 5% or 10% of the cfe will correctly store data on flash...

_________________
WRT54GS v2.1 > v24-sp2 (01/01/09) mega
WRT54GS v5 > v24-sp2 (01/01/09) micro
PPTP, WDS link and SD Mod
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT 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