On Wed, Mar 9, 2016 at 12:41 PM, Robert Nelson <[email protected]> wrote:
> On Wed, Mar 9, 2016 at 12:26 PM, Brian Anderson <[email protected]> wrote:
>>
>>> >> yeah, very racy, and a bad idea. ;)
>>> >>
>>> >> So i now have things working a littler closer to a connman only
>>> >> solution..
>>> >>
>>> >> Drop dnsmasq/create_ap, add back udhcpd
>>> >>
>>> >> usb0 : udhcpd (192.168.7.2)
>>> >> wlan0: connman ap (192.168.0.1)
>>
>>
>> Assuming Connman manages wlanx (AP or STA) as well as ethx.
>
> Correct
>
>>  I presume you
>> have told Connman to ignore usbx  interfaces in /etc/connman/main.conf?
>
> Here's the configuration i'm using at the moment, i'll test adding an
> ignore for usbx
>
> https://github.com/RobertCNelson/omap-image-builder/blob/master/target/chroot/beagleboard.org-jessie.sh#L190-L220

Okay, that should solve a race:

root@beaglebone:~# journalctl | grep conn | grep usb0
Mar 09 18:48:52 beaglebone connmand[373]: usb0 {create} index 2 type 1 <ETHER>
Mar 09 18:48:52 beaglebone connmand[373]: usb0 {update} flags 4098 <DOWN>
Mar 09 18:48:52 beaglebone connmand[373]: usb0 {newlink} index 2
address 1C:BA:8C:D9:F8:A0 mtu 1500
Mar 09 18:48:52 beaglebone connmand[373]: usb0 {newlink} index 2
operstate 2 <DOWN>
Mar 09 18:48:52 beaglebone connmand[373]: Ignoring interface usb0 (filtered)
Mar 09 18:48:52 beaglebone connmand[373]: Adding interface usb0 [ gadget ]
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {add} address
192.168.7.2/24 label usb0 family 2
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {update} flags 69699
<UP,RUNNING,LOWER_UP>
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {newlink} index 2
address 1C:BA:8C:D9:F8:A0 mtu 1500
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {newlink} index 2
operstate 6 <UP>
Mar 09 18:48:55 beaglebone connmand[373]: Ignoring interface usb0 (filtered)
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {add} route 192.168.7.0
gw 0.0.0.0 scope 253 <LINK>
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {add} route fe80:: gw
:: scope 0 <UNIVERSE>
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {del} address
192.168.7.2/24 label usb0
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {del} route 192.168.7.0
gw 0.0.0.0 scope 253 <LINK>
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {add} address
192.168.7.2/30 label usb0 family 2
Mar 09 18:48:55 beaglebone connmand[373]: usb0 {add} route 192.168.7.0
gw 0.0.0.0 scope 253 <LINK>

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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to