1 (edited by derdigge 2013-01-01 08:47:12)

Topic: WZR-HP-AG300h Bricked, serial is up tftp fails

Hi Community!

I have badflashed a WZR-HP-AG300h I connected a serial Adapter, uboot is up.
I can ping 192.168.11.2 from uboot .. so conection = check.

On my ubuntu machine i set an arp :

/home/derdigge/tftpd# cat /proc/net/arp
IP address       HW type     Flags       HW address            Mask     Device
192.168.11.1     0x1         0x6         10:6f:3f:7f:xx:xx     *        eth1

But the tftp allway timeouts. I tried curl and tftp.
Any Ideas on This? Or how do i Recover it anotherway using serial console?

http://imageshack.us/photo/my-images/545/bildbi.jpg/

regards
derdigge

EDIT:

The mac Adress shown in uboot is 02:AA:BB:CC:DD:20
That makes me really wonder. I tried to arp this mac, with same result

2 (edited by hnyman 2013-01-01 10:17:29)

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

derdigge wrote:

The mac Adress shown in uboot is 02:AA:BB:CC:DD:20
That makes me really wonder.

Matches the wiki...
http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h#oem.installation.using.the.tftp.method

EDIT: you might try the newest official Buffalo firmware to see if the problem is in the Openwrt packaging.

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

Thaks for your reply. It indeed this MAC. I often flashed Buffalos with tftp.
All of them need unique Mac adress.

But it still Fails i can Load an Image throgh the Router that way:

ar7100> tftp
Using eth0 device
TFTP from server 192.168.11.2; our IP address is 192.168.11.1
Filename 'buf'.
Load address: 0x84000000
Loading: #################################################################
                    SNIP
         ################################################
done
Bytes transferred = 15221244 (e841fc hex)
ar7100>

But it isnt booting then. It stoods still at promt.
Can i boot it now somehow manually?
I am a little afraid so verry carefully. I am afraid to brick it
totally by input wron commands:

Aviable commands :

ar7100> help
autoscr - run script from memory
?       - alias for 'help'
TFTPS   - boot image via network as TFTP server
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
echo    - echo args to console
erase   - erase FLASH memory
exit    - exit script
flinfo  - print FLASH memory information
go      - start application at address 'addr'
help    - print online help
iminfo  - print header information for application image
imls    - list all images found in flash
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
phyreg - read/write phyreg
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
progmac - Set ethernet MAC addresses
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
set_mtest  - set mtest parameters. (for next bootup)
setenv  - set environment variables
sleep   - delay execution for some time
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version

derdigge

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

Still nothing.... No matter what Image i try ....

ar7100> tftp
Using eth0 device
TFTP from server 192.168.11.2; our IP address is 192.168.11.1
Filename 'buf'.
Load address: 0x84000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 3932196 (3c0024 hex)
ar7100> go 0x84000000
## Starting application at 0x84000000 ...
FREEZES HERE

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

With Windows tfpt i get : (Buffalo FW)

tftp -i 192.168.11.1 PUT wzr-hp-ag300h-pro-v24sp2-16519.enc
Fehler auf Server : Unsupport REGION

While in console shows:
enet0 port3 up
pll reg 0x18050010: 0x110000
tftp server(receive) go, waiting:4[sec]
Load address: 0x84000000
$ # LED(0x2) Blink[2] (Please press 'Ctrl+c' to stop)

With openwrt tftp an image to Router works but wont boot:

enet0 port3 up
pll reg 0x18050010: 0x110000
tftp server(receive) go, waiting:4[sec]
Load address: 0x84000000
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
         $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
tftp server done
Bytes transferred = 3932196 (3c0024 hex)
change bootargs
console=ttyS0,115200 root=31:03 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),1152k@384k(uImage),6592k@1536k(rootfs),64@320k(ART),64k@8128k(properties),8192k@8192k(flash1),16384k@16384k(flash2) mem=128M
## Booting image at bf060000 ...
Bad Magic Number
# LED(0x2) Blink[2] (Please press 'Ctrl+c' to stop)

Bad Header Checksum
# LED(0x2) Blink[2] (Please press 'Ctrl+c' to stop)

   Image Name:   WZR-HP-AG300H
   Created:      2007-11-08  15:50:08 UTC
   Image Type:   Invalid CPU Invalid OS Invalid Image (uncompressed)
   Data Size:    1207959552 Bytes = 1152 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... crc32_fw: bf060040 - 0706003f (len:48000000) calc...
crc32_fw: range1 bf060040 - bf04ffff, range2 bf060000 - 0707003f
Bad Data CRC


There must be a way to solve this! Please someone help me.
Otherwise my 90€ for that device are gone ....

6 (edited by hnyman 2013-01-02 17:08:22)

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

derdigge wrote:

With Windows tfpt i get : (Buffalo FW)

tftp -i 192.168.11.1 PUT wzr-hp-ag300h-pro-v24sp2-16519.enc
Fehler auf Server : Unsupport REGION
...
There must be a way to solve this! Please someone help me.
Otherwise my 90€ for that device are gone ....

That "Unsupport REGION" sounds like there country-based versions for the firmware and you are trying to flash country Y's firmware to a device requiring country X. (E.g. my Netgear wndr3700 has "North America" version and "rest of the world" version.) Try to find out if there is something like that for your device. You might need to download the firmware from Buffalo's site for the correct country. (Although I am not quite sure, from where you are getting that error...)

The advice regarding a device's specific firmware and uboot commands is so device-specific that it is really hard to give any advice without having experience from the same device. That is one reason why you aren't getting more advice.

You have access to the device, so most likely you will be able to solve the thing, but you might need to search the forum (and internet) more and try to find wzr-hp-ag300h specific u-boot advice.

EDIT:
E.g.
https://forum.openwrt.org/viewtopic.php?pid=139518#p139518
https://forum.openwrt.org/viewtopic.php?pid=145555#p145555
Those indicate that the basic advice is to power the router after starting TFTP transfer from the other end...

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

Ok Man you got me in right Direction!!
Its debricked now!

Download Image from here:

ftp://188.65.163.247/

This is how to do from Serialconsole:
Hold the STRG+C pressed while poweron the Router.

After prompt apears do:

setenv accept_open_rt_fmt 1
setenv region EU
saveenv
reset
(it reboots now)

After Reboot Power your Device down!
Set Your LAN IP to 192.168.11.2
In Windows cmd put that Line:

arp -s 192.168.11.1 02-AA-BB-CC-DD-20
tftp -i 192.168.11.1 PUT wzrhpag300h-pro-v24sp2-19154.enc  (dont hit enter)

Power on the Device and 10 Seconds after that hit enter in Windows CMD
(it tooks about ten Minutes to Complete the flash procedure)

done.

The Links you Posted were allready known but thanks!!
BTW How to but this to the WIKI??

8 (edited by hnyman 2013-01-03 08:17:12)

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

derdigge wrote:

The Links you Posted were allready known but thanks!!
BTW How to but this to the WIKI??

Just register to the wiki site and edit the article for that router by adding the relevant informtion. It is rather simple.
EDIT: I added the first version... http://wiki.openwrt.org/toh/buffalo/wzr-hp-ag300h#tftp.advice.wrong.region

9 (edited by derdigge 2013-01-03 11:51:03)

Re: WZR-HP-AG300h Bricked, serial is up tftp fails

I am Registered now for the next time smile

Thank you Sir