Adding OpenWrt support for TPLINK TL-WR841HP v2

yes I have tried to restore the art partition backup but the mac address doesn't change

The mac address that appears is on the art partition
That is wrong,

it should be from u-boot partition 0x1fc00 then it matches the one on the sticker

art partition doesn't have mac address, but mtd-cal-data use mac in uboot to calibrate macaddr for wifi.
how do you restore art part ? try revert to stock firmware to see macaddr showing correct or not ?

yes, i get 30dm txpower, and no problem on wireless performance.

i don't have uboot stock but i still have fulldump original tplink firmware

use this method to get uboot from rom dump

use this code to cut the mac part from original uboot and merge this with custom uboot.

root@DD-WRT:/tmp# dd if=uboot_factory.bin of=uboot_rest.bin bs=1 skip=$(wc -c < uboot_for_tp-link_tl-mr3020.bin)
5120+0 records in
5120+0 records out

root@DD-WRT:/tmp# cat uboot_for_tp-link_tl-mr3020.bin uboot_rest.bin > uboot_new.bin

what are you using now? breedboot or uboot?

i use breed,

hexdump of u-boot currently installed

000d060 524d b360 59c0 e877 9be0 ea11 f5e3 09cc
000d070 0a20 d3d3 d9d9 9e48 d4ef 70b2 00a8 ffff
000d080 ffff ffff ffff ffff ffff ffff ffff ffff
*
001fc00 08ec 896b e0bd ffff ffff ffff ffff ffff
001fc10 ffff ffff ffff ffff ffff ffff ffff ffff
*
001fd00 4108 0210 0000 0200 ffff ffff ffff ffff
001fd10 ffff ffff ffff ffff ffff ffff ffff ffff
*
001fe00 3330 3333 3133 3035 ffff ffff ffff ffff
001fe10 ffff ffff ffff ffff ffff ffff ffff ffff
*
0020000

0x1fc00 : MAC address
0x1fd00 : Product ID
0x1fe00 : PIN

is there something wrong with u-boot?

Hmm. Everything is ok in hexdump of uboot.
except last 2 pair of mac address are in reverse mode in my uboot hexdump.
for example

001fc00 08ec 896b bde0

@si_GILA which breedboot you are using?

I use

breed-ar9344-r1163.bin

which I downloaded from here
https://breed.hackpascal.net/EOL/

looks like the dts file doesn't point the mac address to block 0x1fc00 but another location or maybe my spi chip is corrupt.

little of what I understand from this thread

I have tried several times to change
this section

label-mac-device

and

mtd-cal-data

but none of them work, to display the mac address correctly

my last solution at this time is to write the wireless mac address manually on the art partition and ignore this log it keeps showing

ag71xx 19000000.eth: invalid MAC address, using random address
ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.
ag71xx 1a000000.eth: invalid MAC address, using

because I don't know where it's going.

check breedboot log or uboot log to know the root cause of invalid mac address. when i use pepe2k wdr4300-v1 uboot mod, i faced invalid mac .. But with pepe2k wdr3500 uboot mod mac address works without any problem

@si_GILA a long time before from googling , i find, if you want to use breedboot you need to set to mac by using breed advance settings, also u need build openwrt by point out the memory location of mac from breedboot.

thanks,
you are right after I replaced it with pepe2k u-boot the mac address reads correctly

1 Like

Sorry, but I'm confused, which of the firmwares is working fine? What was posted by humanOS or si_GILA?

Both firmware are working fine. @si_GILA build is for 16mb flash modification. It is good news that the device is added in openwrt master. You can use official snapshot build from openwrt.

Hello, would you have the fullflash dump of the 841hp v2? I corrupted my bootloader and wanted to rewrite my flash

sorry, i don't have flash programmer.

Can i have that rom i have a dead 841hp v2 dead if you give me the dump i can revive it back to life
pleaseeeeeeeeeeeeeeeee

Can i have that rom i have a dead 841hp v2 dead if you give me the dump i can revive it back to life
pleaseeeeeeeeeeeeeeeee