BeagleBone - eth0 not coming up automatically

My BeagleBone has hit a snag - eth0 is no longer being started
automatically at boot.

If I log in through the serial console I can start it manually with
"ifup eth0"

All I've changed is to opkg update/upgrade and added a couple of
packages

Any idea what's upset the boot sequence? I have not changed /etc/
network/interfaces

Thanks

Same problem here, but I'm afraid I don't have a fix for it.

This is a new Beaglebone. First boot, eth0 came up normally, but
after running opkg update/upgrade and rebooting, eth0 didn't
autostart. I suspect the problem is that /etc/networking isn't being
run.

I think I'll download a fresh copy of the demo image to see what is
different.

Dan.

On a beaglebone I have the green LED doesn’t come on when I plug an ethernet cable to it. If I try to bring up the eth0 I get this error:







oot@beagleboard:~# ifup eth0
[ 443.413967]
[ 443.413978] CPSW phy found : id is : 0x7c0f1
[ 443.420794] PHY 0:01 not found
[ 443.425436] ADDRCONF(NETDEV_UP): eth0: link is not ready
eth0 no wireless extensions.






What can I do to address this?


Thanks


-Thanh
|

Can you please have a look at the dbus launch helper permission?

It should look like this:

root@beaglebone:~# ls -la /usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 root messagebus 187516 Nov 20 10:50 /usr/libexec/dbus-daemon-launch-helper

The "root messagebus" is the key thing to look for.

regards,

Koen

It did not work on my beaglebone.

root@beaglebone:/usr/libexec# ls -la dbus-daemon-launch-helper
-rwsr-xr-- 1 root 107 187516 Dec 8 15:16 dbus-daemon-launch-helper

Mark

It still does not come up even when I manually set the group to messagebus.

Mark

Can you try:

udhcpc -i eth0
opkg update
opkg install --force-reinstall dbus-1
ls -la dbus-daemon-launch-helper

regards,

Koen

Still not coming up after the dbus-1 reinstall.

Mark

Did it fix the permissions?

I ran into the same issue after an update/upgrade. After flailing
around for awhile, I kludged a fix that I'm fairly sure is not the
right way to do it, but it works for now. I created a new service for
systemd that just brings up all the interfaces. I've seen some other
strange things though where sometimes after booting connmand uses a
lot of cpu for awhile, I'm not sure if that's normal, I don't think it
is.

Here's how I created a service and added it to the boot sequence:

cat > /lib/systemd/system/network.service <<EOF
[Unit]
Description=Network interfaces
After=remount-rootfs.service

[Service]
RemainAfterExit=yes
ExecStart=/sbin/ifup -a
ExecStop=/sbin/ifdown -a

[Install]
WantedBy=basic.target
EOF

ln -s /lib/systemd/system/network.service /etc/systemd/system/
basic.target.wants/network.service

Yes it did.

The first time I ejected the BEAGLE_BOARD USB drive OS X (10.6.8) detected a new network interface and I was able to configure it and turn on OS X network sharing to the new network interface. On the Beaglebone side I configured the usb0 interface, routing, and nameservers and I was able to ping sites like yahoo.com. It seemed like USB networking was working.

When I tried "opkg update" that failed with wget bad address errors even though I was able to ping the address that was causing trouble. Some googling turned up similar issues that seem to be related to networking details that are beyond me.

Unfortunately, now after a Beaglebone reboot, OS X no longer auto detects the new network interface when I eject the USB drive and even worse my console hangs once the drive is ejected. The only permanent change I think I made was adding some nameservers to /etc/resolv.conf. Looking at it now, however, it seems that the changes I made to that file were not saved.

Any ideas on how I can get USB networking back and then eventually fix the opkg wget error?

Thanks,
-Scott

For me the dbus-daemon-launch-helper was as quoted to start with.

Then...

root@beaglebone:~# udhcpc -i eth0
udhcpc (v1.19.3) started
[ 179.320585]
[ 179.320593] CPSW phy found : id is : 0x7c0f1
[ 179.327344] PHY 0:01 not found
Sending discover...
Sending discover...
Sending discover...
Sending select for 192.168.1.78...
Lease of 192.168.1.78 obtained, lease time 86400
ip: RTNETLINK answers: File exists

[It hung here.]

root@beaglebone:~# opkg install --force-reinstall dbus-1
Removing package dbus-1 from root...
Stopping system message bus: You can force removal of packages with
failed prerm scripts with the option:
        --force-remove
No packages removed.
Package dbus-1 (1.4.16-r0) installed in root is up to date.

Collected errors:
* pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-
module-build.pm.list: No such file or directory.
* pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-
module-load.pm.list: No such file or directory.
* pkg_run_script: package "dbus-1" prerm script returned status 1.
* opkg_remove_pkg: not removing package "dbus-1", prerm script failed
* pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-
module-build.pm.list: No such file or directory.
* pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-
module-load.pm.list: No such file or directory.
root@beaglebone:~#

[After a forced remove...]

Installing dbus-1 (1.4.16-r0) to root...
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/base/dbus-1_1.4.16-r0_armv7a.ipk.
Running groupadd commands...
Note: group netdev already exists, not re-creating it
Running useradd commands...
Note: username messagebus already exists, not re-creating it
Configuring dbus-1.
Adding system startup for /etc/init.d/dbus-1.

root@beaglebone:~# ls -la /usr/libexec/dbus-daemon-launch-helper
-rwsr-xr-- 1 root messagebus 187516 Nov 20 18:24 /usr/libexec/dbus-
daemon-launch-helper

eth0 still doesn't come up after a reboot...

I have the same issue. Is there an official fix for this yet?
Thanks.

I have the same issue. Is there an official fix for this yet?

enable networking manually, then do: opkg update ; opkg upgrade

I have the same issue. Is there an official fix for this yet?

enable networking manually, then do: opkg update ; opkg upgrade

I tried this, but I did not get a successful update with the following errors. Also I am using the image from: http://www.angstrom-distribution.org/demo/beaglebone/ as the starting point.
Is this the correct starting point, or is there a more recent image I should be using?

Thanks.

root@beaglebone1:~# ifup -a
[ 125.938093]
[ 125.938103] CPSW phy found : id is : 0x7c0f1
[ 125.945051] PHY 0:01 not found
udhcpc (v1.19.3) started
Sending discover...
Sending select for 192.168.1.47...
Lease of 192.168.1.47 obtained, lease time 3600
adding dns 68.87.85.98
adding dns 68.87.69.146
root@beaglebone1:~# opkg update ; opkg upgrade
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/base/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/base/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/base.
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/machine/beaglebone/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/machine/beaglebone/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/beaglebone.
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/debug/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/debug/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/debug.
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/gstreamer/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/gstreamer/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/gstreamer.
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/all/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/all/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/no-arch.
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/perl/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/perl/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/perl.
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/python/Packages.gz.
Inflating http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/python/Packages.gz.
Updated list of available packages in /var/lib/opkg/lists/python.
Upgrading iw on root from 0.9.20-r0 to 3.2-r1...
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/base/iw_3.2-r1_armv7a.ipk.
Installing libnl-3-200 (3.2.3-r0) to root...
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/base/libnl-3-200_3.2.3-r0_armv7a.ipk.
Upgrading wpa-supplicant on root from 0.7.3-r5 to 0.7.3-r6...
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/base/wpa-supplicant_0.7.3-r6_armv7a.ipk.
Installing libnl-3-200 (3.2.3-r0) to root...
Upgrading shadow on root from 4.1.4.3-r5 to 4.1.4.3-r6...
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/machine/beaglebone/shadow_4.1.4.3-r6_beaglebone.ipk.
Upgrading shadow-dev on root from 4.1.4.3-r5 to 4.1.4.3-r6...
Downloading http://feeds.angstrom-distribution.org/feeds/core/ipk/eglibc/armv7a/machine/beaglebone/shadow-dev_4.1.4.3-r6_beaglebone.ipk.
shadow-dev: unsatisfied recommendation for pam-plugin-mail-dev
shadow-dev: unsatisfied recommendation for pam-plugin-motd-dev
shadow-dev: unsatisfied recommendation for libpam-runtime-dev
shadow-dev: unsatisfied recommendation for pam-plugin-env-dev
shadow-dev: unsatisfied recommendation for pam-plugin-shells-dev
shadow-dev: unsatisfied recommendation for pam-plugin-limits-dev
shadow-dev: unsatisfied recommendation for pam-plugin-group-dev
shadow-dev: unsatisfied recommendation for pam-plugin-securetty-dev
shadow-dev: unsatisfied recommendation for pam-plugin-lastlog-dev
shadow-dev: unsatisfied recommendation for pam-plugin-nologin-dev
shadow-dev: unsatisfied recommendation for pam-plugin-faildelay-dev
shadow-dev: unsatisfied recommendation for pam-plugin-rootok-dev
Upgrading shadow on root from 4.1.4.3-r5 to 4.1.4.3-r6...
Collected errors:
  * pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-module-build.pm.list: No such file or directory.
  * pkg_get_installed_files: Failed to open //var/lib/opkg/info/perl-module-load.pm.list: No such file or directory.
  * check_data_file_clashes: Package libnl-3-200 wants to install file /etc/libnl/pktloc
     But that file is already provided by package * libnl2
  * check_data_file_clashes: Package libnl-3-200 wants to install file /etc/libnl/pktloc
     But that file is already provided by package * libnl2
  * check_data_file_clashes: Package shadow wants to install file /etc/login.defs
     But that file is already provided by package * shadow-sysroot
  * check_data_file_clashes: Package shadow wants to install file /etc/login.defs
     But that file is already provided by package * shadow-sysroot
