openwrt/target/linux/realtek/base-files
Alexandru Gagniuc d55c087390 realtek: tl-sg2xxx: read MAC address from nvmem-cells
The TP-Link RTL83xx based switches have their MAC address programmed
in the "para" partition. While in theory, the format of this partition
is dynamic, in practice, the MAC address appears to be located at a
consistent address. Thus, use nvmem-cells to read this MAC address.

The main MAC is required for deriving the MAC address of the switch
ports. Instead of reading it via mtd_get_mac_binary(), alias the
ethernet0 node as the label-mac-device, and use get_mac_label().

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2022-09-13 09:22:26 +02:00
..
etc realtek: tl-sg2xxx: read MAC address from nvmem-cells 2022-09-13 09:22:26 +02:00
lib/upgrade realtek: add support for TP-Link SG2008P 2022-08-13 19:59:47 +02:00