OpenWrt Forum Archive

Topic: v8 WRT54G debrick

The content of this topic has been archived on 4 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Well I've been searching for a couple of months now and can't de-brick my v8 WRT54G.  I have the Xilinix JTAG cable and linux as my OS.  I have tried all of the pre fixes of 30 second reset and the boot wait but none have worked.  So I decided to move onto the JTAG.  I have the hairydairymaid software and tried many times to compile.

My first question is can I de-brick my v8. I saw one of the forums that said that v5 isn't supported which would probably mean that the v8 isn't supported.  Also if it would work with some of the peramiters.

Second question is if v8 is supported then how do I compile the program.  I use linux Mint a derivatve of Ubuntu and when I try to run configure it says it cant find the command.  I read that configure creats a makefile and one is already included.  So I moved onto running make and it created two new files.  then when i run make install it says that

make: *** No rule to make target `install'.  Stop.

And now I am stuck

third question is if not supported is there any other suggestions to de-bricking my router?

Thanks in advance

I am actively supporting

http://wiki.openwrt.org/yoonix

There is a version of hairydairymary code there as well.
You should just be able to type make.

It's heavily modified hairydairymary code.

Anyway let me know.

That seems like what I need but I run make and it creates new files then when I type in 'tjtagspi' and hit return it says "command not found" but I can see the file tjtagspi and it looks like an executable file.

This seems to be the same problem that I was running into before.  I think its a problem with my syntax or programming or whatever I am typing in.

(Last edited by bdjohnso10 on 22 Jul 2008, 01:16)

I think I may have bricked for good now it take forever to flash or erase and nothing seems to happen.  Here is the output.

sudo ./tjtagspi -flash:nvram

==========================================
EJTAG Debrick Utility v2.1.4-Tornado-MOD
==========================================

Probing bus ... Done

Instruction Length set to 8

CPU Chip ID: 00100101001101010100000101111111 (2535417F)
*** Found a Broadcom BCM5354 KFBG Rev 2 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000010000100100000100 (00810904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS16 MIPS32

Issuing Processor / Peripheral Reset ...  ECR: 0x00228100 Done

Do I need the nvram.bim in the same folder and where can I get it?

sudo ./tjtagspi -flash:custom /window:bfc00000 /start:bfc00000 /length:28718 /noreset
[sudo] password for:

==========================================
EJTAG Debrick Utility v2.1.4-Tornado-MOD
==========================================

Probing bus ... Done

Instruction Length set to 8

CPU Chip ID: 00100101001101010100000101111111 (2535417F)
*** Found a Broadcom BCM5354 KFBG Rev 2 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000010000100100000100 (00810904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS16 MIPS32

Issuing Processor / Peripheral Reset ... Skipped
Enabling Memory Writes ... Done
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done
Probing Flash at (Flash Window: 0xbfc00000) ... DMA Read Addr = bfc00000  Data = (00000000)ERROR ON READ
DMA Read Addr = bfc00002  Data = (00000000)ERROR ON READ
DMA Read Addr = bfc00000  Data = (00000000)ERROR ON READ
DMA Read Addr = bfc00002  Data = (00000000)ERROR ON READ
DMA Read Addr = bfc00000  Data = (00000000)ERROR ON READ
DMA Read Addr = bfc00002  Data = (00000000)ERROR ON READ

Ive gotten this far with a .bin that is supposed to debrick it completely but I run into this problem when it gets erros on read.  Maybe its the wrong addres start?

(Last edited by bdjohnso10 on 23 Jul 2008, 02:37)

Well i've found a forum and supposidly all I have to do is flash this new cfe onto it and everything should be hunky-dorey

but it seems to get stuck after clearing watchdog

sudo ./tjtagspi -flash:cfe /nobreak /noemw /noreset

==========================================
EJTAG Debrick Utility v2.1.4-Tornado-MOD
==========================================

Probing bus ... Done

Instruction Length set to 8

CPU Chip ID: 00100101001101010100000101111111 (2535417F)
*** Found a Broadcom BCM5354 KFBG Rev 2 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000010000100100000100 (00810904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS16 MIPS32

Issuing Processor / Peripheral Reset ... Skipped
Enabling Memory Writes ... Skipped
Halting Processor ... Skipped
Clearing Watchdog ... Done

(Last edited by bdjohnso10 on 23 Jul 2008, 20:36)

ya seems like you have the older version. it's hanging on flash detection. sorry about the hassle but you have to uncomment the line 1618 and 1619 on my code which is printing devid and productid.

then recompile to get your product and devid after that you have to create a new entry for your own flash chip.

once you have the product and devid you make a new entry to the supported chip list. then you should be able to program it.


good luck.

the readme should help a bit.

(Last edited by yoonix on 30 Jul 2008, 21:42)

The discussion might have continued from here.