WZR-HP-G300NH-R Fail

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

Moderator: Moderators

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: WZR-HP-G300NH-R Fail

Post by hnl_dk »

mix wrote:I stand by my original comments then, the poster flashed the firmware to the wrong block device. Usually you get an error message when the block device doesn't exist. I have no idea how/why mtd thinks it found the device and started to write it, other than maybe erasing a non existent device actually creates one. The openwrt wiki that was linked to contains some info about doing a tftp recovery, and how you only have a 4 second window and need to act fast to do it. This is the best bet for recovery assuming the flash memory isn't completely hosed.
Yes, it will not do anything, if the destination does not exist, so if it did not exist, should nothing have happened.
But checking dd-wrt, it looks like it may be using linux as its partition: http://www.dd-wrt.com/wiki/index.php/Re ... _Bad_Flash
And as dd-wrt was the original firmware, should the partition of dd-wrt be used.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

mix
Posts: 292
Joined: Sun Feb 27, 2011 11:18 am

Re: WZR-HP-G300NH-R Fail

Post by mix »

You think dd-wrt renames the "firmware" block device to "linux" for atheros? That might be interesting.
WRT54GL v1.1
Gargoyle 1.4.7

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: WZR-HP-G300NH-R Fail

Post by hnl_dk »

mix wrote:You think dd-wrt renames the "firmware" block device to "linux" for atheros? That might be interesting.
I have no idea, I do not know dd-wrt.
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

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

Re: WZR-HP-G300NH-R Fail

Post by DoesItMatter »

mtd0: 00020000 00010000 "u-boot"
mtd1: 00140000 00010000 "kernel"
mtd2: 00690000 00010000 "rootfs"
mtd3: 001d0000 00010000 "rootfs_data"
mtd4: 00010000 00010000 "art"

Are going to be your most important parts...

U-Boot - you mess with that - your router IS NOT booting
Messing with this will result in a true brick and only recovery is
to un-solder the chip and flash it in a flashing device.

ART - DO NOT mess with this data area either.
I think its Atheros Radio Test - something like that
It stores the radio info for your router in this area
Mess with it and wireless goes bye-bye for good - dump the router
or use it as a LAN switch only from now on.

I think its part of DD-WRT where it converts things to the "linux"
name/area - buffalo might use "firmware" for their defaults.

I don't believe it matters what its called as long as the device
knows whether to read from linux or firmware

-------------------

But anyway - your router is recoverable via Serial recovery.

http://scarygliders.net/2010/02/23/hack ... -hp-g300n/

Read scarygliders - the WHOLE thing - very good info on the page
Ignore the parts about the Japanese version, the rest of the info
applies to all WZR-HP-G300NH's
: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

mix
Posts: 292
Joined: Sun Feb 27, 2011 11:18 am

Re: WZR-HP-G300NH-R Fail

Post by mix »

Yuck, dd-wrt and openwrt do have different mtd partitions. What a mess. http://www.dd-wrt.com/phpBB2/viewtopic.php?p=482188

Looks like DoesItMatter has seen this before...
WRT54GL v1.1
Gargoyle 1.4.7

Statik
Posts: 118
Joined: Mon Sep 28, 2009 9:38 am

Re: WZR-HP-G300NH-R Fail

Post by Statik »

I'm not having much luck with TFTP either. I just tried to TFTP the original DD-WRT Pro image from Buffalo onto the router. No Go. Just times out.
Looking at DMESG I see the connection go up and down a couple of times.

I could really use some pointers here, detailed instructions would be better. I'd rather not have a bricked router. :)

Thanks!
Statik

mix
Posts: 292
Joined: Sun Feb 27, 2011 11:18 am

Re: WZR-HP-G300NH-R Fail

Post by mix »

dmesg... So wait a second, you have a working linux install. You can ssh or telnet in?
WRT54GL v1.1
Gargoyle 1.4.7

Statik
Posts: 118
Joined: Mon Sep 28, 2009 9:38 am

Re: WZR-HP-G300NH-R Fail

Post by Statik »

Linux on PC, not on router. Router, when booting, goes to solid (not blinking) red DIAG led almost immediately. On my PC, when I boot the router, I get connected/disconnected messages about 3 times.

Code: Select all

[78678.950322] tg3 0000:08:00.0: eth0: Link is down
[78826.814396] tg3 0000:08:00.0: eth0: Link is up at 100 Mbps, full duplex
[78826.814405] tg3 0000:08:00.0: eth0: Flow control is on for TX and on for RX
[78836.872040] eth0: no IPv6 routers present
[78860.592044] eth0: no IPv6 routers present
[78883.936052] eth0: no IPv6 routers present
[78906.512034] eth0: no IPv6 routers present
[79254.194135] tg3 0000:08:00.0: eth0: Link is down
[79418.011130] tg3 0000:08:00.0: eth0: Link is up at 100 Mbps, full duplex
[79418.011139] tg3 0000:08:00.0: eth0: Flow control is on for TX and on for RX
[79428.880033] eth0: no IPv6 routers present
[79451.344053] eth0: no IPv6 routers present
[79474.408090] eth0: no IPv6 routers present
Gotta be a way to unbrick this .. .

hnl_dk
Moderator
Posts: 408
Joined: Mon Aug 29, 2011 12:37 pm

Re: WZR-HP-G300NH-R Fail

Post by hnl_dk »

Statik wrote:...
Gotta be a way to unbrick this .. .
try to have a look: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=87579
Router: TL-WR1043ND - Gargoyle 1.5.4
AP: TL-WR1043ND - Gargoyle 1.5.4

ispyisail
Moderator
Posts: 5185
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: WZR-HP-G300NH-R Fail

Post by ispyisail »

NOTE: More recent versions of the WZR-HP-G300NH have had a hardware change without bumping the revision number or changing the hardware label.
The newer hardware appears to have the rtl8366rb Ethernet switch while older hardware had the rtl8366s switch. As a result, this newer hardware is NOT supported in OpenWrt 'Backfire' 10.03.1-RC5 but it is supported in OpenWrt trunk since at least r28133

Post Reply