All of lore.kernel.org
 help / color / mirror / Atom feed
* using initramfs with openembedded.
@ 2010-02-22 22:29 C Michael Sundius
  2010-02-23  9:03 ` Koen Kooi
  0 siblings, 1 reply; 4+ messages in thread
From: C Michael Sundius @ 2010-02-22 22:29 UTC (permalink / raw)
  To: openembedded-devel

We'd like to put our initial boottime file system into the initramfs in the
kernel. But we also need to build some separate drivers to put into that
filesystem image.

Of course we can't build those drivers without the kernel staging dir
populated. (which doesn't happen until after the build of the kernel).

Has anyone run into this problem? how did you solve it? do I need to stage
the headerfiles and config info before the kernel build?

maybe this problem is solved some other way.. I haven't really tried this so
I'm just speculating here.

If anyone has some experience with this it would be great to hear how to go
about this. thanks for you help

Mike


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

* Re: using initramfs with openembedded.
  2010-02-22 22:29 using initramfs with openembedded C Michael Sundius
@ 2010-02-23  9:03 ` Koen Kooi
  2010-02-23  9:19   ` Graeme Gregory
  2010-03-02 22:42   ` C Michael Sundius
  0 siblings, 2 replies; 4+ messages in thread
From: Koen Kooi @ 2010-02-23  9:03 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22-02-10 23:29, C Michael Sundius wrote:
> We'd like to put our initial boottime file system into the initramfs in the
> kernel. But we also need to build some separate drivers to put into that
> filesystem image.
> 
> Of course we can't build those drivers without the kernel staging dir
> populated. (which doesn't happen until after the build of the kernel).
> 
> Has anyone run into this problem? how did you solve it? do I need to stage
> the headerfiles and config info before the kernel build?
> 
> maybe this problem is solved some other way.. I haven't really tried this so
> I'm just speculating here.
> 
> If anyone has some experience with this it would be great to hear how to go
> about this. thanks for you help

The common way right now is to use 2 kernel recipes. Not an optimal
situation, but it will get you there.

regards,

Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFLg5n3MkyGM64RGpERAt6HAJ95plgifYy7yqC6mjovarzuokEPjwCgg0R1
d8Lfns4Aq/S9rwyV930RjME=
=2fyI
-----END PGP SIGNATURE-----




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

* Re: using initramfs with openembedded.
  2010-02-23  9:03 ` Koen Kooi
@ 2010-02-23  9:19   ` Graeme Gregory
  2010-03-02 22:42   ` C Michael Sundius
  1 sibling, 0 replies; 4+ messages in thread
From: Graeme Gregory @ 2010-02-23  9:19 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Feb 23, 2010 at 10:03:51AM +0100, Koen Kooi wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 22-02-10 23:29, C Michael Sundius wrote:
> > We'd like to put our initial boottime file system into the initramfs in the
> > kernel. But we also need to build some separate drivers to put into that
> > filesystem image.
> > 
> > Of course we can't build those drivers without the kernel staging dir
> > populated. (which doesn't happen until after the build of the kernel).
> > 
> > Has anyone run into this problem? how did you solve it? do I need to stage
> > the headerfiles and config info before the kernel build?
> > 
> > maybe this problem is solved some other way.. I haven't really tried this so
> > I'm just speculating here.
> > 
> > If anyone has some experience with this it would be great to hear how to go
> > about this. thanks for you help
> 
> The common way right now is to use 2 kernel recipes. Not an optimal
> situation, but it will get you there.
> 

I think it should be possible to write an initramfs.bbclass and use
BBCLASSEXTEND to make it simpler.

Graeme




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

* Re: using initramfs with openembedded.
  2010-02-23  9:03 ` Koen Kooi
  2010-02-23  9:19   ` Graeme Gregory
@ 2010-03-02 22:42   ` C Michael Sundius
  1 sibling, 0 replies; 4+ messages in thread
From: C Michael Sundius @ 2010-03-02 22:42 UTC (permalink / raw)
  To: openembedded-devel

On Tue, Feb 23, 2010 at 1:03 AM, Koen Kooi <k.kooi@student.utwente.nl>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 22-02-10 23:29, C Michael Sundius wrote:
> > We'd like to put our initial boottime file system into the initramfs in
> the
> > kernel. But we also need to build some separate drivers to put into that
> > filesystem image.
> >
>
> The common way right now is to use 2 kernel recipes. Not an optimal
> situation, but it will get you there.
>
> Back to this question, using two kernel recipes would create two machine
specific directories under tmp/work/

tmp/work/boot-kenrel/(kernel and modues)
tmp/work/run-time-kenrel/(kernel and modules)

so we'd still have to build all the modules twice too... is that right? I
guess we'd install the boot-modules into the initramfs, and throw away that
kernel.

then we'd link the initramfs into the runtime kenrel.

finally we'd install the runtime modules into the runtime filesystem....


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

end of thread, other threads:[~2010-03-02 22:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-22 22:29 using initramfs with openembedded C Michael Sundius
2010-02-23  9:03 ` Koen Kooi
2010-02-23  9:19   ` Graeme Gregory
2010-03-02 22:42   ` C Michael Sundius

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.