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:55:10 +0100
commita59b08af6071ae4eff6c1b01be42f1718b663a3a (patch)
treec234ce81fddb002ec82a4c0c0175ae312e15ee74
parentd26c5583776f866e8566521508b906fdd1289b1a (diff)
downloadu-boot-a59b08af6071ae4eff6c1b01be42f1718b663a3a.tar.gz
u-boot-a59b08af6071ae4eff6c1b01be42f1718b663a3a.tar.bz2
u-boot-a59b08af6071ae4eff6c1b01be42f1718b663a3a.zip
tizen: rpi4: use fdt already preloaded by the firmwaresubmit/tizen/20211123.233157
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