*Solved* Help for make a good dts file ( MT7621 )

i have found that OpenWrt snapshot not use a good dts file for a Tenbay T-MB5EU-v01 and I am having problems because the MAC addresses are not correct

in original:dts file for WIFI:

&pcie1 {
	wifi@0,0 {
		reg = <0x0 0 0 0 0>;
		mediatek,mtd-eeprom = <&factory 0x000>;
	};
};

but when i run i have not the good values for the wifi 2.4 Ghz & 5 Ghz

in factory firmware mtd3.bin
the good value is only to 0x8000 + 4 for the 2 * wifI bands

->00008000 : 00 00 00 00 E4 67 1E 29 BA 4C 00 00 00 00 00 00

how i modify the source to get:

Wifi 2.4 Ghz -> content of 8004 <---- E4 67 1E 29 BA 4C

Wifi 5 Ghz -> content of 8000 + 4 decremented by 2 < ---- E4 67 1E 29 BA 4A

so I will have different and correct MAC addresses as:

product label :E4 67 1E 29 BA 4B

LAN E4 67 1E 29 BA 4B <-- OK

WIFI 2.4 Ghz E4 67 1E 29 BA 4C

WIFI 5 Ghz E4 67 1E 29 BA 4A

For the wan address dts is correct ( gmac ) , i have E4 67 1E 29 BA 49

Please check the latest master, I've just posted a fix.

Your EEPROM data in regards to the external PHY MAC address seems to be different. For my unit, the correct 5GHz MAC address is contained at offset 0xa, even though it should be manufactured closely to your unit.

I've now set the Wireless MAC addresses relative to the known-good offset of the LAN MAC. Please report back if this fixes the issues you were facing.

Best
David

For all :

1 - TENBAY -> 15 79 00 00 E4 67 1E 03 E7 C9 00 0C 43 26 59 97
2 - TENBAY -> 15 79 00 00 E4 67 1E 29 B8 B6 00 0C 43 26 59 97
3 - TENBAY -> 15 79 00 00 E4 67 1E 29 BA 4B 00 0C 43 26 59 97

1 - HUASIFEI -> 15 79 00 00 E4 67 1E 2D E0 7A 00 0C 43 26 59 97
2 - HUASIFEI -> 15 79 00 00 E4 67 1E 2D DE 3E 00 0C 43 26 59 97

offset 0xa = 00 0C 43 26 59 97

it would be surprising if for 2 different brands of products the MAC address of the 5 Ghz WIFI card is the same

it is the same for the MAC address of the WIFI 2.4 GHz which is identical to that of the LAN

I add infos for 2 * XIAOMI R3G & 3 * WR1200JS& 2 * MINIHERE MIWFI -D2 in 0xa

values are same -> 03 76 C3 14 FF FF

this values are not modified by BREED LOADER which can change MAC addresses

This day -> snapshot OpenWrt SNAPSHOT r18349-07452a680b / LuCI Master git-21.343.55550-008bd89

and it works fine:

LAN : MAC: E4:67:1E:03:E7:BF
WAN: MAC: E4:67:1E:03:E7:BD
radio0 BSSID: E4:67:1E:03:E7:C0
radio1 BSSID: E4:67:1E:03:E7:BE

I saw the fix
tenbay,t-mb5eu-v01)

43 hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"

44 [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr "1" > /sys${DEVPATH}/macaddress
tenbay,t-mb5eu-v01)
43 hw_mac_addr="$(mtd_get_mac_binary factory 0x4)"

44 [ "$PHYNBR" = "0" ] && macaddr_add $hw_mac_addr "1" > /sys${DEVPATH}/macaddress
45 [ "$PHYNBR" = "1" ] && macaddr_add $hw_mac_addr "-1" > /sys${DEVPATH}/macaddress

46 ;;
47 esac

solved , thanks

i build & test for use a new dts & update mt7621.mk because i use a variant with 32M MX25l25635e flash memory for use samba4 which requires more than 16M of flash memory

No problems : dts firmware -> 1F70000 , mt7621.mk -> 32192k

Fine good speed in 5 GHz
*
Computer < - LAN - > TENBAY Client < -- WIFI 5 Ghz -- > TENBAY AP < - LAN - > LiveBox 5 < - Fiber Gigabits
*

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.