Great! This is certainly starting to look almost complete.
uboot-envtools support:
diff --git a/package/boot/uboot-envtools/files/mediatek_filogic b/package/boot/uboot-envtools/files/mediatek_filogic
index b0810184e5af..6d6128ad5802 100644
--- a/package/boot/uboot-envtools/files/mediatek_filogic
+++ b/package/boot/uboot-envtools/files/mediatek_filogic
@@ -47,6 +47,9 @@ mercusys,mr90x-v1)
netgear,wax220)
ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x20000" "0x20000"
;;
+ubnt,unifi-6-lite)
+ ubootenv_add_uci_config "/dev/mtd1" "0x0" "0x80000" "0x10000"
+ ;;
xiaomi,mi-router-wr30u-112m-nmbm|\
xiaomi,mi-router-wr30u-stock|\
xiaomi,redmi-router-ax6000-stock)
Still missing mac-address support for wifi. I can't figure out how to set separate addresses for the two phys. For reference, this is the stock mac address config on my unit (still running the original 6.5.28 which doesn't seem to be available for DL):
U6-Plus-BZ.6.5.28# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP300> mtu 1500 qdisc pfifo master br0 state DOWN qlen 1000
link/ether e4:38:83:e5:85:d4 brd ff:ff:ff:ff:ff:ff
3: ra0: <BROADCAST,MULTICAST300> mtu 1500 qdisc pfifo master br0 state DOWN qlen 1000
link/ether e4:38:83:e5:85:d5 brd ff:ff:ff:ff:ff:ff
4: ra1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:15:85:d5 brd ff:ff:ff:ff:ff:ff
5: ra2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:25:85:d5 brd ff:ff:ff:ff:ff:ff
6: ra3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:35:85:d5 brd ff:ff:ff:ff:ff:ff
7: ra4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:45:85:d5 brd ff:ff:ff:ff:ff:ff
8: ra5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:55:85:d5 brd ff:ff:ff:ff:ff:ff
9: ra6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:65:85:d5 brd ff:ff:ff:ff:ff:ff
10: ra7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:75:85:d5 brd ff:ff:ff:ff:ff:ff
11: rai0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo state UNKNOWN qlen 1000
link/ether e6:38:83:85:85:d5 brd ff:ff:ff:ff:ff:ff
12: rai1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:95:85:d5 brd ff:ff:ff:ff:ff:ff
13: rai2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:a5:85:d5 brd ff:ff:ff:ff:ff:ff
14: rai3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:b5:85:d5 brd ff:ff:ff:ff:ff:ff
15: rai4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:c5:85:d5 brd ff:ff:ff:ff:ff:ff
16: rai5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:d5:85:d5 brd ff:ff:ff:ff:ff:ff
17: rai6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:e5:85:d5 brd ff:ff:ff:ff:ff:ff
18: rai7: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e6:38:83:f5:85:d5 brd ff:ff:ff:ff:ff:ff
19: apcli0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether e2:38:83:e5:85:d5 brd ff:ff:ff:ff:ff:ff
20: apclii0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP300> mtu 1500 qdisc pfifo master br0 state DORMANT qlen 1000
link/ether ee:38:83:e5:85:d5 brd ff:ff:ff:ff:ff:ff
21: br0: <NO-CARRIER,BROADCAST,MULTICAST,UP200> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether e4:38:83:e5:85:d4 brd ff:ff:ff:ff:ff:ff
The ethernet mac is found directly in the eeprom nor partition as you noted. There's also a locally modified version of it at pos 6. This is the beginning of my "eeprom":
00000000 e4 38 83 e5 85 d4 e6 38 83 e5 85 d4 a6 42 07 77 |.8.....8.....B.w|
00000010 00 04 9d 10 ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000020
The second version can be used to construct one of the wifi addresses along with
mac-address-increment = <1>;
but if I do that then both phys end up with this same address. Is that correct?
The stock device names confuse me. I don't understand what is what there. But I note that all the ra* devices use this eeprom_6+1 address. The apcli* devices use further locallly modified versions. These could be userspace generated?
EDIT: This wasn't entirely correct. The ra0 device uses the eeprom_0+1 address as shown. So I conclude that the two wifi phys should use eeprom_0+1 and eeprom_6+1 .