u-boot_mod
u-boot_mod copied to clipboard
Add support for TP-Link TL-WR842N/ND v2
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]
Hm, spotted a bug. It erases the MAC adress as TP-Link stores it at offset 0x1fc00 in U-Boot partition
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:

Cheers, Piotr
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 .
How did you install new U-Boot?
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 .
Next time you can use this script: https://github.com/pepe2k/u-boot_mod/blob/master/target_util/u-boot-upgrade
Cheers, Piotr
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 .
Can confirm that it works perfectly fine with your script. Thanks
Any chance on merging this?
I had tested this, everything is fine
@robimarko Merged in my fork. Do you have an original U-Boot image?
Doubt it, I deleted that stuff long time ago. But you can always build it from GPL
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.
Sorry but this project is no longer maintained.