Hi there. As a quick story: i did a custom firmware of a OpenWrt and flash to tp-link 1043N v5 router, then i tryed to factory revert with tftpd but no luck. It`s stuck at 90% uploading or so...
I did a reflash with tftpd with a trunk version from original OpenWrt and then same, same problem with reverting...
Has something to do a custom firmware with affecting boot partition or so? Because someone else has successfuly reflashed image: [SOLVED] TP-Link TL-WR1043N v5.0?
This is the log from a Jtag when i trying to flash with original stock fw:
U-Boot 1.1.4-g6ce9309a-dirty (Oct 26 2016 - 09:20:53)
ap152 - Dragonfly 1.0
DRAM: 64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 393k for U-Boot at: 83f9c000
Reserving 16448k for malloc() at: 82f8c000
Reserving 44 Bytes for Board Info at: 82f8bfd4
Reserving 36 Bytes for Global Data at: 82f8bfb0
Reserving 128k for boot params() at: 82f6bfb0
Stack Pointer at: 82f6bf98
Now running in RAM - U-Boot at: 83f9c000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x20402100
factory boot check integer ok.
factory boot load fs uboot len 131072 to addr 0x80010000.
Hit any key to stop autoboot: 0
## Starting application at 0x80010000 ...
U-Boot 1.1.4-g6ce9309a-dirty (Oct 26 2016 - 09:24:21)
ap152 - Dragonfly 1.0
DRAM: 64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 122k for U-Boot at: 83fe0000
Reserving 16448k for malloc() at: 82fd0000
Reserving 44 Bytes for Board Info at: 82fcffd4
Reserving 36 Bytes for Global Data at: 82fcffb0
Reserving 128k for boot params() at: 82faffb0
Stack Pointer at: 82faff98
Now running in RAM - U-Boot at: 83fe0000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x20402100
Hit any key to stop autoboot: 0
## Booting image at 9f040000 ...
Image Name: MIPS OpenWrt Linux-4.9.87
Created: 2018-03-31 7:18:31 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1393869 Bytes = 1.3 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x9f040040 ...OK
Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864
Starting kernel ...
[ 0.000000] Linux version 4.9.87 (lede@LEDE) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r6566-a64fae8354) ) #0 Sat Mar 31 07:18:31 2018
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[ 0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=TL-WR1043N-v5 mtdparts=spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,15104k(firmware),128k(product-info)ro,640k(config)ro,64k(partition-table)ro,128k(logs)ro,64k(art)ro console=ttyS0,115200 rootfstype=squashfs noinitrd
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 59896K/65536K available (3170K kernel code, 165K rwdata, 796K rodata, 276K init, 213K bss, 5640K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[ 0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[ 0.008217] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.071034] pid_max: default: 32768 minimum: 301
[ 0.075984] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.082957] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.092533] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.102936] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.109849] NET: Registered protocol family 16
[ 0.115832] MIPS: machine is TP-LINK TL-WR1043N v5
[ 0.365899] clocksource: Switched to clocksource MIPS
[ 0.372117] NET: Registered protocol family 2
[ 0.377447] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.384798] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.391538] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.398318] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.404484] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.411331] NET: Registered protocol family 1
[ 0.419462] Crashlog allocated RAM at address 0x3f00000
[ 0.425764] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.438188] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.444331] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.461807] io scheduler noop registered
[ 0.465977] io scheduler deadline registered (default)
[ 0.471625] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.478677] console [ttyS0] disabled
▒ 0.502509] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 0.511607] console [ttyS0] enabled
[ 0.511607] console [ttyS0] enabled
[ 0.519155] bootconsole [early0] disabled
[ 0.519155] bootconsole [early0] disabled
[ 0.530552] m25p80 spi0.0: found w25q128, expected m25p80
[ 0.545444] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.550368] 8 cmdlinepart partitions found on MTD device spi0.0
[ 0.556492] Creating 8 MTD partitions on "spi0.0":
[ 0.561447] 0x000000000000-0x000000020000 : "factory-uboot"
[ 0.568450] 0x000000020000-0x000000040000 : "u-boot"
[ 0.574882] 0x000000040000-0x000000f00000 : "firmware"
[ 0.605738] 2 uimage-fw partitions found on MTD device firmware
[ 0.611889] 0x000000040000-0x0000001c0000 : "kernel"
[ 0.618117] 0x0000001c0000-0x000000f00000 : "rootfs"
[ 0.624534] mtd: device 4 (rootfs) set to be root filesystem
[ 0.630463] 1 squashfs-split partitions found on MTD device rootfs
[ 0.636859] 0x000000660000-0x000000f00000 : "rootfs_data"
[ 0.643778] 0x000000f00000-0x000000f20000 : "product-info"
[ 0.650790] 0x000000f20000-0x000000fc0000 : "config"
[ 0.657286] 0x000000fc0000-0x000000fd0000 : "partition-table"
[ 0.664555] 0x000000fd0000-0x000000ff0000 : "logs"
[ 0.670895] 0x000000ff0000-0x000001000000 : "art"
[ 0.677954] libphy: Fixed MDIO Bus: probed
[ 0.692415] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[ 1.383227] libphy: ag71xx_mdio: probed
[ 2.017357] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[ 2.028915] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[ 2.037008] NET: Registered protocol family 10
[ 2.044764] NET: Registered protocol family 17
[ 2.049527] 8021q: 802.1Q VLAN Support v1.8
[ 2.058978] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 2.067806] Freeing unused kernel memory: 276K
[ 2.072390] This architecture does not have kernel memory protection.
[ 2.555910] random: fast init done
[ 2.779346] init: Console is alive
[ 2.783035] init: - watchdog -
[ 3.830807] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.033868] usbcore: registered new interface driver usbfs
[ 4.039665] usbcore: registered new interface driver hub
[ 4.045230] usbcore: registered new device driver usb
[ 4.055182] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.063419] ehci-platform: EHCI generic platform driver
[ 4.071242] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.078852] ohci-platform: OHCI generic platform driver
[ 4.084917] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.102798] init: - preinit -
[ 4.827683] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 5.857304] eth0: link up (1000Mbps/Full duplex)
[ 5.862197] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.137940] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[ 8.186119] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 8.339863] eth0: link down
[ 8.352244] procd: - early -
[ 8.355295] procd: - watchdog -
[ 8.981124] procd: - watchdog -
[ 8.984589] procd: - ubus -
[ 9.074919] procd: - init -
Please press Enter to activate this console.
[ 9.519347] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.535690] tun: Universal TUN/TAP device driver, 1.6
[ 9.540953] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 9.552947] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 9.644115] gre: GRE over IPv4 demultiplexor driver
[ 9.651130] ip_gre: GRE over IPv4 tunneling driver
[ 9.662266] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 9.678878] cryptodev: driver 1.9 loaded.
[ 9.698929] u32 classifier
[ 9.701732] input device check on
[ 9.705511] Actions configured
[ 9.717963] Mirror/redirect action on
[ 9.732648] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 9.761578] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[ 9.769889] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[ 9.945122] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 10.173692] xt_time: kernel timezone is -0000
[ 10.381010] PPP generic driver version 2.4.2
[ 10.395178] PPP MPPE Compression module registered
[ 10.406182] NET: Registered protocol family 24
[ 10.417237] PPTP driver version 0.8.5
[ 10.529642] ieee80211 phy0: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[ 10.575046] kmodloader: done loading kernel modules from /etc/modules.d/*
U-Boot 1.1.4-g6ce9309a-dirty (Oct 26 2016 - 09:20:53)
ap152 - Dragonfly 1.0
DRAM: 64 MB
Top of RAM usable for U-Boot at: 84000000
Reserving 393k for U-Boot at: 83f9c000
Reserving 16448k for malloc() at: 82f8c000
Reserving 44 Bytes for Board Info at: 82f8bfd4
Reserving 36 Bytes for Global Data at: 82f8bfb0
Reserving 128k for boot params() at: 82f6bfb0
Stack Pointer at: 82f6bf98
Now running in RAM - U-Boot at: 83f9c000
Flash Manuf Id 0xef, DeviceId0 0x40, DeviceId1 0x18
flash size 16MB, sector count = 256
Flash: 16 MB
Using default environment
In: serial
Out: serial
Err: serial
Net: ath_gmac_enet_initialize...
No valid address in Flash. Using fixed address
ath_gmac_enet_initialize: reset mask:c02200
athr_mgmt_init ::done
Dragonfly ----> S17 PHY *
athrs17_reg_init: complete
SGMII in forced mode
athr_gmac_sgmii_setup SGMII done
: cfg1 0x80000000 cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Setting 0x181162c0 to 0x20402100
run command setenv serverip 192.168.0.66;setenv ipaddr 192.168.0.86
run command tftp 0x80060000 WR1043v5_tp_recovery.bin
Trying eth0
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.0.66; our IP address is 192.168.0.86
Filename 'WR1043v5_tp_recovery.bin'.
Load address: 0x80060000
Loading: checksum bad
checksum bad
checksum bad
#####checksum bad
############################################################
#######################checksum bad
checksum bad
##########################################
#######################checksum bad
##########################################
################################checksum bad
###checksum bad
##############################
######################################checksum bad
###########################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
###########################Tftp server tranfer fail!
tftpboot firmware failed, now start normally.
factory boot check integer ok.
factory boot load fs uboot len 131072 to addr 0x80010000.
Hit any key to stop autoboot: 0
## Starting application at 0x80010000 ...