samsung: tizen_rpi: add update_gpt_part uboot variable
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 1 Jul 2022 03:54:46 +0000 (12:54 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 17 Oct 2023 04:19:35 +0000 (13:19 +0900)
Add update_gpt_part uboot variable.
If wants to change a partition from mbr to gpt, run the below command on
u-boot console.

- run update_gpt_part

NOTE: This is for only RPi4.

Change-Id: Idd46ce313f8c28b9b04f7f8c7190ee1aed51d6f0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
include/samsung/tizen_rpi.h

index 214050d..e407075 100644 (file)
        "set_to_part_a=" SET_TO_PARTITION_A "\0"                \
        "set_to_part_b=" SET_TO_PARTITION_B "\0"                \
        "gpt_parts=" GPT_PARTS_DEFAULT "\0"             \
+       "update_gpt_part=gpt write mmc ${mmcbootdev} ${gpt_parts}\0"            \
        ""
 
 #endif /* __CONFIG_TIZEN_RPI_H */