]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
samsung: misc: add gpt restore option to lcd menu
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 30 Apr 2014 11:28:07 +0000 (13:28 +0200)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 7 May 2014 10:40:39 +0000 (19:40 +0900)
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>
board/samsung/common/misc.c
include/samsung/misc.h

index 95d1758f7a742fd6b9661f4445c6f42db2a4101f..2fd104d0fe747d2057dd2feda7e6c9dbc01e0b41 100644 (file)
@@ -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",
        "",
 };
 
index ede6c1583a93675758d1e2a8c0dff1cc03bc55a2..c3d844bc109c03ab99272a2c4b0d4856a59b0b6f 100644 (file)
@@ -15,6 +15,7 @@ enum {
        BOOT_MODE_THOR,
        BOOT_MODE_UMS,
        BOOT_MODE_DFU,
+       BOOT_MODE_GPT,
        BOOT_MODE_EXIT,
 };