January 2018
Intermediate to advanced
456 pages
12h 49m
English
We can convert the image-small recipe introduced in the Reducing the root filesystem size recipe into an initramfs, as shown in recipes-core/images/image-small-initramfs.bb here:
DESCRIPTION = "Minimal console-only initramfs image."
PACKAGE_INSTALL= "\
base-files \
base-passwd \
busybox \
sysvinit \
initscripts \
${ROOTFS_BOOTSTRAP_INSTALL} \
"
IMAGE_LINGUAS = " "
LICENSE = "MIT"
IMAGE_FEATURES = ""
export IMAGE_BASENAME = "image-small-initramfs"
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES} ${INITRAMFS_FSTYPES}.u-boot"
inherit image
IMAGE_ROOTFS_SIZE = "8192"
To boot the initramfs as an external file, we stop the target device at the u-boot prompt and do the following:
> env set ipaddr <target-ip-address> ...
Read now
Unlock full access