root@beaglebone1:~# reboot
[ 164.067308] connmand[104]: Aborting (signal 11) [/usr/sbin/connmand]
[ 164.669065] systemd-cgroups-agent[439]: Failed to get D-Bus connection: Failed to connect to socket /org/freedesktop/systemd1/private: Connection refused
Sending SIGTERM to remaining processes...
Sending SIGKILL to remaining processes...
Unmounting file systems.
Unmounted /sys/kernel/debug.
Unmounted /dev/mqueue.
Disabling swaps.
Detaching loop devices.
Detaching DM devices.
[ 167.605445] Restarting system.

U-Boot SPL 2011.09-00000-gf63b270-dirty (Nov 14 2011 - 10:37:14)
Texas Instruments Revision detection unimplemented
No AC power, disabling frequency switch
OMAP SD/MMC: 0
reading u-boot.img

U-Boot 2011.09-00000-gf63b270-dirty (Nov 14 2011 - 10:37:14)

I2C: ready
DRAM: 256 MiB
No daughter card present
NAND: HW ECC Hamming Code selected
No NAND device found!!!
0 MiB
MMC: OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

Net: cpsw
Hit any key to stop autoboot: 1 0
SD/MMC found on device 0
reading uEnv.txt

33 bytes read
Loaded environment from uEnv.txt
Importing environment from mmc ...
reading uImage

3031456 bytes read
## Booting kernel from Legacy Image at 80007fc0 ...
    Image Name: Angstrom/3.1/beaglebone
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3031392 Bytes = 2.9 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    XIP Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.067533] omap_l3_smx omap_l3_smx.0: couldn't find resource
[ 0.244331] _omap_mux_get_by_name: Could not find signal leds-gpio
[ 0.313716] omap2_set_init_voltage: unable to get clk dpll1_ck
[ 0.319875] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 0.326022] omap2_set_init_voltage: unable to get clk l3_ick
[ 0.332023] omap2_set_init_voltage: unable to set vdd_core
systemd-fsck[57]: Angstrom-Cloud9-: clean, 28026/874496 files, 983101/3494137 blocks (check in 2 mounts)
[ 2.254285] /usr/sbin/crond[90]: (CRON) INFO (Syslog will be used instead of sendmail.): No such file or directory

.---O---.

      > .-. o o
  > >-----.-----.-----.| | .----..-----.-----.
      > > __ | ---'| '--.| .-'| | |
  > > > > >--- || --'| | | ' | | | |

'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
                 -' |
                 '---'

The Angstrom Distribution beaglebone1 ttyO0

Angstrom v2011.12-core - Kernel 3.1.0+

beaglebone1 login: root
root@beaglebone1:~# ifconfig
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:16436 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:0
           RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

root@beaglebone1:~#

The latest image I'm aware of, containing the eth0 and connmand fixes,
is http://dominion.thruhere.net/koen/angstrom/beaglebone/Angstrom-Cloud9-IDE-eglibc-ipk-v2011.12-core-beaglebone-2011.12.13.img.gz
. I believe it is a test release for these issues.

I am having the same issue. Before I go reimage, have you confirmed
that the test release fixes the problem?

It did fix it for me, yes.

On my A3 the Angstrom-Cloud9-IDE-eglibc-ipk-v2011.12-core-
beaglebone-2011.12.13.img.gz build did not fix the problem. Also I
still have the problem after an opkg update/upgrade.
Running /etc/init.d/networking restart after it's booted reconfigs
eth0 correctly using /etc/network/interfaces settings and everything
is fine (well /etc/resolv.conf needs re-editing every time still too).