[meta-freescale] static ip

Alvaro Martinez Tovar alvaromartineztovar at yahoo.es
Mon Jul 20 00:44:05 PDT 2015


Thank you very much for your advice! I am trying to understand initialization process according to your indications.Regards from Spain
 
      De: Bob Cochran <yocto at mindchasers.com>
 Para: Alvaro Martinez Tovar <alvaromartineztovar at yahoo.es>; Wally Yeh <wally.yeh at atrustcorp.com> 
CC: "meta-freescale at yoctoproject.org" <meta-freescale at yoctoproject.org> 
 Enviado: Viernes 17 de julio de 2015 2:24
 Asunto: Re: [meta-freescale] static ip
   
On 07/16/2015 06:03 AM, Alvaro Martinez Tovar wrote:
> Sorry for I am a newbie with little experience in linux, and may ask for
> obvious solutions ....
> How can I know whether it is executed or not and when it is executed?
> Regards,
> alvaro
>
> ------------------------------------------------------------------------
> *De:* Wally Yeh <wally.yeh at atrustcorp.com>
> *Para:*
> *CC:* "meta-freescale at yoctoproject.org" <meta-freescale at yoctoproject.org>
> *Enviado:* Jueves 16 de julio de 2015 10:31
> *Asunto:* Re: [meta-freescale] static ip
>
>  > After boot, this is what I can see with ifconfig eth0 command:
>  > NO static ip is set on eth0 for inet
>  >
>  > eth0      Link encap:Ethernet  HWaddr 00:04:9F:03:9F:FD
>  >          inet6 addr: fe80::204:9fff:fe03:9ffd/64 Scope:Link
>  >          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>  >          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>  >          TX packets:19 errors:0 dropped:0 overruns:0 carrier:0
>  >          collisions:0 txqueuelen:1000
>  >          RX bytes:0 (0.0 B)  TX bytes:4642 (4.5 KiB)
>  >
>  > However, if I execute:
>  > /etc/init.d/networking restart
>  > everything seems to work and I can connect to static ip
>  >
>  > Any suggestion will be very appreciated.
>  > Thank you in advance
>
> it seems like /etc/init.d/networking is not executed at boot or
> executed when bad timing.


Since you say you're new to Linux, the following might be helpful to 
know in debugging your init scripts:


You can add a "set -x"  to the top of your networking script to see what 
it's doing and how it's evaluating the conditional logic in the script ( 
don't actually include the quotes ).

Add some additional echo statements in your scripts to help you figure 
out what's going on.  You can also do the same with other scripts in 
the init.d directory.

You're probably booting up at runlevel 5 ( see inittab ).  You can see 
the order of your initscripts booting by looking in the /etc/rc5.d 
directory.  You can also play around with the ordering of initialization 
by changing the prefix number of the file names ( they are symbolic 
links back to the /etc/init.d directory.





>
> Wally
>
>
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale at yoctoproject.org <mailto:meta-freescale at yoctoproject.org>


> https://lists.yoctoproject.org/listinfo/meta-freescale
>
>
>
>



  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20150720/27e7cdd4/attachment.html>


More information about the meta-freescale mailing list