Re: coordinating wired MAC address override with connman

2012-12-08 Thread Peter A. Bigot
On 12/08/2012 12:18 PM, Marcel Holtmann wrote: Hi Peter, What I don't see is a way to coordinate this with connman, which immediately brings up the eth0 interface as soon as the kernel publishes its existence regardless of whether it's actually ready to be configured. I see several options: *

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Marcel Holtmann
Hi Peter, > >>> I believe you can set the MAC address from the bootloader if this > >>> is an option? > >> AFAIK you can't. In earlier versions of OpenEmbedded the kernel > >> (3.0.0 at the time) had been patched to provide the MAC address > >> through a module parameter, but the patch was reject

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Peter A. Bigot
On 12/08/2012 07:46 AM, Alan Cox wrote: Personally I think assigning a random MAC address in the driver is...unwise. I can't imagine having any success getting that changed, though, especially now that addr_assign_type is used properly. Address assignment isn't "random" as such - it's using the

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Peter A. Bigot
On 12/08/2012 06:55 AM, Daniel Wagner wrote: On 08.12.2012 13:27, Peter A. Bigot wrote: Is external manipulation of that file (including installing it at the time a system is provisioned) consistent with how connman configuration is to be done, or do you expect all such changes to come through

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Alan Cox
> Personally I think assigning a random MAC address in the driver > is...unwise. I can't imagine having any success getting that > changed, though, especially now that addr_assign_type is used > properly. Address assignment isn't "random" as such - it's using the ranges specified for local alloc

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Alan Cox
> > of /var/lib/connman/settings had no effect; connman still brought > > eth0 up. > > Unfortunately, the AutoConnect setting is per device and stored under > /var/lib/connman/ethernet_MAC_ADDR_cable/settings. Thats a fundamental breakage because - MAC addresses are only required to be unique *

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Daniel Wagner
On 08.12.2012 13:27, Peter A. Bigot wrote: > On 12/08/2012 04:04 AM, Daniel Wagner wrote: >> On 08.12.2012 01:15, Peter A. Bigot wrote: >>> The second alternative also requires a way to tell connman that a wired >>> interface is to be enabled but not autoconfigured. I haven't found >>> anything to

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Peter A. Bigot
On 12/08/2012 04:04 AM, Daniel Wagner wrote: On 08.12.2012 01:15, Peter A. Bigot wrote: The second alternative also requires a way to tell connman that a wired interface is to be enabled but not autoconfigured. I haven't found anything to do that. The documentation (config-format.txt) suggests

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Daniel Wagner
On 08.12.2012 11:04, Daniel Wagner wrote: How would this be done if I wanted to statically assign network configuration data to an interface that had a fixed MAC address? Have something install /var/lib/connman/ethernet_(macaddr)_cable/settings? Maybe we could add something to the ethernet plug

Re: coordinating wired MAC address override with connman

2012-12-08 Thread Daniel Wagner
On 08.12.2012 01:15, Peter A. Bigot wrote: > I see several options: > > * I can have the user-space program wait until connman has brought the > interface up, then take the interface back down again, correct its > configuration, and re-enable it; > > * I could configure connman to not bring up