ramips: Cudy X6 fixes / improvements openwrt-22.03
authorFelix Baumann <[email protected]>
Fri, 21 Apr 2023 01:07:58 +0000 (03:07 +0200)
committerDavid Bauer <[email protected]>
Mon, 24 Apr 2023 11:38:10 +0000 (13:38 +0200)
commitb4ca905398ddf584d211e256cbfc6d14a70f4b3f
treefb4f59558d6f059ba54e4ac1cbc47a982b7378f1
parent31b1366bc63968e92d023ad28de6d0896b640c78
ramips: Cudy X6 fixes / improvements

- Correct WiFi MACs, they didn't match oem firmware
- Move nvmem-cells to bdinfo partition and remove &bdinfo reference
- Add OEM device model name R13 to SUPPORTED_DEVICES
  This allows sysupgrading from Cudy's OpenWrt fork without force
- Label red_led and use it during failsafe mode and upgrades

MAC addresses as verified by OEM firmware:

use   address             source
LAN   b4:4b:d6:2d:c8:4a   label
WAN   b4:4b:d6:2d:c8:4b   label + 1
2g    b4:4b:d6:2d:c8:4a   label
5g    b6:4b:d6:3d:c8:4a   label + LA-Bit set + 4th oktet increased

The label MAC address is found in bdinfo 0xde00.

Signed-off-by: Felix Baumann <[email protected]>
[read wifi mac from flash offset]
Signed-off-by: David Bauer <[email protected]>
(cherry picked from commit 45cf200b2e22c34f2ae043b87e24230de526fefc)
target/linux/ramips/dts/mt7621_cudy_x6.dts
target/linux/ramips/image/mt7621.mk
target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac