aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu
diff options
context:
space:
mode:
authorVladimir Vid <vladimir.vid@sartura.hr>2020-09-14 17:24:24 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-09-17 21:09:51 +0200
commit9f0d8826800eef8018720b76b0f4e56fb59b7448 (patch)
treedf38423c0dfa7b90d2d191b8ad3042d42cae6880 /target/linux/mvebu
parent4fb58813f94ac6cc8167138e23a92189fe50b258 (diff)
downloadupstream-9f0d8826800eef8018720b76b0f4e56fb59b7448.tar.gz
upstream-9f0d8826800eef8018720b76b0f4e56fb59b7448.tar.bz2
upstream-9f0d8826800eef8018720b76b0f4e56fb59b7448.zip
mvebu: image: add check for fdt_add_r and kernel_addr_r variables
fdt_addr and kernel_addr variables are getting obsolete in the mainline u-boot in favor of fdt_addr_r and kernel_addr_r. By checking if the new variables exist, we can make sure that devices with newer version of u-boot will work while not breaking support for the existing ones. Signed-off-by: Vladimir Vid <vladimir.vid@sartura.hr> Acked-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target/linux/mvebu')
-rw-r--r--target/linux/mvebu/image/generic-arm64.bootscript8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/mvebu/image/generic-arm64.bootscript b/target/linux/mvebu/image/generic-arm64.bootscript
index bb78948253..c7688fd73f 100644
--- a/target/linux/mvebu/image/generic-arm64.bootscript
+++ b/target/linux/mvebu/image/generic-arm64.bootscript
@@ -10,6 +10,14 @@ elif mmc dev 1; then
setenv mmcdev 1
fi
+if test -n "${fdt_addr_r}"; then
+ setenv fdt_addr ${fdt_addr_r}
+fi
+
+if test -n "${kernel_addr_r}"; then
+ setenv kernel_addr ${kernel_addr_r}
+fi
+
load mmc ${mmcdev}:1 ${fdt_addr} @DTB@.dtb
load mmc ${mmcdev}:1 ${kernel_addr} Image