scripts: tizen: sd_fusing_rpi3: fix size of the RESERVED2 partition
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 25 Jan 2021 08:42:32 +0000 (09:42 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 16 Nov 2021 12:00:22 +0000 (13:00 +0100)
Older version of sd_fusing_rpi3.sh script had a bug, which results in
reduced size of the RESERVED2 partition to 125.5M instead of 128M. Adjust
the size of the RESERVED2 partition to 125M after the fixing sd_fusing
script to avoid further confusion, especially with the upcoming MBR
layout validation in the u-boot.

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

scripts/tizen/sd_fusing_rpi3.sh

index 1c7edd0..dda914e 100755 (executable)
@@ -171,7 +171,7 @@ function mkpart_3 () {
        local -r RAMDISK_RECOVERY_SZ=32
        local -r INFORM_SZ=8
        local -r RESERVED1_SZ=64
-       local -r RESERVED2_SZ=128
+       local -r RESERVED2_SZ=125
        local -r EXTEND_SZ=12
 
        let "USER_SZ = $SIZE_MB - $BOOT_SZ - $ROOTFS_SZ - $DATA_SZ - $MODULE_SZ - $RAMDISK_SZ - $RAMDISK_RECOVERY_SZ - $INFORM_SZ - $EXTEND_SZ - $RESERVED1_SZ - $RESERVED2_SZ"