WHR-HP-AG108 Debricking Help

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


Joined: 20 Sep 2006
Posts: 17619
Location: Hesse/Germany

PostPosted: Tue Feb 26, 2008 22:37    Post subject: Reply with quote
http://www.dd-wrt.com/wiki/index.php/WHR-HP-AG108
_________________
Forum Guidelines...How to get help
&
Forum Rules
&
RTFM/STFW
&
Throw some buzzwords into the WIKI search Exclamation
_________________
I'm NOT rude, just offer pure facts!
_________________
Atheros (TP-Link & Clones, etc ) debrick service in EU
_________________
Guide on HowTo be Safe, Secure and Protect Your Online Anonymity!
Sponsor
nobody0472
DD-WRT Novice


Joined: 07 May 2007
Posts: 1
Location: KS/Hessen/Germany

PostPosted: Wed Feb 27, 2008 10:52    Post subject: Reply with quote
Hi all,
as I was the one, who has bricked the AG108, I have now, by the help of Tornado, fully recovered the AG108.

So, what was the issue:
1) I have installed RC6.2 via the web-interface. The issue is well known, so everybody knows, the kind of problems, I got with that.
2) Based on some readings, I found the file:
RedBoot_config_gdb.rom and have tried to upload that via tftp, when the Router starts to boot. AS REPORTED, THIS HAS BRICKED THE DEVICE.
3) Even no serial was available at that time anymore.
4) I have asked Tornado to help in recovering by using JTAG.

What we figured out:
1) There is a 14-pin JTAG header on the board. This 14-pin header has the following layout:

This header is fully MIPS EJTAG 2.6 compatible and described in the EJTAG 2.6 standard. The 14-pin header has the following arrangement of JTAG signals and pins:

nTRST 1 2 GND
TDI 3 4 GND
TDO 5 6 GND
TMS 7 8 GND
TCK 9 10 GND
nSRST 11 12 n/a
n/a 13 14 Vcc

The "pins" are not populated, so you have either to solder pins in there, or find another way to connect to it.

2) Personally I have built a DLC5 JTAG cable, as described on different pages.

3) You NEED to put pin-1 of the JTAG header to logic-high (by putting a resistor of about 100 Ohm between pin-1 and pin-14). This ENABLES the EJTAG bus on the Atheros processor.

4) BEFORE starting to reflash the device, put proper grounding. For me it worked out, to put a cable between the PC-chassis (of the PC running the tjtag sofware) and the ground of the router. Without this grounding the DLC5 was highly unstable and loosing data. I guess, that a wiggler connection would be more stable, but DLC5 was much more easy to build for me.

5) Reflashing can now be done by JTAG. There are different possibilities. But there are TWO things, that we need in the flash as a MINIMUM:
a) The redboot boot-loader
b) The board configuration data

If you DON'T erase the whole flash, maybe it's enough to reflash the redboot part (first 320K).

NOTE: If you go this way, you need a serial cable, to get in again.

If you flash after the redboot part also a redboot.config (Tornado is working on such a recovery-kit) you can get in via telnet much more easily, and you won't need a serial cable.

If you have erased the whole flash you need also to put in the board-configuration data, as every kernel is looking for that. This is located at the very end of the flash, even BEYOND the fis list of redboot. Also here Tornado is working on a very smart solution to put that into the flash by tjtag.

6) As soon as this is done, you can get into the router via telnet/serial again. Now you can go for the documented redboot-procedure to put the linux-kernel & rootfs on it, create the fis-table and reboot the device.

Hope that this helps. If there are missing details/issues, please let me know.
OPERATOR
DD-WRT User


Joined: 27 Jun 2006
Posts: 53

PostPosted: Tue Mar 04, 2008 7:05    Post subject: Reply with quote
i have the same problem:

Code:
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
    Warning: device contents not erased, some blocks may not be usable
RedBoot> load -r -v -b 0x80041000 root.fs
|
Raw file loaded 0x80041000-0x802e0fff, assumed entry at 0x80041000
RedBoot> fis create -b 0x80041000 -f 0xbe050000 -l 0x002a0000 -e 0x00000000 root.fs
RedBoot> load -r -v -b 0x80100000 lzma_vmlinus
-
Raw file loaded 0x80100000-0x801c05a7, assumed entry at 0x80100000
RedBoot> fis create -r 0x80100000 -e 0x80100000 -l 0x000c0000 -f 0xbe2f0000 linux
Can't program region at 0xbe3b0000: Driver timed out waiting for device
RedBoot> fis create -f 0xbe3b0000 -b 0x80041000 -l 0x00010000 -e 0x00000000 nvram


