summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--images/FIT.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/images/FIT.sh b/images/FIT.sh
index 4655a65..006baaf 100644
--- a/images/FIT.sh
+++ b/images/FIT.sh
@@ -46,12 +46,20 @@ make_FIT_image() {
EOF
local dtb
+ local addr=$fdtaddr
for dtb in ${dtbs[@]} ${dt_overlays[@]} ; do
local src=${dtb/:*/}
local dst=${dtb/*:/}
dst=${dst/*\//}
+ local load=
+
+ if [ ! -z $fdtaddr ] ; then
+ load="load = <$(printf 0x%08x $addr)>;"
+ addr=$(($addr+0x40000))
+ fi
+
cat <<EOF >> $kernel_its
fdt-$dst {
description = "Flattened Device Tree blob $dst";
@@ -59,6 +67,7 @@ EOF
type = "flat_dt";
arch = "$arch";
compression = "none";
+ $load
hash-1 {
algo = "crc32";
};