[oe] initramfs image with secondary cramfs inside

Phil Blundell philb at gnu.org
Tue Feb 9 18:45:15 UTC 2010


On Mon, 2010-02-08 at 18:37 -0600, John Van Horne (vanhorj) wrote:
> The system I'm working on boots up with an initramfs image which
> contains a very minimal file system. During the boot process, a second
> file system image, in cramfs format, is mounted and used as the root
> file system. Does anyone have any experience using OE to build such an
> image? My approach to this was to have a recipe for the cramfs image and
> a recipe for the initramfs image, and to list the cramfs image as a
> dependency of the initramfs recipe. Both of these recipes inherit the
> image class. However, running bitbake on the initramfs recipe fails
> because the cramfs do_rootfs and do_deploy_to tasks have not run. After
> running bitbake with debug info turned on, it seems that the initramfs
> recipe depends upon the do_populate_stage task of cramfs, but not
> do_rootfs and do_deploy_to. Could anyone offer any insight into why this
> is?

The default is to depend on populate_staging because the output from
that task is, in general, what other packages need in order to build.
But you can make your recipe depend on another task if you want; try (in
your initramfs recipe):

do_fetch[depends] = "cramfs-image:do_rootfs"

p.






More information about the Openembedded-devel mailing list