[yocto] [meta-raspberrypi][PATCH V2] Add initramfs support

Sebastien MENNETRIER s.mennetrier at innotis.org
Mon Feb 3 23:45:13 PST 2014


Ping ?


2014-01-31 Sébastien Mennetrier <s.mennetrier at innotis.org>:

> Permit to build an image with initramfs.
>
> Signed-off-by: Sébastien Mennetrier <s.mennetrier at innotis.org>
> ---
>  classes/sdcard_image-rpi.bbclass | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/classes/sdcard_image-rpi.bbclass
> b/classes/sdcard_image-rpi.bbclass
> index 3ee4e94..815aaa9 100644
> --- a/classes/sdcard_image-rpi.bbclass
> +++ b/classes/sdcard_image-rpi.bbclass
> @@ -26,6 +26,9 @@ inherit image_types
>  # Set kernel and boot loader
>  IMAGE_BOOTLOADER ?= "bcm2835-bootfiles"
>
> +# Set initramfs extension
> +KERNEL_INITRAMFS ?= ""
> +
>  # Boot partition volume id
>  BOOTDD_VOLUME_ID ?= "${MACHINE}"
>
> @@ -91,7 +94,7 @@ IMAGE_CMD_rpi-sdimg () {
>         BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1
> / { print substr($4, 1, length($4 -1)) / 512 /2 }')
>         mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img
> $BOOT_BLOCKS
>         mcopy -i ${WORKDIR}/boot.img -s
> ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/* ::/
> -       mcopy -i ${WORKDIR}/boot.img -s
> ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img
> +       mcopy -i ${WORKDIR}/boot.img -s
> ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin
> ::kernel.img
>
>         if [ -n ${FATPAYLOAD} ] ; then
>                 echo "Copying payload into VFAT"
> --
> 1.8.1.2
>
>


-- 

Regards,
Sébastien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140204/f825b6f6/attachment.html>


More information about the yocto mailing list