mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
d55c087390
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> |
||
---|---|---|
.. | ||
base-files | ||
dts-5.10 | ||
files/firmware/rtl838x_phy | ||
files-5.10 | ||
image | ||
patches-5.10 | ||
profiles | ||
rtl838x | ||
rtl839x | ||
rtl930x | ||
rtl931x | ||
Makefile |