Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
openwrt-bot opened this issue Mar 5, 2017 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

lynxis:

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
@openwrt-bot
Copy link
Author

Sunz3r:

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

@openwrt-bot
Copy link
Author

yogo1212:

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant