rpi: tizen-boot: change the kernel loading address
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 11 Jan 2018 04:54:20 +0000 (13:54 +0900)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:19:26 +0000 (11:19 +0100)
Tizen kernel image can be over than 16MB.
It should be overlapped with other image address.
To avoid this behavior, change to 0x02d00000 from 0x01000000.

Change-Id: I8cf142c55d6afedd1186f58181251df39d1e9cc5
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
board/raspberrypi/rpi/tizen-boot.scr

index 38c7cca..e82968d 100644 (file)
@@ -6,6 +6,12 @@ mmcrootdev=0
 mmcrootpart=2
 mmcinformpart=9
 
+#
+# Tizen kernel image is over than 16MB, it will be overlapped with other address.
+# To avoid this behaivor, change to 0x02d00000 from 0x01000000
+#
+tizen_kernel_addr_r=0x02d00000
+
 dummy=0x24000000
 rebootparamfile=reboot-param.bin
 # use the ram address of ramdisk before loading ramdisk image
@@ -62,13 +68,13 @@ part start $bootdev $mmcrootdev $ramdiskpart ramdisk_start
 part size $bootdev $mmcrootdev $ramdiskpart ramdisk_size
 
 echo "Searching for kernel in"; for prefix in $boot_prefixes; do
-if load $bootdev $mmcbootdev:$mmcbootpart $kernel_addr_r $prefix$kernel; then;
+if load $bootdev $mmcbootdev:$mmcbootpart $tizen_kernel_addr_r $prefix$kernel; then;
        echo ${bootmode} "boot";
        load $bootdev $mmcbootdev:$mmcbootpart $fdt_addr_r $fdtfile;
        if test -e mmc $mmcrootdev:$ramdiskpart sbin/init; then;
                echo "Loading Ramdisk from partition"${ramdiskpart};
                mmc read $ramdisk_addr_r $ramdisk_start $ramdisk_size;
        fi
-       booti $kernel_addr_r $ramdisk_addr_r:$ramdisksize $fdt_addr_r;
+       booti $tizen_kernel_addr_r $ramdisk_addr_r:$ramdisksize $fdt_addr_r;
 fi
 done