aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Stabellini2019-07-30 15:17:47 -0700
committerStefano Stabellini2019-08-01 14:57:24 -0700
commit4f647f9fd6c8c44cafa3d2ac8fd5a1d09505333c (patch)
treef64eb452e7f0b6783a91214f324e5a0886e24f70
parentd388347177c9176c404ad33aa49914fd2b747acd (diff)
Update script to start from 12MB to avoid clashes with Xen 1:1 map
Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
-rw-r--r--docker-extras/uboot-script-gen5
1 files changed, 5 insertions, 0 deletions
diff --git a/docker-extras/uboot-script-gen b/docker-extras/uboot-script-gen
index 5393de6..ac9b8b6 100644
--- a/docker-extras/uboot-script-gen
+++ b/docker-extras/uboot-script-gen
@@ -134,6 +134,11 @@ function check_compressed_file_type()
rm -f $UBOOT_SOURCE $UBOOT_SCRIPT
memaddr=$(( $MEMORY_START + $offset ))
+# 12582912 is 0xc00000, 12MB
+if test $memaddr -lt 12582912
+then
+ memaddr="12582912"
+fi
memaddr=`printf "0x%X\n" $memaddr`
uboot_addr=$memaddr
# 2MB are enough for a uboot script