OpenWrt/LEDE Project

  • Status New
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Medium
  • Reported Version lede-17.01
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Alexander Couzens - 05.03.2017

FS#598 - 842nd doesnt flash successful with factory image using the tftp-recover over the bootloader

Device: 842nd v3.1
LEDE: 17.01

Go into recovery tftp mode by pressing first the WPS/Reset button and now connect the power.
The device enters tftp recovery to download via tftp from 192.168.0.66 file (wr842nv3_tp_recovery.bin)

The device *seems* to accept the flash (sorry, no serial to confirm).
On boot, the device doesn’t show leds nor it accepts any packets on ipv6 on any port (ping ff02::1) or ping to 192.168.1.1.

I guess this happens, because the oem flasher doesn’t flash all blocks of the factory image.

To recover from this state:
- flash via tftp recovery
- enter LEDE rescue/recovery
- ssh root@192.168.1.1
- use sysupgrade image

Task:
- confirm this happens also with trunk
- use serial to get more debug

Marcus Scharf commented on 25.06.2017 17:28

i can confirm this problem. My wr842 wont accept any flash over tftp

Leon George commented on 26.05.2019 10:02

Try this:

target/linux/ar71xx/image/common-tp-link.mk:

+define Device/tplink-16mlzma-fc0000
+$(Device/tplink)
+  TPLINK_FLASHLAYOUT := 16Mlzma-fc0000
+  IMAGE_SIZE := 16128k
+endef
+

Of course, you need to change the wr842n target device:

 define Device/tl-wr842n-v3
-  $(Device/tplink-16mlzma)
+  $(Device/tplink-16mlzma-fc0000)
   DEVICE_TITLE := TP-LINK TL-WR842N/ND v3

That might be enough.
Place the image in your tftp-server's directory as "wr842nv2_tp_recovery.bin", set your IP address to 192.168.1.66, hold the reset button while powering on the router, and wait.

If i recall correctly and for some reason i don't remember, we also added a boot section to the image using an official image.
We sliced a chunk from the beginning of the image and prepended it to the openwrt-file; somewhat like this:

dd if=official-firmware.bin of=wr842nv2_tp_recovery.bin bs=512 count=$part_size
cat openwrt-tl-wr842n-v2.bin >> wr842nv2_tp_recovery.bin

$part_size should be 256 - i might be wrong, though.
EDIT: 257

I wish i had documented that better..

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing