BBB usb0 RNDIS ethernet connection does not configure correctly, cannot connect through SSH over USB

356 views
Skip to first unread message

DarkHelmet

unread,
Oct 10, 2017, 10:41:42 AM10/10/17
to BeagleBoard
I'm having a longstanding issue with using the SSH connection over the USB RNDIS ethernet interface; it works at first but after a while I lose the network connection. Here's what I've observed so far:

The network is shown as up on the BBB 
[root@bbb]~$ ifconfig
eth0      Link encap:Ethernet  HWaddr b0:d5:cc:f6:a1:f2
          inet addr:192.168.1.29  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::b2d5:ccff:fef6:a1f2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:114 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:10056 (9.8 KiB)  TX bytes:1332 (1.3 KiB)
          Interrupt:175

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

usb0      Link encap:Ethernet  HWaddr b0:d5:cc:f6:a1:f0
          inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
          inet6 addr: fe80::b2d5:ccff:fef6:a1f0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:136 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14692 (14.3 KiB)  TX bytes:1356 (1.3 KiB)


However, if I check ifstate it is not listed:
[root@bbb]~$ cat /run/network/ifstate
lo=lo
eth0=eth0

When trying to bring it back down/up by force, RTNETLINK complains
[root@bbb]~$ ifdown usb0
ifdown: interface usb0 not configured
[root@bbb]~$ ifup --force usb0
RTNETLINK answers: File exists
Failed to bring up usb0.

But the /etc/network/interfaces show the usb0 configured
[root@bbb]~$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.252
network 192.168.7.0
gateway 192.168.7.1
auto eth0
iface eth0 inet dhcp


and from dmesg, the g_ether module loads correctly
[   23.579423] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[   23.579434] g_ether gadget: g_ether ready
[   23.823800] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[   23.991528] g_ether gadget: high-speed config #2: RNDIS
[   23.991792] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready


From the PC the network is discovered but no gateway/ip address/etc.. is configured (see network details screenshot)

Where can I go from here? The usb0 network seems to be up but the underlying setup fails at some unknown point. Rebooting the BBB does not fix the issue, only "fix" so far is to reflash the BBB with a fresh image.

This issue has happened on many different BBB v.C. I am running the bone-debian-8.4-console-armhf-2016-05-13-2gb.img precompiled image with a slight modification to the DTS to disable an i2c that was interfering with some of my overlays. Any pointers are grealty appreciated!
BBB RNDIS.png

Bryan Hughes

unread,
Oct 24, 2017, 2:12:41 PM10/24/17
to BeagleBoard
I have the same exact issue. Unfortunately I am also at a loss. I can hook my BBB to my router via ethernet no problem, but the USB network does not show up on my Mac. I have installed all the latest drivers, and I also have no issue with a Green that I have. It is just my Black that I can not access via the USB network.
Reply all
Reply to author
Forward
0 new messages