diff options
author | Przemyslaw Marczak <p.marczak@samsung.com> | 2014-04-30 13:28:07 +0200 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2014-05-07 19:40:39 +0900 |
commit | 5c7b8a379fbd9b069c95332204c359f61a7f1594 (patch) | |
tree | ad32cf385824e9acdf54afbc19e85e7b8e5e3c48 /board/samsung/common/misc.c | |
parent | e6bfe79f31a042cfbd2dd9ee159cdd1209535727 (diff) |
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>
Diffstat (limited to 'board/samsung/common/misc.c')
-rw-r--r-- | board/samsung/common/misc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c index 95d1758f7a7..2fd104d0fe7 100644 --- a/board/samsung/common/misc.c +++ b/board/samsung/common/misc.c @@ -121,6 +121,7 @@ mode_name[BOOT_MODE_EXIT + 1][2] = { {"THOR", "thor"}, {"UMS", "ums"}, {"DFU", "dfu"}, + {"GPT", "gpt"}, {"EXIT", ""}, }; @@ -130,6 +131,7 @@ mode_info[BOOT_MODE_EXIT + 1] = { "downloader", "mass storage", "firmware update", + "restore", "and run normal boot" }; @@ -139,6 +141,7 @@ mode_cmd[BOOT_MODE_EXIT + 1] = { "thor 0 mmc 0", "ums 0 mmc 0", "dfu 0 mmc 0", + "gpt write mmc 0 $partitions", "", }; |