Openembedded Core Discussions
 help / color / mirror / Atom feed
* Re: [poky] Early image startup
       [not found] <4D9F0B82.9080803@mlbassoc.com>
@ 2011-04-08 13:30 ` Koen Kooi
  2011-04-08 13:50   ` Richard Purdie
  0 siblings, 1 reply; 7+ messages in thread
From: Koen Kooi @ 2011-04-08 13:30 UTC (permalink / raw)
  To: Gary Thomas; +Cc: openembedded-core oe-core layer


Op 8 apr 2011, om 15:20 heeft Gary Thomas het volgende geschreven:

> I have a Poky image which uses a number of kernel modules.  For
> whatever reason, the raw image has not had the modules configured
> (no /lib/modules/.../modules.dep)  This file is created by 'update-modules'
> but that is run too late in the boot process.  The problem is that
> other code, e.g. I'm using iptables via modules, requires the modules
> be configured early and this fails.  If I reboot (after 'update-modules'
> has run), everything is fine.

Sound like you need http://patches.openembedded.org/patch/1917/



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [poky] Early image startup
  2011-04-08 13:30 ` [poky] Early image startup Koen Kooi
@ 2011-04-08 13:50   ` Richard Purdie
  2011-04-08 14:01     ` Gary Thomas
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Purdie @ 2011-04-08 13:50 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, 2011-04-08 at 15:30 +0200, Koen Kooi wrote:
> Op 8 apr 2011, om 15:20 heeft Gary Thomas het volgende geschreven:
> 
> > I have a Poky image which uses a number of kernel modules.  For
> > whatever reason, the raw image has not had the modules configured
> > (no /lib/modules/.../modules.dep)  This file is created by 'update-modules'
> > but that is run too late in the boot process.  The problem is that
> > other code, e.g. I'm using iptables via modules, requires the modules
> > be configured early and this fails.  If I reboot (after 'update-modules'
> > has run), everything is fine.
> 
> Sound like you need http://patches.openembedded.org/patch/1917/

To be honest that sounds like a more fundamental problem as if the user
cares which rtc should be rtc0, there are other ordering constraints
being imposed such as a symlink to the "best" rtc device...

Cheers,

Richard




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [poky] Early image startup
  2011-04-08 13:50   ` Richard Purdie
@ 2011-04-08 14:01     ` Gary Thomas
  2011-04-08 14:07       ` Gary Thomas
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2011-04-08 14:01 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer

On 04/08/2011 07:50 AM, Richard Purdie wrote:
> On Fri, 2011-04-08 at 15:30 +0200, Koen Kooi wrote:
>> Op 8 apr 2011, om 15:20 heeft Gary Thomas het volgende geschreven:
>>
>>> I have a Poky image which uses a number of kernel modules.  For
>>> whatever reason, the raw image has not had the modules configured
>>> (no /lib/modules/.../modules.dep)  This file is created by 'update-modules'
>>> but that is run too late in the boot process.  The problem is that
>>> other code, e.g. I'm using iptables via modules, requires the modules
>>> be configured early and this fails.  If I reboot (after 'update-modules'
>>> has run), everything is fine.
>>
>> Sound like you need http://patches.openembedded.org/patch/1917/
>
> To be honest that sounds like a more fundamental problem as if the user
> cares which rtc should be rtc0, there are other ordering constraints
> being imposed such as a symlink to the "best" rtc device...

Indeed, this patch did not help my situation at all.

I think my problem is that of post-install package scripts (hence
'Configuring ...') not being run until quite late.

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [poky] Early image startup
  2011-04-08 14:01     ` Gary Thomas
@ 2011-04-08 14:07       ` Gary Thomas
  2011-04-08 14:17         ` Gary Thomas
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2011-04-08 14:07 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 04/08/2011 08:01 AM, Gary Thomas wrote:
> On 04/08/2011 07:50 AM, Richard Purdie wrote:
>> On Fri, 2011-04-08 at 15:30 +0200, Koen Kooi wrote:
>>> Op 8 apr 2011, om 15:20 heeft Gary Thomas het volgende geschreven:
>>>
>>>> I have a Poky image which uses a number of kernel modules. For
>>>> whatever reason, the raw image has not had the modules configured
>>>> (no /lib/modules/.../modules.dep) This file is created by 'update-modules'
>>>> but that is run too late in the boot process. The problem is that
>>>> other code, e.g. I'm using iptables via modules, requires the modules
>>>> be configured early and this fails. If I reboot (after 'update-modules'
>>>> has run), everything is fine.
>>>
>>> Sound like you need http://patches.openembedded.org/patch/1917/
>>
>> To be honest that sounds like a more fundamental problem as if the user
>> cares which rtc should be rtc0, there are other ordering constraints
>> being imposed such as a symlink to the "best" rtc device...
>
> Indeed, this patch did not help my situation at all.
>
> I think my problem is that of post-install package scripts (hence
> 'Configuring ...') not being run until quite late.

Looking at the pre-run image, I see that there is /etc/rcS.d/S98configure
which runs these scripts.  Is there any reason I can't move it earlier?

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [poky] Early image startup
  2011-04-08 14:07       ` Gary Thomas
