My usb0 interface has suddenly stopped working and will not start properly.
Things were working well but after a power-off and reboot via SW2, usb0 no longer comes up.
Luckily I have a serial port adapter attached to the BBB J1. Otherwise I would be dead since I can no longer ssh into BBB from the host pc.
I am running the latest Debian image on a BBB with this kernel:
Linux beaglebone 4.4.52-bone16 #1 Tue Feb 28 06:56:05 UTC 2017 armv7l GNU/Linux
ifconfig usb shows:
usb0 Link encap:Ethernet HWaddr d0:5f:b8:d2:78:b6
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::d25f:b8ff:fed2:78b6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Note that there are NO RX/TX packets. This is the first clue.
Ethernet/RNDIS gadget (g_ether)
Used by: /opt/scripts/boot/autoconfigure_usb0.sh
iface usb0 inet static
Taking usb0 down gets:
debian@beaglebone:~$ sudo ifdown usb0
ifdown: interface usb0 not configured
Restarting networking gets:
debian@beaglebone:~$ sudo /etc/init.d/networking restart
Restarting networking (via systemctl): networking.serviceJob for networking.service failed because the control process exited with error code.
See “systemctl status networking.service” and “journalctl -xe” for details.
and systemctl status networking.service shows:
debian@beaglebone:~$ systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese
Active: failed (Result: exit-code) since Sat 2016-05-21 19:12:46 EDT; 35s ago
Main PID: 1910 (code=exited, status=1/FAILURE)
May 21 19:12:44 beaglebone systemd: Starting Raise network interfaces…
May 21 19:12:45 beaglebone ifup: RTNETLINK answers: File exists
May 21 19:12:45 beaglebone ifup: Failed to bring up usb0.
May 21 19:12:46 beaglebone systemd: networking.service: Main process exited,
May 21 19:12:46 beaglebone systemd: Failed to start Raise network interfaces.
May 21 19:12:46 beaglebone systemd: networking.service: Unit entered failed s
May 21 19:12:46 beaglebone systemd: networking.service: Failed with result 'e
lines 1-15/15 (END)
The message “Failed to start Raise network interfaces” is seen as boot messages scroll by on the console.
Any help would be greatly appreciated!!!