[oe] initramfs howto?

Tom Rini trini at kernel.crashing.org
Wed Apr 22 16:22:45 UTC 2009


On Wed, Apr 22, 2009 at 12:49:07PM +0400, Roman I Khimov wrote:
> On Wednesday 22 April 2009 11:45:38 Sledz, Steffen wrote:
> > Both kernels do have associated modules.
> >
> > As i understand OE i have to build two images (for Rootfs-A and Rootfs-B).
> > But ...
> >
> > (a) How do i tell those images which kernels (and as a consequence which
> > modules) are associated with it?
> >
> > (b) How do i build Kernel-B with it's initramfs?
> 
> As I understand it's not possible to build multiple kernels currently in OE, 
> as the packages will be named as "kernel-*" and if versions are the same 
> you'll get something completely unusable. Even if not, you'll need to be very 
> careful to get it working right.

The workaround here (and this was OK for our needs) was that the 2nd
kernel doesn't make any packages, just deploys the final kernel.
Indeed what I posted should be good for (b), with the caveat that you
need to either not use kernel.bbclass or hack out a second
kernel.bbclass that doesn't make any packages.  If you need this kernel
to be put automagically inside the rootfs you'll need to do something
like this in rootfs-a.bb:
ROOTFS_POSTPROCESS_COMMAND += "cp ${DEPLOY_IMG_DIR}/kernelB
${IMAGE_ROOTFS}/boot/"

-- 
Tom Rini




More information about the Openembedded-devel mailing list