The Ethernet adapter on my Beaglebone Black board is disabled by default when I have a USB WiFi adapter connected to the board. The WiFi adapter works great, but the wired adapter is down by default (in conflict with the network configuration). My expectation is that both adapters would be active. This might be related to a recent defect in the Ubuntu 13.04 kernels (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1112652). I’ve not tried the new Ubuntu 13.04 eMMC image dated 2013-08-24. Any ideas how to resolve this?
Here is the setup I’ve been using:
Hardware: Beaglebone Black
OS: eMMC Ubuntu image dated 2013-07-22 (v3.8.13-bone24 kernel)
USB device info:
$ lsusb
Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Network status upon bootup:
$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 90:59:af:58:60:a3
BROADCAST 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
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:56
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:367 errors:0 dropped:0 overruns:0 frame:0
TX packets:367 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27617 (27.6 KB) TX bytes:27617 (27.6 KB)
usb0 Link encap:Ethernet HWaddr 76:4f:e8:78:c2:ac
inet addr:192.168.7.2 Bcast:192.168.7.3 Mask:255.255.255.252
inet6 addr: fe80::744f:e8ff:fe78:c2ac/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
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:0f:54:12:5c:d9
inet addr:10.201.5.6 Bcast:10.255.255.255 Mask:255.0.0.0
inet6 addr: fe80::20f:54ff:fe12:5cd9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4329 errors:0 dropped:0 overruns:0 frame:0
TX packets:4918 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:768322 (768.3 KB) TX bytes:581717 (581.7 KB)
Network configuration:
$ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 10.201.5.6
netmask 255.0.0.0
wireless-mode ad-hoc
wireless-channel 1
wireless-essid XXXXXX
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Power settings for eth0 in the /sys virtual directory:
$ cat /sys/class/net/eth0/power/control
auto
The WiFi adapter comes up without any issues, but the Ethernet adapter on eth0 is down by default. Running ‘sudo ifup eth0’ brings it up, but that should not be necessary:
$ sudo ifup eth0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/90:59:af:58:60:a3
Sending on LPF/eth0/90:59:af:58:60:a3
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0xf763521)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0xf763521)
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 (xid=0xf763521)
DHCPREQUEST of 192.168.1.94 on eth0 to 255.255.255.255 port 67 (xid=0xf763521)
DHCPOFFER of 192.168.1.94 from 192.168.1.254
DHCPACK of 192.168.1.94 from 192.168.1.254
bound to 192.168.1.94 – renewal in 36931 seconds.
ssh stop/waiting
ssh start/running, process 3462
The only kernel output related to eth0 is after running ‘ifup’:
$ dmesg | grep eth0
[ 65.706802] net eth0: initializing cpsw version 1.12 (0)
[ 65.711060] net eth0: phy found : id is : 0x7c0f1
[ 65.716300] net eth0: phy 4a101000.mdio:01 not found on slave 1
[ 65.732784] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 68.787859] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready