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>
Wed, 12 Oct 2022 05:49:02 +0000 (14:49 +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 42dc18c..a9a9d25 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 */