samsung: tizen_bpif3: use 'boot_a' name for the first boot partition 01/316101/2 accepted/tizen/unified/x/20240814.051504
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 13 Aug 2024 13:24:22 +0000 (15:24 +0200)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 13 Aug 2024 14:17:39 +0000 (16:17 +0200)
Use common 'boot_a' name for the first 'boot' partition. The BPiF3
support code doesn't relay on the 'bootfs' name anymore.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If032ec3ef914735f2ed1d6c574d4c06d835e169f

include/samsung/tizen_bpif3.h
tizen/bootscript/tizen-boot-bpif3.scr

index 363d446c63e703d3ee5620f6b70e1ea54817495f..12c36dc9aef6a26732a3ba9ef18575ab392eaab1 100644 (file)
@@ -31,7 +31,7 @@
        TIZEN_TARGET_ENV_SETTING                \
        "kernel=" KERNEL_NAME "\0"              \
        "informname=inform\0"                   \
-       "bootname=bootfs\0"                     \
+       "bootname=boot_a\0"                     \
        "rebootparamfile=reboot-param.bin\0"    \
        "upgradetypefile=upgrade-type.info\0"   \
        "slotfile=partition-ab.info\0"  \
index 0733e6347f669812d2ff6606fa89ed2a1dee00c5..3aad29f0cfcfe16e8794c464b21b26b25e6b1b61 100644 (file)
@@ -34,7 +34,11 @@ fi
 echo "boot from slot_${partition_ab}"
 
 # find the boot partition
-part number $devtype $devnum "bootfs" bootpart
+part number $devtype $devnum "boot_${partition_ab}" bootpart
+if test -z "${bootpart}"; then;
+       echo No \"boot_${partition_ab}\" partition found.
+       exit
+fi
 
 # set sane defaults
 setenv partition_name "ramdisk"