is it posible to make a part of the flash as bad?
pug306d
DD-WRT User


Joined: 09 Jan 2007
Posts: 117

PostPosted: Tue Mar 04, 2008 9:06    Post subject: Reply with quote
Operator your getting the driver timed out error because you are using the old flash locations and it does not have enough space to write the whole file, follow the guide on the wiki and it will work

http://www.dd-wrt.com/wiki/index.php/WHR-HP-AG108

or if you use RC5 it is smaller and will go into the old flash locations.
OPERATOR
DD-WRT User


Joined: 27 Jun 2006
Posts: 53

PostPosted: Tue Mar 04, 2008 9:26    Post subject: Reply with quote
oh - thanks - i will check this Wink
lanslink
DD-WRT Novice


Joined: 28 Jan 2007
Posts: 6

PostPosted: Wed Mar 12, 2008 9:23    Post subject: mannuall for reflashing with JTAG Reply with quote
I need step by step mannuall for reflashing with JTAG
thc
DD-WRT Novice


Joined: 12 Jun 2006
Posts: 6
Location: Berlin / Germany

PostPosted: Thu Mar 13, 2008 22:32    Post subject: Re: mannuall for reflashing with JTAG Reply with quote
Hello

lanslink wrote:
I need step by step manual for reflashing with JTAG


Take a look on the Post from Nobody0472.

But wait, Tornado is working on a Solution.

Greetz
heatvent
DD-WRT Novice


Joined: 01 Apr 2007
Posts: 7

PostPosted: Sat May 31, 2008 14:28    Post subject: Reply with quote
Has anybody tried this? Does it work?

imago wrote:
Tornado,
if you want to revert WHR-HP-AG108 to the original Buffalo firmware, below you will find some instructions which I've received from holgi. Unfortunately I haven't got time to verify them, so use them on your own risk.

>>> cut Firmware Backup full_flash_backup.rom

dd if=full_flash_backup.rom of=vmlinux.bin.gz bs=1 skip=327680 count=740248
dd if=full_flash_backup.rom of=rootfs bs=1 skip=1179648 count=2752512
dd if=full_flash_backup.rom of=user.property bs=1 skip=4063232 count=65536
dd if=full_flash_backup.rom of=Radio.Config bs=1 skip=4128768 count=65536

>>> and flash via redboot

fis init -f
load -r -v -b 0x80041000 rootfs
fis create -b 0x80041000 -f 0xBE120000 -l 0x002a0000 -e 0x00000000 rootfs

load -r -v -b 0x80002000 vmlinux.bin.gz

fis create -r 0x80002000 -e 0x80182398 -l 0x000B4B98 -f 0xBE050000 vmlinux.bin.gz

load -r -v -b 0x80041000 user.property
fis create -b 0x80041000 -f 0xBE3E0000 -l 0x00010000 -e 0x00000000 user.property
load -r -v -b 0x80041000 Radio.Config
fis create -b 0x80041000 -f 0xBE3F0000 -l 0x00010000 -e 0x00000000 Radio.Config

/imago
MoL0ToV
DD-WRT User


Joined: 15 Jun 2007
Posts: 75

PostPosted: Thu Jun 19, 2008 0:55    Post subject: Reply with quote
heatvent wrote:
Has anybody tried this? Does it work?

imago wrote:
Tornado,
if you want to revert WHR-HP-AG108 to the original Buffalo firmware, below you will find some instructions which I've received from holgi. Unfortunately I haven't got time to verify them, so use them on your own risk.

>>> cut Firmware Backup full_flash_backup.rom

dd if=full_flash_backup.rom of=vmlinux.bin.gz bs=1 skip=327680 count=740248
dd if=full_flash_backup.rom of=rootfs bs=1 skip=1179648 count=2752512
dd if=full_flash_backup.rom of=user.property bs=1 skip=4063232 count=65536
dd if=full_flash_backup.rom of=Radio.Config bs=1 skip=4128768 count=65536

>>> and flash via redboot

fis init -f
load -r -v -b 0x80041000 rootfs
fis create -b 0x80041000 -f 0xBE120000 -l 0x002a0000 -e 0x00000000 rootfs

load -r -v -b 0x80002000 vmlinux.bin.gz

fis create -r 0x80002000 -e 0x80182398 -l 0x000B4B98 -f 0xBE050000 vmlinux.bin.gz

load -r -v -b 0x80041000 user.property
fis create -b 0x80041000 -f 0xBE3E0000 -l 0x00010000 -e 0x00000000 user.property
load -r -v -b 0x80041000 Radio.Config
fis create -b 0x80041000 -f 0xBE3F0000 -l 0x00010000 -e 0x00000000 Radio.Config

