[yocto] Losing Ethernet after reboot

Gary Thomas gary at mlbassoc.com
Tue Mar 18 10:51:55 PDT 2014


On 2014-03-18 11:14, Rick Bianchi wrote:
> 1. Yes, I do have init-ifupdown on the target.
> 
> 2. No, I have not made any changes to the INITSCRIPT_PARAMS.
> 

OK, you must be using an older release/branch as this was recently changed.

You can try tracing the bootup to see if/when the networking is started:
Make this change & reboot.
  root at everest-p36:~# sed -i s/VERBOSE=no/VERBOSE=very/ /etc/default/rcS
This will print a line indicating which init scripts are run, etc.

Also, what happens if you try to bring up your network using 'ifup eth0'
instead of 'ifconfig eth0 up;udhcpc eth0'?

> On Tue, Mar 18, 2014 at 10:11 AM, Gary Thomas <gary at mlbassoc.com <mailto:gary at mlbassoc.com>> wrote:
> 
>     On 2014-03-18 10:58, Rick Bianchi wrote:
>     > ls -l /etc/rc*/S*networking  only gives me the following:
>     >
>     > lrwxrwxrwx 1 root root 20 Mar 14 2014 /etc/rcS.d/S40networking -> ../init.d/networking
> 
>     Looks like something changed the init scripts settings.  These are in the file
>       .../meta/recipes-core/init-ifupdown/init-ifupdown_1.0.bb <http://init-ifupdown_1.0.bb>:
>         INITSCRIPT_NAME = "networking"
>         INITSCRIPT_PARAMS = "start 01 2 3 4 5 . stop 80 0 6 1 ."
> 
>     I presume that you have a init-ifupdown_1.0.bbappend file for your target?
>     Are you changing the INITSCRIPT_PARAMS perhaps?
> 
>     > On Tue, Mar 18, 2014 at 9:56 AM, Gary Thomas <gary at mlbassoc.com <mailto:gary at mlbassoc.com> <mailto:gary at mlbassoc.com <mailto:gary at mlbassoc.com>>> wrote:
>     >
>     >     On 2014-03-18 10:42, Rick Bianchi wrote:
>     >     > Sorry typing on the fly. Here is what is in interfaces:
>     >     > auto eth0
>     >     > iface eth0 inet dhcp
>     >
>     >     Are you using systemd or sysvinit?
>     >
>     >     I use sysvinit and have these init script settings that start the network:
>     >     root at everest-p36:~# ls -l /etc/rc*/S*networking
>     >     lrwxrwxrwx 1 root root 20 Mar 18 15:58 /etc/rc2.d/S01networking -> ../init.d/networking
>     >     lrwxrwxrwx 1 root root 20 Mar 18 15:58 /etc/rc3.d/S01networking -> ../init.d/networking
>     >     lrwxrwxrwx 1 root root 20 Mar 18 15:58 /etc/rc4.d/S01networking -> ../init.d/networking
>     >     lrwxrwxrwx 1 root root 20 Mar 18 15:58 /etc/rc5.d/S01networking -> ../init.d/networking
>     >
>     >     >
>     >     >
>     >     > On Tue, Mar 18, 2014 at 9:17 AM, Gary Thomas <gary at mlbassoc.com <mailto:gary at mlbassoc.com> <mailto:gary at mlbassoc.com <mailto:gary at mlbassoc.com>> <mailto:gary at mlbassoc.com <mailto:gary at mlbassoc.com>
>     <mailto:gary at mlbassoc.com <mailto:gary at mlbassoc.com>>>> wrote:
>     >     >
>     >     >     On 2014-03-18 10:10, Rick Bianchi wrote:
>     >     >     >
>     >     >     > I losing Ethernet after every reboot. What is the process to have it come up manually?
>     >     >     >
>     >     >     > Image: Dylan gumstix-console
>     >     >     >
>     >     >     > I have already added eth0 auto to my /etc/network/interfaces.
>     >     >
>     >     >     Shouldn't this line read
>     >     >       auto eth0
>     >     >     not the other way around?
>     >     >
>     >     >     > At the moment I need to run the following after every reboot:
>     >     >     >
>     >     >     > ifconfig eth0 up
>     >     >     > udhcpc eth0

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list