path: root/recipes-kernel
diff options
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2018-04-09 12:13:55 +0200
committerNicolas Dechesne <nicolas.dechesne@linaro.org>2018-09-05 22:14:35 +0200
commitb97de48b1f58e339b2d40098d3369acf9b94b30f (patch)
tree1ee35dd17d80dcd6945f736c51aa2a44dc66f117 /recipes-kernel
parent95b38ce91abb6e580b77d0f0ddcf2d11cb3e0910 (diff)
kernel: append DTB to kernel image
Instead of using dtbTool to create a DT image , and include it into the boot image, we append DTB to the compressed kernel image. the LK bootloader knows how to retrieve DTB , when they are appeneded to compressed kernel image. Note: * it only works with compressed image. * dtbTool also typically adds msm-ids into the DTB, recent versions of LK exist that allow a single DTB to be used without the msm-ids, in which case it will work fine. when using older LK version, it is needed to patch the kernel and include the msm-ids. * QCOM_BOOTIMG_BUNDLE_DT can be unset , since we longer need the DT image to boot. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'recipes-kernel')
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-kernel/linux/linux-linaro-qcom.inc b/recipes-kernel/linux/linux-linaro-qcom.inc
index 2b3a3ea..cabf17d 100644
--- a/recipes-kernel/linux/linux-linaro-qcom.inc
+++ b/recipes-kernel/linux/linux-linaro-qcom.inc
@@ -82,12 +82,12 @@ do_configure_prepend() {
oe_runmake -C ${S} O=${B} savedefconfig && cp ${B}/defconfig ${WORKDIR}/defconfig.saved
-# append DTB, since bootloader doesn't support DTB
-do_compile_append_apq8064() {
+# append DTB
+do_compile_append() {
if ! [ -e ${B}/arch/${ARCH}/boot/dts/${KERNEL_DEVICETREE} ] ; then
- cp arch/${ARCH}/boot/zImage arch/${ARCH}/boot/zImage.backup
- cat arch/${ARCH}/boot/zImage.backup arch/${ARCH}/boot/dts/${KERNEL_DEVICETREE} > arch/${ARCH}/boot/zImage
- rm -f arch/${ARCH}/boot/zImage.backup
+ cp arch/${ARCH}/boot/${KERNEL_IMAGETYPE} arch/${ARCH}/boot/${KERNEL_IMAGETYPE}.backup
+ cat arch/${ARCH}/boot/${KERNEL_IMAGETYPE}.backup arch/${ARCH}/boot/dts/${KERNEL_DEVICETREE} > arch/${ARCH}/boot/${KERNEL_IMAGETYPE}
+ rm -f arch/${ARCH}/boot/${KERNEL_IMAGETYPE}.backup