[OpenWrt-Devel] MAC address on ramips?
Roman Yeryomin
leroi.lists at gmail.com
Sat Jul 26 11:32:15 EDT 2014
On 26 July 2014 14:01, Russell Senior <russell at personaltelco.net> wrote:
>
> We are playing with the AsiaRF AWM002 and AWM003 boards and recently
> discovered that the MAC addresses are the same across all of the
> boards we have. Initially, these seemed to be populated from the
> "factory" flash partition. Here is a hexdump -C of /dev/mtd2:
>
> 00000000 50 53 00 01 00 0c 43 30 50 f8 ff ff ff ff ff ff |PS....C0P.......|
> 00000010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
> 00000020 ff ff ff ff ff ff ff ff 00 0c 43 30 50 77 00 0c |..........C0Pw..|
> 00000030 43 30 50 66 11 ff 24 28 ff ff 21 01 55 77 a8 aa |C0Pf..$(..!.Uw..|
> 00000040 8c 88 ff ff 0c 00 00 00 00 00 00 00 00 00 ff ff |................|
> 00000050 ff ff 0b 0b 0b 0b 0b 0b 0b 0b 0b 0b 0c 0c 0c 0c |................|
> 00000060 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 21 00 |..............!.|
> 00000070 00 00 00 00 00 00 03 90 ff ff ff ff ff ff ff ff |................|
> 00000080 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
> *
> 000000d0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff 66 66 |..............ff|
> 000000e0 cc aa 88 66 cc aa 88 66 cc aa 88 66 cc aa 88 66 |...f...f...f...f|
> 000000f0 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
> *
> 00000120 81 09 1c 13 4f 15 4f 15 03 1d 07 1d ff ff ff ff |....O.O.........|
> 00000130 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
> *
> 00010000
>
> There are three portions, at offset 0x4 (wlan0), 0x28 (eth0) and 0x2e,
> that look like Ralink mac addresses. More recently, in the last week
> or so, the ethernet macs seem to have switched to 00:11:22:33:44:55
> (and increments) as set in /etc/config/network stanzas. Can someone
> please explain what the idea/intention is here?
>
> Ultimately we may need to rewrite the factory partition to provide
> unique macaddrs for our project, if that's indeed where they ought to
> be coming from.
Not all AWM boards have mac address setup in preinit script. Only
AWM002 EVB ones are defined. I don't believe you had good macs on same
boards a week ago.
I proposed a patch which moves mac address extraction from preinit to
dts: http://patchwork.openwrt.org/patch/5970/
Look at that patch and you will see how to add ethernet mac to dts to
other AWM boards.
Regards,
Roman
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list