From 39c6c17983e68bc72d0903f39796084de7490970 Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Thu, 11 Jan 2018 13:54:20 +0900 Subject: [PATCH] rpi: tizen-boot: change the kernel loading address 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 --- board/raspberrypi/rpi/tizen-boot.scr | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/board/raspberrypi/rpi/tizen-boot.scr b/board/raspberrypi/rpi/tizen-boot.scr index 38c7cca..e82968d 100644 --- a/board/raspberrypi/rpi/tizen-boot.scr +++ b/board/raspberrypi/rpi/tizen-boot.scr @@ -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 -- 2.7.4