[OpenWrt-Devel] MAC addresses read by ralink,mtd-eeprom

David Bauer mail at david-bauer.net
Thu Aug 15 08:43:36 EDT 2019

Hello Adrian,

On 8/15/19 1:26 PM, Adrian Schmutzler wrote:
> My current understanding of ralink,mtd-eeprom for &wmac is that this reads the MAC address "automatically" if it's in the correct location (start+4).

This is correct, the MAC address is stored as 3 16bit words within the EEPROM data, beginning at
the third word of the EEPROM data.


> Does this mean that e.g. in the following configuration I can tell that &wmac and &ethernet have the _same_ MAC address (without checking on device):
> &ethernet {
> 	mtd-mac-address = <&factory 0x4>;
> 	mediatek,portmap = "wllll";
> };
> &wmac {
> 	ralink,mtd-eeprom = <&factory 0>;
> };

If the MAC address is not altered via userspace: correct

Best wishes

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list