u-boot_mod icon indicating copy to clipboard operation
u-boot_mod copied to clipboard

Add support for TP-Link TL-WR842N/ND v2

Open robimarko opened this issue 7 years ago • 13 comments
trafficstars

Device is similar to WR841N v8, but has a USB port and 8MB of flash. Tested web recovery and USB, both work fine. Boots OpenWrt without issues.

Signed-off-by: Robert Marko [email protected]

robimarko avatar Sep 18 '18 22:09 robimarko

Hm, spotted a bug. It erases the MAC adress as TP-Link stores it at offset 0x1fc00 in U-Boot partition

robimarko avatar Sep 19 '18 16:09 robimarko

Hi @robimarko,

Hm, spotted a bug.

Where?

It erases the MAC adress as TP-Link stores it at offset 0x1fc00 in U-Boot partition

It? What do you mean? Have a look: mr3020_u-boot-modification_flash-map_comparison

Cheers, Piotr

pepe2k avatar Sep 19 '18 19:09 pepe2k

Hm,then it must be due to flashing with mtd from OpenWrt

On Wed, Sep 19, 2018, 21:12 Piotr Dymacz [email protected] wrote:

Hi @robimarko https://github.com/robimarko,

Hm, spotted a bug.

Where?

It erases the MAC adress as TP-Link stores it at offset 0x1fc00 in U-Boot partition

It? What do you mean? Have a look: [image: mr3020_u-boot-modification_flash-map_comparison] https://user-images.githubusercontent.com/2934612/45775631-a23b4900-bc50-11e8-8e1d-9a68fba7c148.png

Cheers, Piotr

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pepe2k/u-boot_mod/pull/212#issuecomment-422924412, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDsForJnIqzgaiUTV9H-FbvZQJL2unks5ucpcrgaJpZM4Wu4cQ .

robimarko avatar Sep 19 '18 20:09 robimarko

How did you install new U-Boot?

pepe2k avatar Sep 19 '18 20:09 pepe2k

I was already porting WR842N v2 to ath79 so I simply left out read-only flag on u-boot and used mtd to write the compiled binary to it. Everything works, but it looks like this way of installation erases the partition and then writes

On 19 September 2018 at 22:57, Piotr Dymacz [email protected] wrote:

How did you install new U-Boot?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pepe2k/u-boot_mod/pull/212#issuecomment-422955834, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDsD7yIem2CSK6C8KRwjRyCgYm2criks5ucq-6gaJpZM4Wu4cQ .

robimarko avatar Sep 19 '18 21:09 robimarko

Next time you can use this script: https://github.com/pepe2k/u-boot_mod/blob/master/target_util/u-boot-upgrade

Cheers, Piotr

pepe2k avatar Sep 19 '18 21:09 pepe2k

Will give it a try now. I backed all partitions up so simply writing stock U-boot back solved MAC issues.

Hope to see this merged. Cheers

On 19 September 2018 at 23:10, Piotr Dymacz [email protected] wrote:

Next time you can use this script: https://github.com/pepe2k/u-boot_mod/blob/master/target_ util/u-boot-upgrade

Cheers, Piotr

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pepe2k/u-boot_mod/pull/212#issuecomment-422959765, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTDsHdP0x3B_j12TZYLGJLXW8MWt5_pks5ucrLXgaJpZM4Wu4cQ .

robimarko avatar Sep 19 '18 21:09 robimarko

Can confirm that it works perfectly fine with your script. Thanks

robimarko avatar Sep 19 '18 21:09 robimarko

Any chance on merging this?

robimarko avatar Sep 26 '18 13:09 robimarko

I had tested this, everything is fine

zvova7890 avatar Feb 17 '20 22:02 zvova7890

@robimarko Merged in my fork. Do you have an original U-Boot image?

CodeFetch avatar Mar 25 '20 01:03 CodeFetch

Doubt it, I deleted that stuff long time ago. But you can always build it from GPL

robimarko avatar Mar 25 '20 09:03 robimarko

Hm. Maybe someone should write a script that just downloads all the TP-Link firmware images with "boot" in their name and run binwalk to extract the U-Boot partitions automatically.

CodeFetch avatar Mar 25 '20 21:03 CodeFetch

Sorry but this project is no longer maintained.

pepe2k avatar Oct 13 '22 10:10 pepe2k