Hi,
I want to restore the factory firmware but I have a problem with the file / partition size.
After install OpenWRT i see on console:
...
flash size 16MB, sector count = 256
Flash: **16 MB**
...
root@OpenWrt:~# **df -h**
Filesystem Size Used Available Use% Mounted on
/dev/root **2.8M** 2.8M 0 100% /rom
tmpfs 60.8M 308.0K 60.5M 0% /tmp
/dev/mtdblock9 **10.7M** 432.0K 10.3M 4% /overlay
overlayfs:/overlay 10.7M 432.0K 10.3M 4% /
tmpfs 512.0K 0 512.0K 0% /dev
root@OpenWrt:~# **cat /proc/mtd**
dev: size erasesize name
mtd0: 00020000 00010000 "factory-uboot"
mtd1: 00020000 00010000 "u-boot"
mtd2: 00010000 00010000 "partition-table"
mtd3: 00010000 00010000 "art"
mtd4: 00020000 00010000 "info"
mtd5: 00040000 00010000 "user-config"
mtd6: 00f00000 00010000 "firmware"
mtd7: 00190000 00010000 "kernel"
mtd8: 00d70000 00010000 "rootfs"
mtd9: 00ab0000 00010000 "rootfs_data"
mtd10: 00010000 00010000 "default-config"
If i try to restore openwrt*.bin via tftp method, all works well, but when I try with stock firmware or dd-wrt, I see problem with download file.
Filename 'ArcherC7v5_tp_recovery.bin'.
Load address: 0x80060000
Loading: #################################################################
...
#############################################Tftp server tranfer fail!
tftpboot firmware failed, now start normally.
[NM_Error](nm_api_checkInteger) 00384: extra-para:01 01
Maybe this is file size problem?
openwrt-19.07.0-ath79-generic-tplink_archer-c7-v5-squashfs-factory.bin 4488316 ( 4MB )
openwrt-18.06.1-ar71xx-generic-archer-c7-v5-squashfs-factory.bin 3997406 ( 4MB )
factory-to-ddwrt.bin 14150584 ( 14MB )
Archer C7(EU)_V5_190726.bin 15567490 ( 14MB )
Where restore procedure saving file? Maybe there is no place for that?
When I split stock firmware to 4MB, download finish OK ( I just check tftp downloading, I didn't count on booting the system )
Filename 'ArcherC7v5_tp_recovery.bin'.
Load address: 0x80060000
Loading: #################################################################
...
########################################
**done**
Bytes transferred = 4194304 (400000 hex)
Firmware downloaded... filesize = 0x400000 fileaddr = 0x80060000.
[NM_Error](nm_tpFirmwareCheck) 01402: The file's length is bad(buf:4194304 fileLen15567490)
recovery failed.
So 4MB file was downloaded correctly.
My questions are:
- how to increase space for downloaded stock image?
- where tftp saving downloaded file?
I havn't running TX line to console, RX only, I can run only via ssh.
regards
Sysgone