From: Przemyslaw Marczak
Date: Tue, 23 Sep 2014 08:55:15 +0000 (+0200)
Subject: samsung:misc: set_board_info: set a proper $partitions at boot
X-Git-Tag: submit/tizen_common/20141030.153846~16
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8c466a39bf16f728f3d09da9421c3855b47cd6e6;p=platform%2Fkernel%2Fu-boot.git
samsung:misc: set_board_info: set a proper $partitions at boot
This change adds setting the environment variable: "partitions"
which is required to restore the partition table on the Trats2.
At this moment we are using MSDOS partition table on the Odroid
board, so for this board the above variable contains only a message.
Now the u-boot LCD menu in Trats2 is fully functional and the option:
(PWR+VOLUP) -> GPT restore - works well
Change-Id: I571466b7392a6775e0afe408c66be1dcc17d9ab8
Signed-off-by: Przemyslaw Marczak
---
diff --git a/board/samsung/common/misc.c b/board/samsung/common/misc.c
index 3d21ac709f..2462ccd18d 100644
--- a/board/samsung/common/misc.c
+++ b/board/samsung/common/misc.c
@@ -92,6 +92,10 @@ void set_board_info(void)
snprintf(info, ARRAY_SIZE(info), "%s%x-%s%s.dtb",
CONFIG_SYS_SOC, s5p_cpu_id, bdname, bdtype);
setenv("fdtfile", info);
+#endif
+ /* Set GPT layout for Trats2 */
+#ifdef CONFIG_OF_MULTI
+ setenv("partitions", board_is_trats2() ? PARTS_TRATS2 : PARTS_ODROID);
#endif
}
#endif /* CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG */