linux-raspberry.inc: add initramfs support
PATCH v2 1/1 linux-raspberry.inc: add initramfs support
append initramfs creation to install RPi bootloader trailer
--- recipes-kernel/linux/linux-raspberrypi.inc | 9 +++++++++ 1 file changed, 9 insertions(+)
recipes-kernel/linux/linux-raspberrypi.inc +9 -0
@@ -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 support + ${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
Signature · 1 line
2.1.4
5
Petter Mabäcker
Technux
<[email protected]>
www.technux.se
2016-02-10 11:26 skrev Stéphane
Cerveau:
Quoted 1 line
append initramfs creation to install RPi bootloader
trailer
Quoted 4 lines
Signed-off-by Stéphane Cerveau <[email protected]>---
recipes-kernel/linux/linux-raspberrypi.inc | 9 +++++++++
Quoted 1 line
1 file
changed, 9 insertions(+)
Quoted 2 lines
diff --git
a/recipes-kernel/linux/linux-raspberrypi.inc
b/recipes-kernel/linux/linux-raspberrypi.inc
Quoted 1 line
index 70e8bfe..74dbf19
100644
Quoted 2 lines
--- a/recipes-kernel/linux/linux-raspberrypi.inc
+++
b/recipes-kernel/linux/linux-raspberrypi.inc
Review
Quoted 1 line
(quoted diff) +0
-0@@ -64,4 +64,13 @@
do_rpiboot_mkimage() {
Quoted 5 lines
fi
fi
}
+do_bundle_initramfs_append() {
+ if test "x${KERNEL_IMAGETYPE}" != "xuImage" ; then
Quoted 1 line
+ if test -n
"${KERNEL_DEVICETREE}"; then
Quoted 1 line
+ # Add RPi bootloader trailer to kernel
image to enable DeviceTree support
Quoted 1 line
+
${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KERNEL_OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfs
Quoted 3 lines
+ fi
+ fi
+}
Quoted 5 lines
+
addtaskrpiboot_mkimagebeforedo_installafterdo_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.html
BR Petter
Quoted 53 lines · Petter Mabäcker
5Petter Mab�cker
Technux <[email protected]>
www.technux.se2016-02-10 11:26 skrev St�phane Cerveau:append initramfs creation to install RPi bootloader trailer
Signed-off-by St�phane Cerveau <[1][email protected]>--- recipes-kernel/linux/linux-raspberrypi.inc | 9 +++++++++ 1 file changed, 9 insertions(+)recipes-kernel/linux/l renamed from recipes-kernel/linux/linux-raspberrypi.inc +0
-0inux-raspberrypi.inc
index 70e8bfe..74dbf19 100644recipes-kernel/linux/linux-raspberrypi.inc +4
-0@@ -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 support
+ ${STAGING_DIR_NATIVE}/usr/lib/rpi-mkimage/mkknlimg --dtok ${KERNEL_
OUTPUT}.initramfs ${KERNEL_OUTPUT}.initramfsrecipes-kernel/linux/linux-raspberrypi.inc +4
-1+ 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
Quoted 9 lines
References
1. mailto:[email protected]
Signature · 4 lines
_______________________________________________ yocto mailing list [email protected] https://lists.yoctoproject.org/listinfo/yocto
Hi Peter. I pushed a v3 patch which adds this change. Thanks.
Signature · 1 line
Andrei Gherzan