title: How to set ethernet interface MAC address with connman
body: <p>I have an embedded system that requires me to pull a MAC address out of flash and pass it to the Ethernet interface at the time it is brought up. Traditionally I have modified the call to ifconfig in an init script to just pass the MAC pulled out of flash as the <code>hw ether</code> parameter.</p>
  
  <p>The system I am working on uses connman to handle the network connection. The embedded system will always have a single Ethernet connection with a single matching MAC address in a custom format in flash. connman is used as when the interface is available changes, so having a dynamic system for handling bringing the interface up and down and configuring it is helpful.</p>
  
  <p>Is it possible to pass the MAC to connman to use in a similar way to what I have done before with ifconfig and, if so, how?</p>
  
  <p>Alternatively is it possible to pass the MAC as a boot parameter to the kernel so that connman never has to know about this? I can pull the MAC out of flash in U-Boot but the Ethernet device is not available to U-Boot.</p>