scripts/mkits.sh: DT overlays don't need a loadaddr
authorDaniel Golle <daniel@makrotopia.org>
Mon, 12 Jun 2023 03:07:57 +0000 (04:07 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Wed, 12 Jul 2023 18:02:08 +0000 (19:02 +0100)
DT overlays do not need relocation in order to be applied, so drop
defining the load address for dtbos.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
scripts/mkits.sh

index eeb01216f92383d7e2af72c8c5cdc1b0c56d12dc..46ab5ee023f54249e41793f9a2ee8ab3a0d0805d 100755 (executable)
@@ -88,11 +88,6 @@ if [ -n "${COMPATIBLE}" ]; then
        COMPATIBLE_PROP="compatible = \"${COMPATIBLE}\";"
 fi
 
-[ "$DTOVERLAY" ] && {
-       dtbsize=$(wc -c "$DTB" | awk '{print $1}')
-       DTADDR=$(printf "0x%08x" $(($LOAD_ADDR - $dtbsize)) )
-}
-
 [ "$FDTADDR" ] && {
        DTADDR="$FDTADDR"
 }
@@ -170,7 +165,6 @@ OVCONFIGS=""
        ovnode="fdt-$ovname"
        ovsize=$(wc -c "$overlay_blob" | awk '{print $1}')
        echo "$ovname ($overlay_blob) : $ovsize" >&2
-       DTADDR=$(printf "0x%08x" $(($DTADDR - $ovsize)))
        FDTOVERLAY_NODE="$FDTOVERLAY_NODE
 
                $ovnode {
@@ -179,7 +173,6 @@ OVCONFIGS=""
                        data = /incbin/(\"${overlay_blob}\");
                        type = \"flat_dt\";
                        arch = \"${ARCH}\";
-                       load = <${DTADDR}>;
                        compression = \"none\";
                        hash${REFERENCE_CHAR}1 {
                                algo = \"crc32\";