On Wed, Jan 24, 2018 at 11:20 AM, Dan Tian <[email protected]> wrote: > Hi, > I am trying to make identical embedded systems in production with an SD > card, the SD card image is flashed from a working BBBW board. The issue I > have is the newly programmed BBBW would have the same wlan0 mac/ether > address as the original board, as opposed to their own MAC address one would > expect. With all the programmed systems having the same interface mac > address they will get the same IP from a DHCP server, which is obviously not > acceptable. > > I am not using /etc/network/interfaces file to configure wlan0, I assume the > interface is configured and brought up by connman service. I am thinking > there might be two ways to resolve this: > 1) find out how the interface mac address is assigned at startup and > hopefully there is a way to fix it there. > 2) manually re-assign the correct wlan0 mac address with a script at > startup, but not sure what's the best approach here either.
For the BBBW, by default we grab cpsw0 for wlan0.. https://github.com/rcn-ee/repos/blob/master/bb-wl18xx-firmware/suite/jessie/debian/bb-wl18xx-wlan0#L210 set_wlan_0_mac_from_cpsw_0: https://github.com/rcn-ee/repos/blob/master/bb-wl18xx-firmware/suite/jessie/debian/bb-wl18xx-wlan0#L132 set_wlan_0_mac: https://github.com/rcn-ee/repos/blob/master/bb-wl18xx-firmware/suite/jessie/debian/bb-wl18xx-wlan0#L57 In set_wlan_0_mac, it looks ugly*, as we actually "patch" the firmware ( /lib/firmware/ti-connectivity/wl1271-nvs.bin ), but then make sure when updated it's stored in the initramfs. TI has a crazier tool that required even more stuff running, then the 6 dd commands we use.. Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgKXL7bNU%3Dcn2S9B6ujRspVD0zjwOT-sLc6iQkEzbBU7g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
