From: Michal Wilczynski Date: Wed, 6 Nov 2024 11:34:43 +0000 (+0100) Subject: tizen: bootscript: Execute fixup_memory_region command before boot X-Git-Tag: accepted/tizen/unified/x/20241116.040744~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F320015%2F2;p=platform%2Fkernel%2Fu-boot-thead.git tizen: bootscript: Execute fixup_memory_region command before boot In case of 16GB boards the kernel FDT needs to be patched, to be able to use the full 16GB of memory instead of the default 8GB. Call fixup_memory_region command before booting the kernel, but after FDT is loaded to specified place in memory. Change-Id: I15a76bba8606d5131b3811f2cc2cb875eaf9e71a Signed-off-by: Michal Wilczynski --- diff --git a/tizen/bootscript/tizen-boot-lpi4a.scr b/tizen/bootscript/tizen-boot-lpi4a.scr index 33226d9a..ea4c99a7 100644 --- a/tizen/bootscript/tizen-boot-lpi4a.scr +++ b/tizen/bootscript/tizen-boot-lpi4a.scr @@ -124,7 +124,9 @@ echo "Searching for kernel in"; for prefix in $boot_prefixes; do echo $prefix$kernel; if load $devtype $devnum:$bootpart $kernel_addr_r $prefix$kernel; then; echo ${bootmode} "boot"; - load $devtype $devnum:$bootpart $fdt_addr_r $prefix$fdtfile + load $devtype $devnum:$bootpart $fdt_addr_r $prefix$fdtfile; + # this will patch FDT memory node with automatically discovered size + fixup_memory_region; booti $kernel_addr_r $ramdisk_addr_r:$ramdisk_size $fdt_addr_r; fi done