[yocto] Minimalist Initrd

Burton, Ross ross.burton at intel.com
Tue Jul 8 14:03:11 PDT 2014


On 6 July 2014 04:57, Jeremy Moles <cubicool at gmail.com> wrote:
> I've encountered a scenario wherein I have only (and this constraint can't
> be worked around) 13MB of space into which I can place a JFFS2 image which
> can be used to continue the system startup (which is initially started by an
> older version of uboot).
>
> I'm having trouble finding a clean solution within the Yocto/OE world for
> this issue. Thus far, I've been using an old, generic, super-tiny ARM-based
> initrd I made years ago which just does a few (proprietary) things in the
> linux and then fires off /sbin/init in the "real" filesystem.
>
> What I need now, however, is a recipe (or perhaps hints on where to start
> when rolling my own recipe) for generating little more than an image (JFFS2
> or cpio.gz) with busybox in it. I can handle the rest view function
> overrides, I just need the base startup.

This sounds exactly like what core-image-minimal-initramfs is for.  If
it's not what you want, it certainly demonstrates how to trim an image
down in size.

Ross



More information about the yocto mailing list