diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2022-06-15 12:05:07 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2023-10-17 13:19:33 +0900 |
commit | 65dc15ca9862a9aff9365d83e9aff453e8462deb (patch) | |
tree | 46b884cb2493dd7259a79150cb0b7132692f9746 /scripts/tizen | |
parent | 090b9eae1d21dc118a0a36ca4ab5c85998da42f2 (diff) | |
download | u-boot-65dc15ca9862a9aff9365d83e9aff453e8462deb.tar.gz u-boot-65dc15ca9862a9aff9365d83e9aff453e8462deb.tar.bz2 u-boot-65dc15ca9862a9aff9365d83e9aff453e8462deb.zip |
scripts: tizen: rpi4: add reserved partition
Add reserved partition.
In future, if additional partition will be used, it can be used with
reserved partition.
Change-Id: I587f03011b853cba9c65d15229fd0c8929b8256d
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'scripts/tizen')
-rwxr-xr-x | scripts/tizen/sd_fusing_rpi4.sh | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/scripts/tizen/sd_fusing_rpi4.sh b/scripts/tizen/sd_fusing_rpi4.sh index bd7dfe10b9..c7639693aa 100755 --- a/scripts/tizen/sd_fusing_rpi4.sh +++ b/scripts/tizen/sd_fusing_rpi4.sh @@ -270,10 +270,12 @@ function mkpart_3 () { local -r RAMDISK_RECOVERY_SZ=32 local -r INFORM_SZ=8 local -r HAL_SZ=256 - local -r RESERVED1_SZ=125 + local -r PARAM_SZ=4 + local -r RESERVED1_SZ=64 + local -r RESERVED2_SZ=125 local -r EXTEND_SZ=36 - let "USER_SZ = $SIZE_MB - $BOOT_SZ * 2 - $ROOTFS_SZ * 2 - $DATA_SZ - $MODULE_SZ * 2 - $RAMDISK_SZ * 2 - $RAMDISK_RECOVERY_SZ * 2 - $INFORM_SZ - $EXTEND_SZ - $HAL_SZ * 2 - $RESERVED1_SZ" + let "USER_SZ = $SIZE_MB - $BOOT_SZ * 2 - $ROOTFS_SZ * 2 - $DATA_SZ - $MODULE_SZ * 2 - $RAMDISK_SZ * 2 - $RAMDISK_RECOVERY_SZ * 2 - $INFORM_SZ - $EXTEND_SZ - $HAL_SZ * 2 - $RESERVED1_SZ - $RESERVED2_SZ - $PARAM_SZ" local -r BOOT_A=${PART_TABLE[0 * ${PART_TABLE_COL} + 3]} local -r ROOTFS_A=${PART_TABLE[1 * ${PART_TABLE_COL} + 3]} @@ -289,7 +291,9 @@ function mkpart_3 () { local -r MODULE_B=${PART_TABLE[10 * ${PART_TABLE_COL} + 3]} local -r RAMDISK_B=${PART_TABLE[11 * ${PART_TABLE_COL} + 3]} local -r RAMDISK_RECOVERY_B=${PART_TABLE[12 * ${PART_TABLE_COL} + 3]} + local -r RESERVED0=reserved0 local -r RESERVED1=reserved1 + local -r RESERVED2=reserved2 if [[ $USER_SZ -le 100 ]] then @@ -316,7 +320,9 @@ function mkpart_3 () { echo " "$RAMDISK_B" " $DISK"14 " $RAMDISK_SZ "MB" echo " "$RAMDISK_RECOVERY_B" " $DISK"15 " $RAMDISK_RECOVERY_SZ "MB" echo " "$HAL_B" " $DISK"16 " $HAL_SZ "MB" - echo " "$RESERVED1" " $DISK"17 " $RESERVED1_SZ "MB" + echo " "$RESERVED0" " $DISK"17 " $PARAM_SZ "MB" + echo " "$RESERVED1" " $DISK"18 " $RESERVED1_SZ "MB" + echo " "$RESERVED2" " $DISK"19 " $RESERVED2_SZ "MB" local MOUNT_LIST=`mount | grep $DISK | awk '{print $1}'` for mnt in $MOUNT_LIST @@ -355,7 +361,9 @@ function mkpart_3 () { ${DEVICE}14: size=${RAMDISK_SZ}MiB, name=${PART_LABEL_NR_14} ${DEVICE}15: size=${RAMDISK_RECOVERY_SZ}MiB, name=${PART_LABEL_NR_15} ${DEVICE}16: size=${HAL_SZ}MiB, name=${PART_LABEL_NR_16} - ${DEVICE}17: size=${RESERVED1_SZ}MiB, name=reserved1 + ${DEVICE}17: size=${PARAM_SZ}MiB, name=reserved0 + ${DEVICE}18: size=${RESERVED1_SZ}MiB, name=reserved1 + ${DEVICE}19: size=${RESERVED2_SZ}MiB, name=reserved2 __EOF__ @@ -391,7 +399,13 @@ function mkpart_3 () { rmdir mnt_tmp local -r PART17=/dev/`lsblk ${DISK} -o TYPE,KNAME | grep part | awk '{ print $2 }' | grep -G "[a-z]17\$"` - mkfs.ext4 -q ${PART17} -L $RESERVED1 -F + mkfs.ext4 -q ${PART17} -L $RESERVED0 -F + + local -r PART18=/dev/`lsblk ${DISK} -o TYPE,KNAME | grep part | awk '{ print $2 }' | grep -G "[a-z]18\$"` + mkfs.ext4 -q ${PART18} -L $RESERVED1 -F + + local -r PART19=/dev/`lsblk ${DISK} -o TYPE,KNAME | grep part | awk '{ print $2 }' | grep -G "[a-z]19\$"` + mkfs.ext4 -q ${PART19} -L $RESERVED2 -F } function show_usage () { |