Hi All,
I have old WNR2000v1 which I used recently with Lede 17.01, due to virus lock down I had some time today and decided to upgrade it to 19.07.2 which as per wiki should be supported on my device. I compiled my own software on Debian laptop and tried to upload it to my router, but it failed.
Now running in RAM - U-Boot at: 81fc0000
id read 0x100000ff
flash size 4MB, sector count = 64
Flash: 4MB
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
Fetching MAC Address from 0x81fea700
: cfg1 0xf cfg2 0x7114
eth0: 00:20:10:8a:14:93
dup 1 speed 100
eth0 up
eth0
### main_loop entered: bootdelay=4
### main_loop: bootcmd="bootm 0xbf2b0000"
Hit any key to stop autoboot: 0
ar7100> setenv serverip 192.168.1.167
ar7100> setenv ipaddr 192.168.1.20
ar7100> erase 0xbf050000 +0x3A0000
Erase Flash from 0xbf050000 to 0xbf3effff in Bank # 1
First 0x5 last 0x3e sector size 0x10000 62
Erased 58 sectors
ar7100> tftpboot 0x81000000 sqfs.bin
Using eth0 device
TFTP from server 192.168.1.167; our IP address is 192.168.1.20
Filename 'sqfs.bin'.
Load address: 0x81000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################################
done
Bytes transferred = 3211268 (310004 hex)
ar7100> cp.b 0x81000000 0xbf050000 0x310004
Copy to Flash... write addr: bf050000
done
ar7100> tftpboot 0x81000000 uImage.bin
Using eth0 device
TFTP from server 192.168.1.167; our IP address is 192.168.1.20
Filename 'uImage.bin'.
Load address: 0x81000000
Loading: #################################################################
#################################################################
#################################################################
################################################################
done
Bytes transferred = 1325780 (143ad4 hex)
ar7100> cp.b 0x81000000 0xbf2b0000 0x143ad4
Copy to Flash... write addr: bf2b0000
done
ar7100> setenv bootargs "board=WNR2000 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,3712k(firmware),64k(art)ro rootfstype=squashfs,jffs2 noinitrd"
ar7100> setenv bootcmd "bootm 0xbf2b0000"
ar7100> saveenv
Saving Environment to Flash...
Protect off BF040000 ... BF04FFFF
Un-Protecting sectors 4..4 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erase Flash from 0xbf040000 to 0xbf04ffff in Bank # 1
First 0x4 last 0x4 sector size 0x10000 4
Erased 1 sectors
Writing to Flash... write addr: bf040000
done
Protecting sectors 4..4 in bank 1
Protected 1 sectors
ar7100> reset
Resetting...▒
U-Boot 1.1.4.15 (Jan 13 2011 - 13:00:15)
AP81 (ar7100) U-boot
sri
32 MB
Top of RAM usable for U-Boot at: 82000000
Reserving 244k for U-Boot at: 81fc0000
Reserving 192k for malloc() at: 81f90000
Reserving 44 Bytes for Board Info at: 81f8ffd4
Reserving 36 Bytes for Global Data at: 81f8ffb0
Reserving 128k for boot params() at: 81f6ffb0
Stack Pointer at: 81f6ff98
Now running in RAM - U-Boot at: 81fc0000
id read 0x100000ff
flash size 4MB, sector count = 64
Flash: 4MB
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
Fetching MAC Address from 0x81fea700
: cfg1 0xf cfg2 0x7114
eth0: 00:20:10:8a:14:93
dup 1 speed 100
eth0 up
eth0
### main_loop entered: bootdelay=4
### main_loop: bootcmd="bootm 0xbf2b0000"
Hit any key to stop autoboot: 0
Client starts...[Listening] for ADVERTISE...checksum bad
TTT
Retry count exceeded; boot the image as usual
nmrp server is stopped or failed !
## Booting image at bf2b0000 ...
Bad Magic Number
The Router is in TFTP Server Firmware Recovery mode NOW!
Listening on Port : 69, IP Address: 192.168.1.1...
checksum bad
checksum bad
Abort
Firmware recovering from TFTP server is stopped or failed! :(
can you point me what it is happening? When my own compiled SW failed I tried to download one from openwrt.org but this seems to be too big (u-boot complains about it as well as about checksum problems).