OpenWrt Forum Archive

Topic: error tpl on tplink wr 841 hw v3

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

I'm looking to debrick this router but on the last command it's spleeping....

id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7100_enet_initialize...
No valid address in Flash. Using fixed address
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Autobooting in 1 seconds, press "tp" to stop
ar7100> setenv ipaddr 192.168.1.2
ar7100> setenv serverip 192.168.1.1
ar7100> printenv
bootargs=console=ttyS0,115200 root=31:02 rootfstype=jffs2 init=/sbin/init mtdparts=ar7100-nor0:256k(u-boot),64k(u-boot-env),5120k(rootfs),1024k(uImage)
bootcmd=bootm 0xbf020000
bootdelay=1
baudrate=9600
ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee
stdin=serial
stdout=serial
stderr=serial
ethact=eth0
ipaddr=192.168.1.2
serverip=192.168.1.1

Environment size: 334/65532 bytes
ar7100> tftpboot 0x80000000 openwrt.bin
set link to 100M full by lqm.
dup 1 speed 100
Using eth0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.2
Filename 'openwrt.bin'.
Load address: 0x80000000
Loading: checksum bad
checksum bad
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ######################################################
done
Bytes transferred = 3932160 (3c0000 hex)
ar7100> erase 0x9f020000 +0x3c0000
Error: end address (0x9f3dffff) not in flash!
Bad address format
ar7100> erase 0xbf020000 +0x3c0000

First 0x2 last 0x3d sector size 0x10000                                       61
Erased 60 sectors
ar7100> cp.b 0x81000000 0x9f020000 0x3c0000

----------------------------------------------------------------------------
is blocked here..
what is wrong ???

(Last edited by shakle on 23 Dec 2012, 17:35)

you should at least copy to 0xbf020000, that's where your flash is located.

you are using wrong addresses.. you see that the first erase gone wrong?? then you did a second erase with the right address.. but you also have to do the cp.b with that address!

erase 0xbf020000 +0x3c0000
cp.b 0x81000000 0xbf020000 0x3c0000

https://forum.openwrt.org/viewtopic.php?id=33343

(Last edited by nebbia88 on 24 Dec 2012, 09:26)

Thanks!! It works!

The discussion might have continued from here.