[yocto] [meta-raspberrypi][PATCH V2] linux-raspberry.inc: add initramfs support
Andrei Gherzan
andrei at gherzan.ro
Sun Feb 28 02:49:48 PST 2016
On Sun, Feb 28, 2016 at 09:09:33AM +0100, Petter Mabäcker wrote:
> 5
>
>
>
> Petter Mabäcker
>
> Technux <petter at technux.se>
> www.technux.se
>
> 2016-02-10 11:26 skrev Stéphane Cerveau:
>
> append initramfs creation to install RPi bootloader trailer
>
> Signed-off-by: Stéphane Cerveau <[1]voxtok at voxtok.com>
> ---
> recipes-kernel/linux/linux-raspberrypi.inc | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/recipes-kernel/linux/linux-raspberrypi.inc b/recipes-kernel/linux/l
> inux-raspberrypi.inc
> index 70e8bfe..74dbf19 100644
> --- a/recipes-kernel/linux/linux-raspberrypi.inc
> +++ b/recipes-kernel/linux/linux-raspberrypi.inc
> @@ -64,4 +64,13 @@ do_rpiboot_mkimage() {
> fi
> fi
> }
> +do_bundle_initramfs_append() {
> + if test "x${KERNEL_IMAGETYPE}" != "xuImage" ; then
> + if test -n "${KERNEL_DEVICETREE}"; then
> + # Add RPi bootloader trailer to kernel image to enable DeviceTree s
> upport
> + ${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KERNEL_
> OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs
> + fi
> + fi
> +}
> +
> addtask rpiboot_mkimage before do_install after do_compile
> --
> 2.1.4
>
> Hi,
>
> You should change the path to mkknlimg to use:
> ${STAGING_LIBEXECDIR_NATIVE}/mkknlimg
>
> See the discussion about this in:
> https://lists.yoctoproject.org/pipermail/yocto/2016-February/028769.htm
> l
>
> BR Petter
>
> References
>
> 1. mailto:voxtok at voxtok.com
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
Hi Peter. I pushed a v3 patch which adds this change. Thanks.
--
Andrei Gherzan
More information about the yocto
mailing list