samsung: misc: add gpt restore option to lcd menu
This menu option allows restore gpt. This is usefull and no needs access to the u-boot console. For proper operation: - each partition uuid should be set in environment or - CONFIG_RANDOM_UUID should be defined for automatically uuid setting After operation success device is going to be reset. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Cc: Minkyu Kang <mk7.kang@samsung.com> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
This commit is contained in:
parent
e6bfe79f31
commit
5c7b8a379f
|
@ -121,6 +121,7 @@ mode_name[BOOT_MODE_EXIT + 1][2] = {
|
||||||
{"THOR", "thor"},
|
{"THOR", "thor"},
|
||||||
{"UMS", "ums"},
|
{"UMS", "ums"},
|
||||||
{"DFU", "dfu"},
|
{"DFU", "dfu"},
|
||||||
|
{"GPT", "gpt"},
|
||||||
{"EXIT", ""},
|
{"EXIT", ""},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -130,6 +131,7 @@ mode_info[BOOT_MODE_EXIT + 1] = {
|
||||||
"downloader",
|
"downloader",
|
||||||
"mass storage",
|
"mass storage",
|
||||||
"firmware update",
|
"firmware update",
|
||||||
|
"restore",
|
||||||
"and run normal boot"
|
"and run normal boot"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -139,6 +141,7 @@ mode_cmd[BOOT_MODE_EXIT + 1] = {
|
||||||
"thor 0 mmc 0",
|
"thor 0 mmc 0",
|
||||||
"ums 0 mmc 0",
|
"ums 0 mmc 0",
|
||||||
"dfu 0 mmc 0",
|
"dfu 0 mmc 0",
|
||||||
|
"gpt write mmc 0 $partitions",
|
||||||
"",
|
"",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ enum {
|
||||||
BOOT_MODE_THOR,
|
BOOT_MODE_THOR,
|
||||||
BOOT_MODE_UMS,
|
BOOT_MODE_UMS,
|
||||||
BOOT_MODE_DFU,
|
BOOT_MODE_DFU,
|
||||||
|
BOOT_MODE_GPT,
|
||||||
BOOT_MODE_EXIT,
|
BOOT_MODE_EXIT,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue