summaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorRichard Leitner <richard.leitner@skidata.com>2018-06-04 17:58:10 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2018-06-26 14:13:51 -0300
commit5417d106e17c35bc1a68672398ec5ecb648f0ff4 (patch)
tree8f20409964b3884731c9da9b921ec22184856037 /classes
parent7c9ab2ff004e8112a074fdb33e6b579b499559f0 (diff)
downloadmeta-freescale-5417d106e17c35bc1a68672398ec5ecb648f0ff4.tar.gz
kernel-itbimage: set dtb load line only if DTB_LOAD is set
The load address line for the dtb should only be given if DTB_LOAD was set accordingly before. Therefore add this check. Without this patch the dtb was loaded to 0x0 if no DTB_LOAD was set and the boot therefore failed. Now when no DTB_LOAD is set the bootloader uses the device tree in place. Signed-off-by: Richard Leitner <richard.leitner@skidata.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'classes')
-rw-r--r--classes/kernel-itbimage.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/kernel-itbimage.bbclass b/classes/kernel-itbimage.bbclass
index 448e2a6cc..703fa616b 100644
--- a/classes/kernel-itbimage.bbclass
+++ b/classes/kernel-itbimage.bbclass
@@ -136,6 +136,10 @@ fitimage_emit_section_dtb() {
136 136
137 dtb_csum="sha1" 137 dtb_csum="sha1"
138 138
139 if [ -n "${DTB_LOAD}" ]; then
140 dtb_loadline="load = <${DTB_LOAD}>;"
141 fi
142
139 cat << EOF >> ${1} 143 cat << EOF >> ${1}
140 fdt@${2} { 144 fdt@${2} {
141 description = "Flattened Device Tree blob"; 145 description = "Flattened Device Tree blob";
@@ -143,7 +147,7 @@ fitimage_emit_section_dtb() {
143 type = "flat_dt"; 147 type = "flat_dt";
144 arch = "${UBOOT_ARCH}"; 148 arch = "${UBOOT_ARCH}";
145 compression = "none"; 149 compression = "none";
146 load = <${DTB_LOAD}>; 150 ${dtb_loadline}
147 hash@1 { 151 hash@1 {
148 algo = "${dtb_csum}"; 152 algo = "${dtb_csum}";
149 }; 153 };