On Fri, Apr 22, 2016 at 7:29 PM, John Stoner <[email protected]> wrote:
> So I downloaded and installed the Jessie IoT Snapshot. I like that it > doesn't have a bunch of stuff running I don't need. > > I am trying to get the USB networking to work. It worked with the board > straight out of the box, so I know the problem is not on my laptop. After > flashing the IoT image I dicked around with connman enough to decide I > didn't like it, so I uninstalled it (and USB was unresponsive with that > too). That didn't help. > > I do see the usb0 stanza in /etc/network/interfaces, > > [ root@beaglebone:~ ] > 0s 👍 #> more /etc/network/interfaces > > [snip] > > # Ethernet/RNDIS gadget (g_ether) > # Used by: /opt/scripts/boot/autoconfigure_usb0.sh > iface usb0 inet static > address 192.168.7.2 > netmask 255.255.255.252 > network 192.168.7.0 > gateway 192.168.7.1 > > and I do see usb0 output in my ip addr output > > [ root@beaglebone:~ ] > 0s 💩 #> ip addr > > [snip] > > 3: usb0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast > state DOWN group default qlen 1000 link/ether 68:9e:19:8f:60:f0 brd > ff:ff:ff:ff:ff:ff > inet 192.168.7.2/30 brd 192.168.7.3 scope global usb0 > valid_lft forever preferred_lft forever > > (of course I get that via eth0.) > > Googling I see this > > https://kwantam.github.io/BBKNotes1.html > > which is out of date. it says to update /etc/inittab (among other things), > and that's gone in the new systemd world... > > so how do I do this? How do I get USB networking to work with the Jessie > IoT image? > So... In the Jessie iot image, we have connman setup to control eth0 and IGNORE usb0.. usb0 comes up first via loading the g_multi module, thru a generic init script, and then udhcp is used to give your pc an ip address.. I have a simple form of the script here: https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-usbgadget 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/CAOCHtYhdtEDyBoN%2Bu-eV0cLxamyf58-ZY6aR7GjxvQRvetVT2g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
