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
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 |
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.
> 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.
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
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
Mark
Can you try:
udhcpc -i eth0
opkg update
opkg install --force-reinstall dbus-1
ls -la dbus-daemon-launch-helper
regards,
Koen
Mark
Did it fix the permissions?
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
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
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...
On 12/12/2011 12:53 PM, Martin price wrote:
> I ran into the same issue after an upgrade/update. I was able to
> kludge together a solution that I'm fairly sure is not the right way
> to fix this, but it works for me for now. This creates a new systemd
> service to bring up the interfaces at boot. This might cause it's own
> issues, I'm not sure, sometimes connmand will use a lot of CPU for
> awhile after booting, I'm not sure if that's normal.
>
> cat> /lib/systemd/system/network.service<<EOF
> [Unit]
> Description=Start network
> 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
>
> # I'm trying to post this for a 2nd time because the first time did
> not appear to go through.
>
> On Dec 11, 3:57 am, sjmelhuish<si...@melhuish.info> wrote:
> I have the same issue. Is there an official fix for this yet?
enable networking manually, then do: opkg update ; opkg upgrade
> --
> You received this message because you are subscribed to the Google Groups "Beagle Board" group.
> To post to this group, send email to beagl...@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.
>
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 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
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:~#
> 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?
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.
Also I tried rebuilding the cloud9 image form source using "bitbake
cloud9-image", but got the following error message:
--snip--
| /etc/fstab entries need to be created with the user flag for the loop
devices like:
| /dev/loop2
/home/dlambert/src/beaglebone/setup-scripts/build/tmp-angstrom_2010_x-eglibc/work/beaglebone-angstrom-linux-gnueabi/cloud9-image-1.0-r0/tmp-mnt-boot
vfat user 0 0
NOTE: package cloud9-image-1.0-r0: task do_rootfs: Failed
ERROR: Task 8
(/home/dlambert/src/beaglebone/setup-scripts/sources/meta-ti/recipes-misc/images/cloud9-image.bb,
do_rootfs) failed with exit code '1'
ERROR:
'/home/dlambert/src/beaglebone/setup-scripts/sources/meta-ti/recipes-misc/images/cloud9-image.bb'
failed
The "bitbake systemd-image" seems to work fine, but I would like to get
an update cloud9 image.
Thanks.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/87fdf131-031a-4fd4-bd8f-dd7401132a19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.