aboutsummaryrefslogtreecommitdiff
path: root/docker-extras
diff options
context:
space:
mode:
Diffstat (limited to 'docker-extras')
-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