USB Ethernet - Cloud9 fails connecting on Ubuntu

Hi Robert,

I am having a weird problem with our new Rev C. boards. The USB Ethernet doesn’t initiate NDIS Client interface as a completion on Ubuntu PC (16.04 version). But I know the issue is not on the Ubuntu PC, it works on all Rev B boards. With Rev C. boards, they work on Windows 10 PC.
To summarize:
Rev B Rev C
Linux OK Not OK (see the interface info below)
Windows 10 OK OK (just move the usb from Linux PC to Win 10)

The interface info from Linux (neither 192.168.7.1 nor 6.1 are instantiated)

enxf45eabecb531 Link encap:Ethernet  HWaddr f4:5e:ab:ec:b5:31  
          inet6 addr: fe80::1b09:97a8:d34c:d85/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4449 (4.4 KB)  TX bytes:4452 (4.4 KB)

enxf45eabecb52e Link encap:Ethernet  HWaddr f4:5e:ab:ec:b5:2e  
          inet6 addr: fe80::72ec:fd51:40a1:27ae/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:192 (192.0 B)  TX bytes:5537 (5.5 KB)

Any idea what might be wrong with the new boards?

Thank You,
David

Have you tried running:

sudo dhclient enxf45eabecb531

Regards,

Hi Robert,

Tried your command, it runs but never returns, and eventually it times out. The interface still has no 192.168.7.1. ( For Rev B. It instantiates the client automatically).
I believe something wrong with board hardware ( although it works with Win10). Or it could be some timing issues (or delays in the process of instantiation ).

Best Regards,
David

if you run:
journalctl | grep sh

Feb 01 23:08:36 bbb-pwr01-ser09 sh[1358]: generic-board-startup: start
Feb 01 23:08:36 bbb-pwr01-ser09 sh[1358]: generic-board-startup: ssh
Feb 01 23:08:36 bbb-pwr01-ser09 sh[1358]: generic-board-startup: efi
Feb 01 23:08:36 bbb-pwr01-ser09 sh[1358]: generic-board-startup: model
Feb 01 23:08:37 bbb-pwr01-ser09 sh[1358]: generic-board-startup: [model=TI_AM335x_BeagleBone_Black]
Feb 01 23:08:37 bbb-pwr01-ser09 sh[1358]: generic-board-startup: [startup script=/opt/scripts/boot/am335x_evm.sh]
Feb 01 23:08:37 bbb-pwr01-ser09 sh[1358]: am335x_evm: usb_image_file=[/var/cache/doc-beaglebone-getting-started/beaglebone-getting-started-2
019-10-31.img]
Feb 01 23:08:38 bbb-pwr01-ser09 sshd[1381]: Server listening on 0.0.0.0 port 22.
Feb 01 23:08:38 bbb-pwr01-ser09 sshd[1381]: Server listening on :: port 22.
Feb 01 23:08:40 bbb-pwr01-ser09 sh[1358]: bb_generate_mac.sh /etc/cpsw_0_mac: [C8:A0:30:AB:F3:66]
Feb 01 23:08:40 bbb-pwr01-ser09 sh[1358]: bb_generate_mac.sh /etc/cpsw_1_mac: [C8:A0:30:AB:F3:68]
Feb 01 23:08:40 bbb-pwr01-ser09 sh[1358]: bb_generate_mac.sh /etc/cpsw_2_mac: [C8:A0:30:AB:F3:69]
Feb 01 23:08:40 bbb-pwr01-ser09 sh[1358]: bb_generate_mac.sh /etc/cpsw_3_mac: [C8:A0:30:AB:F3:6A]
Feb 01 23:08:40 bbb-pwr01-ser09 sh[1358]: bb_generate_mac.sh /etc/cpsw_4_mac: [C8:A0:30:AB:F3:6B]
Feb 01 23:08:40 bbb-pwr01-ser09 sh[1358]: bb_generate_mac.sh /etc/cpsw_5_mac: [C8:A0:30:AB:F3:6C]
Feb 01 23:08:41 bbb-pwr01-ser09 sh[1358]: am335x_evm: use_libcomposite
Feb 01 23:08:41 bbb-pwr01-ser09 sh[1358]: am335x_evm: modprobe libcomposite
Feb 01 23:08:41 bbb-pwr01-ser09 sh[1358]: am335x_evm: Creating g_multi
Feb 01 23:08:41 bbb-pwr01-ser09 sh[1358]: /opt/scripts/boot/am335x_evm.sh: 455: echo: echo: I/O error
Feb 01 23:08:42 bbb-pwr01-ser09 sh[1358]: am335x_evm: enable USB mass_storage /var/local/bb_usb_mass_storage.img
Feb 01 23:08:42 bbb-pwr01-ser09 sh[1358]: ln: failed to create symbolic link 'os_desc/c.1': File exists
Feb 01 23:08:42 bbb-pwr01-ser09 sh[1358]: mkdir: cannot create directory ‘functions/rndis.usb0/os_desc/interface.rndis/Icons’: File exists
Feb 01 23:08:42 bbb-pwr01-ser09 sh[1358]: mkdir: cannot create directory ‘functions/rndis.usb0/os_desc/interface.rndis/Label’: File exists
Feb 01 23:08:42 bbb-pwr01-ser09 sh[1358]: ln: failed to create symbolic link 'configs/c.1/rndis.usb0': File exists
Feb 01 23:08:43 bbb-pwr01-ser09 sh[1358]: am335x_evm: g_multi Created
Feb 01 23:08:43 bbb-pwr01-ser09 sh[1358]: am335x_evm: Starting usb0 network
Feb 01 23:08:43 bbb-pwr01-ser09 sh[1358]: am335x_evm: Starting usb1 network
Feb 01 23:08:43 bbb-pwr01-ser09 sh[1358]: am335x_evm: dnsmasq: setting up for usb0/usb1