/imago


I tryed to revert from your istructions, here the result (failed):

Code:

tftproot # telnet 192.168.11.1 9000
Trying 192.168.11.1...
Connected to 192.168.11.1.
Escape character is '^]'.
RedBoot> fis init -f
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
RedBoot> load -r -v -b 0x80041000 rootfs
|
Raw file loaded 0x80041000-0x802e0fff, assumed entry at 0x80041000
RedBoot> fis create -b 0x80041000 -f 0xBE120000 -l 0x002a0000 -e 0x00000000 rootfs
RedBoot> load -r -v -b 0x80002000 vmlinux.bin.gz
/
Raw file loaded 0x80002000-0x800b6b97, assumed entry at 0x80002000
RedBoot> fis create -r 0x80002000 -f 0xBE050000 -l 0x000B4B98 -e 0x80182398 vmlinux.bin.gz
RedBoot> load -r -v -b 0x80041000 user.property
|
Raw file loaded 0x80041000-0x80050fff, assumed entry at 0x80041000
RedBoot> fis create -b 0x80041000 -f 0xBE3E0000 -l 0x00010000 -e 0x00000000 user.property
RedBoot> load -r -v -b 0x80041000 Radio.Config
|
Raw file loaded 0x80041000-0x80050fff, assumed entry at 0x80041000
RedBoot> fis create -b 0x80041000 -f 0xBE3F0000 -l 0x00010000 -e 0x00000000 Radio.Config
Invalid FLASH address 0xbe3f0000: Invalid FLASH address
   valid range is 0xbe000000-0xbe3effff
RedBoot>


seems that comething is wrong on last command...

someone can help me?

i tryed to change the last line with one of these.. but don't work:

Code:

RedBoot> fis create -b 0x80041000 -f 0xbe3effff -l 0x00010000 -e 0x00000000 Radio.Config
Invalid FLASH address 0xbe3effff: Invalid FLASH address
   valid range is 0xbe000000-0xbe3effff
RedBoot> fis create -b 0x80041000 -f 0xbe3effff -l 0x0000FFFF -e 0x00000000 Radio.Config
Invalid FLASH address 0xbe3effff: Invalid FLASH address
   valid range is 0xbe000000-0xbe3effff
tinti
DD-WRT Novice


Joined: 13 Apr 2008
Posts: 1

PostPosted: Wed Jul 01, 2009 16:18    Post subject: Reply with quote
Up topic , I have a same question ,need help ,Thanks !
(sorry my English is not good...!)
bottle
DD-WRT Novice


Joined: 06 Aug 2009
Posts: 5

PostPosted: Thu Aug 06, 2009 22:17    Post subject: Reply with quote
Hi. i got a bricked Buffalo 108 recently but unfortuantly the RedBoot_config_gdb.rom is not online anymore. Can someone please post it maybe on one of the one-click-hosters for example. i can't find it anywhere.

Thanx a lot guys
pug306d
DD-WRT User


Joined: 09 Jan 2007
Posts: 117

PostPosted: Thu Aug 06, 2009 22:34    Post subject: Reply with quote
You can download it from here

http://oldwiki.openwrt.org/OpenWrtDocs%282f%29Hardware%282f%29Buffalo%282f%29WHR%282d%29HP%282d%29AG108.html
bottle
DD-WRT Novice


Joined: 06 Aug 2009
Posts: 5

PostPosted: Thu Aug 06, 2009 23:58    Post subject: Reply with quote
Great many thanks dude. I was on that side, but i somehow missed it. Anyway; Thank you, now i can go on and brick that thing for good Wink
bottle
DD-WRT Novice


Joined: 06 Aug 2009
Posts: 5

PostPosted: Fri Aug 07, 2009 8:18    Post subject: Reply with quote
@pug306d: Thanks guy.
@ all involed in the wiki entry: Thank you too. It just worked fine for me.

But know my last question: What dd- version can i put on that thing, because I was looking forward to implement an openvpn connection? Am i just stupid, because i haven't found a single entry for that topic and just one dd-wrt version.

thanks anyway
pug306d
DD-WRT User


Joined: 09 Jan 2007
Posts: 117

PostPosted: Fri Aug 07, 2009 11:13    Post subject: Reply with quote
Because it only has a 4mb flash you can't get any of the builds with openvpn installed, you will have to use the PPTP server/client thats standard on all the builds
Goto page Previous  1, 2, 3, 4 Display posts from previous:    Page 4 of 4
Post new topic   This topic is locked: you cannot edit posts or make replies.    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum