diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2024-08-08 07:20:13 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2024-08-08 07:24:09 +0900 |
commit | 2082a4ee256874a13134c222562e2343701df957 (patch) | |
tree | 15f2b63caf5f5e154d8548c6852329dd99f4f1bf | |
parent | e442e2a0ca01ba7af37bcd040c5a9c5a21f3292a (diff) | |
download | u-boot-tizen_8.0.tar.gz u-boot-tizen_8.0.tar.bz2 u-boot-tizen_8.0.zip |
samsung: tizen_rpi: Set to slot_a by default when run tfmaccepted/tizen/8.0/unified/20240808.161702tizen_8.0accepted/tizen_8.0_unified
In some case, it's resetting to normal mode from download mode.
So it's always running as ramdisk boot mode.
To fix above issue, Set to slot_a by default when run tfm.
"run tfm" means that user tries to flahs entire image.
So it doesn't need that it enters to slot_b mode.
To prevent the overwrite, change the loading address to 0x02500000.
Because scriptaddr is using 0x02400000.
Change-Id: Id09bdbb5cd3ce4b0af685f761718837cb6e65d7b
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r-- | include/samsung/tizen_rpi.h | 2 | ||||
-rw-r--r-- | tizen/bootscript/tizen-boot-rpi4.scr | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/samsung/tizen_rpi.h b/include/samsung/tizen_rpi.h index e06762f06e..53d0218eea 100644 --- a/include/samsung/tizen_rpi.h +++ b/include/samsung/tizen_rpi.h @@ -155,7 +155,7 @@ "part=7\0" \ "bootmode=ramdisk\0" \ "bootdev=mmc\0" \ - "tfm=setenv bootmode download; run bootcmd\0" \ + "tfm=setenv bootmode download; run set_to_part_a; run bootcmd\0" \ "tizen_bootarg=" \ TIZEN_VC_MEM \ "8250.nr_uarts=1 dma.dmachans=0x7f35 bcm2709.serial=0xed6687d3 " \ diff --git a/tizen/bootscript/tizen-boot-rpi4.scr b/tizen/bootscript/tizen-boot-rpi4.scr index f6bac09b66..b284cea662 100644 --- a/tizen/bootscript/tizen-boot-rpi4.scr +++ b/tizen/bootscript/tizen-boot-rpi4.scr @@ -44,8 +44,8 @@ fi if test "0x${distro_bootpart}" -ne "${bootpart}"; then # Load the environmet from partition_b echo "Loading uboot.env from boot_${partition_ab}" - load $devtype $devnum:$bootpart 0x02400000 uboot.env - env import -b 0x02400000 0x4000 + load $devtype $devnum:$bootpart 0x02500000 uboot.env + env import -b 0x02500000 0x4000 exit fi |