Hi Koen,

> For a product I'm working on (http://beagleboard.org/bone) that is very
> webserver heavy we want to ship the following network config:
> 
> eth0 (proper RJ45 jack): use dhcp is connected, integrate into existing 
> network
> usb0 (mini usb, RNDIS): static IP, dhcp server to allow people to access the
> webservices on the board when there's no RJ45 ethernet.
> 
> The first part is easy with connman, it does that out of the box. The second
> part isn't. In a past far, far away you could drop a 'eth0.conf' file in
> /var/lib/connman with some options and it would work. That doesn't work
> anymore :(
> 
> I briefly talked with Marcel on IRC and pointed me to the config format docs
> and mentioned the tethering option as well. I could figure out the config
> format, but not how to get it to apply to usb0 when it comes up. For the
> first production run we're using a udev rule to ifconfig usb0 and start 
> udhcpd.
> 
> My question: how do I configure connman with a config file to configure
> usb0? I need this to be a config file since the filesystem will end up on a
> master SD card that will get cloned for each board we ship.
> 
> And to make it worse usb0 uses random MAC addresses by default.
> 
> If static isn't the way to go I'll switch to tethering mode if that does
> what I need.

I would clearly go for Tethering. The usb0 on your device will be
enabled with DEVTYPE=gadget anyway and thus ConnMan will not touch that
interface and leave it to Tethering support to use it.

The only problem you might run into is that Tethering needs to enabled
via D-Bus first. That is something we might might need to extend to make
it possible via provisioning or some configuration option. In your case
it should be on by default.

And now this brings up another question, does your USB gadget shows up
as a ConnMan technology on D-Bus. It should, but I don't remember we
ever tested this.

Regards

Marcel


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to