@ 2011-04-08 14:17         ` Gary Thomas
  2011-04-08 16:40           ` Hatle, Mark
  0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2011-04-08 14:17 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On 04/08/2011 08:07 AM, Gary Thomas wrote:
> On 04/08/2011 08:01 AM, Gary Thomas wrote:
>> On 04/08/2011 07:50 AM, Richard Purdie wrote:
>>> On Fri, 2011-04-08 at 15:30 +0200, Koen Kooi wrote:
>>>> Op 8 apr 2011, om 15:20 heeft Gary Thomas het volgende geschreven:
>>>>
>>>>> I have a Poky image which uses a number of kernel modules. For
>>>>> whatever reason, the raw image has not had the modules configured
>>>>> (no /lib/modules/.../modules.dep) This file is created by 'update-modules'
>>>>> but that is run too late in the boot process. The problem is that
>>>>> other code, e.g. I'm using iptables via modules, requires the modules
>>>>> be configured early and this fails. If I reboot (after 'update-modules'
>>>>> has run), everything is fine.
>>>>
>>>> Sound like you need http://patches.openembedded.org/patch/1917/
>>>
>>> To be honest that sounds like a more fundamental problem as if the user
>>> cares which rtc should be rtc0, there are other ordering constraints
>>> being imposed such as a symlink to the "best" rtc device...
>>
>> Indeed, this patch did not help my situation at all.
>>
>> I think my problem is that of post-install package scripts (hence
>> 'Configuring ...') not being run until quite late.
>
> Looking at the pre-run image, I see that there is /etc/rcS.d/S98configure
> which runs these scripts. Is there any reason I can't move it earlier?

Found it:
   ipk systems - meta/recipes-devtools/opkg/opkg_0.1.8.bb
   rpm systems - meta/classes/rootfs_rpm.bbclass

Note: the ipk version is quasi-configurable, the rpm version hardwired at 98.
Since these are package install scripts, which presumable could have been run
at image creation time but needed to run on the target hardware, why put it
off to so late?  I would think that this should be done _first_, not _last_

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [poky] Early image startup
  2011-04-08 14:17         ` Gary Thomas
@ 2011-04-08 16:40           ` Hatle, Mark
  2011-04-08 17:03             ` Gary Thomas
  0 siblings, 1 reply; 7+ messages in thread
From: Hatle, Mark @ 2011-04-08 16:40 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer
  Cc: Patches and discussions about the oe-core layer

As for the rpm ordering this was preserved from an earlier version.  If there is a more appropriate place to run the late configuration scripts, let's move it.  I think that it's likely a good place to move it to soon after the filesystem has been mounted RW.  Do any of the scripts normally require networking or other system resources?



On Apr 8, 2011, at 7:18 AM, "Gary Thomas" <gary@mlbassoc.com> wrote:

> On 04/08/2011 08:07 AM, Gary Thomas wrote:
>> On 04/08/2011 08:01 AM, Gary Thomas wrote:
>>> On 04/08/2011 07:50 AM, Richard Purdie wrote:
>>>> On Fri, 2011-04-08 at 15:30 +0200, Koen Kooi wrote:
>>>>> Op 8 apr 2011, om 15:20 heeft Gary Thomas het volgende geschreven:
>>>>> 
>>>>>> I have a Poky image which uses a number of kernel modules. For
>>>>>> whatever reason, the raw image has not had the modules configured
>>>>>> (no /lib/modules/.../modules.dep) This file is created by 'update-modules'
>>>>>> but that is run too late in the boot process. The problem is that
>>>>>> other code, e.g. I'm using iptables via modules, requires the modules
>>>>>> be configured early and this fails. If I reboot (after 'update-modules'
>>>>>> has run), everything is fine.
>>>>> 
>>>>> Sound like you need http://patches.openembedded.org/patch/1917/
>>>> 
>>>> To be honest that sounds like a more fundamental problem as if the user
>>>> cares which rtc should be rtc0, there are other ordering constraints
>>>> being imposed such as a symlink to the "best" rtc device...
>>> 
>>> Indeed, this patch did not help my situation at all.
>>> 
>>> I think my problem is that of post-install package scripts (hence
>>> 'Configuring ...') not being run until quite late.
>> 
>> Looking at the pre-run image, I see that there is /etc/rcS.d/S98configure
>> which runs these scripts. Is there any reason I can't move it earlier?
> 
> Found it:
>  ipk systems - meta/recipes-devtools/opkg/opkg_0.1.8.bb
>  rpm systems - meta/classes/rootfs_rpm.bbclass
> 
> Note: the ipk version is quasi-configurable, the rpm version hardwired at 98.
> Since these are package install scripts, which presumable could have been run
> at image creation time but needed to run on the target hardware, why put it
> off to so late?  I would think that this should be done _first_, not _last_
> 
> -- 
> ------------------------------------------------------------
> Gary Thomas                 |  Consulting for the
> MLB Associates              |    Embedded world
> ------------------------------------------------------------
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [poky] Early image startup
  2011-04-08 16:40           ` Hatle, Mark
@ 2011-04-08 17:03             ` Gary Thomas
  0 siblings, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2011-04-08 17:03 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Poky Project

On 04/08/2011 10:40 AM, Hatle, Mark wrote:
> As for the rpm ordering this was preserved from an earlier version.  If there is a more appropriate place to run the late configuration scripts, let's move it.  I think that it's likely a good place to move it to soon after the filesystem has been mounted RW.  Do any of the scripts normally require networking or other system resources?

Hard to say what's perfect, but I certainly don't believe that they need
to be put off to the very last.   In any case, I think the best thing is
to make it easily adjustable, per my patch.

Can we please keep this discussion on the Poky list where it started?
It seems that OE (and maybe OE-core) handle this differently - I've not
looked in depth - and I'm mostly interested in getting my Poky builds
healthy.

> On Apr 8, 2011, at 7:18 AM, "Gary Thomas"<gary@mlbassoc.com>  wrote:
>
>> On 04/08/2011 08:07 AM, Gary Thomas wrote:
>>> On 04/08/2011 08:01 AM, Gary Thomas wrote:
>>>> On 04/08/2011 07:50 AM, Richard Purdie wrote:
>>>>> On Fri, 2011-04-08 at 15:30 +0200, Koen Kooi wrote:
>>>>>> Op 8 apr 2011, om 15:20 heeft Gary Thomas het volgende geschreven:
>>>>>>
>>>>>>> I have a Poky image which uses a number of kernel modules. For
>>>>>>> whatever reason, the raw image has not had the modules configured
>>>>>>> (no /lib/modules/.../modules.dep) This file is created by 'update-modules'
>>>>>>> but that is run too late in the boot process. The problem is that
>>>>>>> other code, e.g. I'm using iptables via modules, requires the modules
>>>>>>> be configured early and this fails. If I reboot (after 'update-modules'
>>>>>>> has run), everything is fine.
>>>>>>
>>>>>> Sound like you need http://patches.openembedded.org/patch/1917/
>>>>>
>>>>> To be honest that sounds like a more fundamental problem as if the user
>>>>> cares which rtc should be rtc0, there are other ordering constraints
>>>>> being imposed such as a symlink to the "best" rtc device...
>>>>
>>>> Indeed, this patch did not help my situation at all.
>>>>
>>>> I think my problem is that of post-install package scripts (hence
>>>> 'Configuring ...') not being run until quite late.
>>>
>>> Looking at the pre-run image, I see that there is /etc/rcS.d/S98configure
>>> which runs these scripts. Is there any reason I can't move it earlier?
>>
>> Found it:
>>   ipk systems - meta/recipes-devtools/opkg/opkg_0.1.8.bb
>>   rpm systems - meta/classes/rootfs_rpm.bbclass
>>
>> Note: the ipk version is quasi-configurable, the rpm version hardwired at 98.
>> Since these are package install scripts, which presumable could have been run
>> at image creation time but needed to run on the target hardware, why put it
>> off to so late?  I would think that this should be done _first_, not _last_
>>
>> --
>> ------------------------------------------------------------
>> Gary Thomas                 |  Consulting for the
>> MLB Associates              |    Embedded world
>> ------------------------------------------------------------
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-04-08 17:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4D9F0B82.9080803@mlbassoc.com>
2011-04-08 13:30 ` [poky] Early image startup Koen Kooi
2011-04-08 13:50   ` Richard Purdie
2011-04-08 14:01     ` Gary Thomas
2011-04-08 14:07       ` Gary Thomas
2011-04-08 14:17         ` Gary Thomas
2011-04-08 16:40           ` Hatle, Mark
2011-04-08 17:03             ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox