summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2021-11-22 12:29:39 +0100
committerMarek Szyprowski <m.szyprowski@samsung.com>2021-11-22 12:38:25 +0100
commit88fa0c7bb91fbe259b3f39eb2bc1d0428119f559 (patch)
tree2aa12ab756a5a6e3c74c7062cb58d3b75910c0bd
parent2ce4f25ba06d0c43890657adbb8956491421549d (diff)
downloadu-boot-88fa0c7bb91fbe259b3f39eb2bc1d0428119f559.tar.gz
u-boot-88fa0c7bb91fbe259b3f39eb2bc1d0428119f559.tar.bz2
u-boot-88fa0c7bb91fbe259b3f39eb2bc1d0428119f559.zip
tizen: rpi4: use fdt already preloaded by the firmwaresubmit/tizen/20211123.235356old/tizen_20211124
RPi4's firmware loads dtb and performs some fixups depending on the board hardware revision. Simply reuse the fdt preloaded by the firmware instead of loading it again from disk. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Change-Id: I47e23f61f7b86475922a85fcb464f31d6652f6b6
-rw-r--r--tizen/bootscript/tizen-boot-rpi4.scr3
1 files changed, 1 insertions, 2 deletions
diff --git a/tizen/bootscript/tizen-boot-rpi4.scr b/tizen/bootscript/tizen-boot-rpi4.scr
index 759a284306..d8f2e3806d 100644
--- a/tizen/bootscript/tizen-boot-rpi4.scr
+++ b/tizen/bootscript/tizen-boot-rpi4.scr
@@ -59,7 +59,6 @@ fi
echo "console: ${console}"
# DT image by model
-setenv fdtfile \"bcm2711-rpi-4-b.dtb\"
setenv boot_prefixes \"/\"
# To use cmdline for using serial console. /* Normal mode */
@@ -76,12 +75,12 @@ setexpr tizen_kernel_addr_r $ramdisk_addr_r + $ramdisksize
echo "Searching for kernel in"; for prefix in $boot_prefixes; do
if load $bootdev $mmcbootdev:$mmcbootpart $tizen_kernel_addr_r $prefix$kernel; then;
echo ${bootmode} "boot";
- load $bootdev $mmcbootdev:$mmcbootpart $fdt_addr $fdtfile;
if test -e $bootdev $mmcrootdev:$ramdiskpart sbin/init; then;
echo "Loading Ramdisk from partition"${ramdiskpart};
$bootdev read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
fi
+ # use fdt already preloaded by the firmware available at $fdt_addr
if test "$kernel" = "zImage"; then;
bootz $tizen_kernel_addr_r $ramdisk_addr_r:$ramdisksize $fdt_addr;
else