journalctl | grep dnsmasq

debian@bbb-pwr01-ser09:~$ journalctl | grep dnsmasq
Feb 01 23:08:43 bbb-pwr01-ser09 sh[1358]: am335x_evm: dnsmasq: setting up for usb0/usb1
Feb 01 23:08:44 bbb-pwr01-ser09 systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Feb 01 23:08:44 bbb-pwr01-ser09 dnsmasq[1580]: dnsmasq: syntax check OK.
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq[1627]: started, version 2.80 cachesize 2048
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq[1627]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq-dhcp[1627]: DHCP, IP range 192.168.6.1 -- 192.168.6.1, lease time 20m
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq-dhcp[1627]: DHCP, IP range 192.168.7.1 -- 192.168.7.1, lease time 20m
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq[1627]: reading /etc/resolv.conf
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq[1627]: using nameserver 192.168.1.2#53
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq[1627]: using nameserver 8.8.8.8#53
Feb 01 23:08:45 bbb-pwr01-ser09 dnsmasq[1627]: read /etc/hosts - 5 addresses
Feb 01 23:08:46 bbb-pwr01-ser09 systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server.

we can see what the board tried to do…

Regards,

Hi Robert,

I run your first command slightly modified:
journalctl | grep ‘sh[’
Jul 08 00:17:08 beaglebone sh[541]: generic-board-startup: [model=TI_AM335x_BeagleBone_Black_Wireless]
Jul 08 00:17:08 beaglebone sh[541]: generic-board-startup: [startup script=/opt/scripts/boot/am335x_evm.sh]
Jul 08 00:17:09 beaglebone sh[541]: am335x_evm: usb_image_file=[/var/cache/doc-beaglebone-getting-started/beaglebone-getting-started-2018-09-13.img]
Jul 08 00:17:09 beaglebone sshd[1311]: Server listening on 0.0.0.0 port 22.
Jul 08 00:17:09 beaglebone sshd[1311]: Server listening on :: port 22.
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: cpsw_0_mac: [F4:5E:AB:EC:B5:2D]
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: cpsw_1_mac: [F4:5E:AB:EC:B5:2F]
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: cpsw_2_mac: [F4:5E:AB:EC:B5:2E]
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: cpsw_3_mac: [F4:5E:AB:EC:B5:30]
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: cpsw_4_mac: [F4:5E:AB:EC:B5:31]
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: cpsw_5_mac: [F4:5E:AB:EC:B5:32]
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: use_libcomposite
Jul 08 00:17:11 beaglebone sh[541]: am335x_evm: modprobe libcomposite
Jul 08 00:17:12 beaglebone sh[541]: am335x_evm: Creating g_multi
Jul 08 00:17:12 beaglebone sh[541]: /opt/scripts/boot/am335x_evm.sh: 519: echo: echo: I/O error
Jul 08 00:17:13 beaglebone sh[541]: am335x_evm: enable USB mass_storage /var/local/bb_usb_mass_storage.img
Jul 08 00:17:14 beaglebone sh[541]: am335x_evm: g_multi Created
Jul 08 00:17:14 beaglebone sh[541]: am335x_evm: Starting usb0 network
Jul 08 00:17:15 beaglebone sh[541]: am335x_evm: Starting usb1 network

It seems missing the last line: Started dnsmasq

The second command returns empty

Best Regards,
David

The reason for slightly modifying the command is the command returns a lot of other messages in between. It is logged through my system start-up script. I don’t know those messages causing this issue or not. I can try to stop my script to see it works or not.

Thank you,
David

dnsmasq is the application that gives the downstream device over USB a valid IP address…

Regards,