diff mbox

[U-Boot,V2] board:trats2: fix default partitions and mmc env

Message ID 1388392840-17228-1-git-send-email-p.wilczek@samsung.com
State Accepted
Delegated to: Minkyu Kang
Headers show

Commit Message

Piotr Wilczek Dec. 30, 2013, 8:40 a.m. UTC
This patch add uuid disk to defualt partions necessary to
restore gpt partitions and fixes mmcdev environmental variable.

Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Changes for V2:
 - use __stringify for CONFIG_MMC_DEFAULT_DEV stringification

 include/configs/trats2.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Minkyu Kang Dec. 31, 2013, 7:44 a.m. UTC | #1
On 30/12/13 17:40, Piotr Wilczek wrote:
> This patch add uuid disk to defualt partions necessary to
> restore gpt partitions and fixes mmcdev environmental variable.
> 
> Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> Changes for V2:
>  - use __stringify for CONFIG_MMC_DEFAULT_DEV stringification
> 
>  include/configs/trats2.h |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/trats2.h b/include/configs/trats2.h
> index 5d86a3d..c9ce828 100644
> --- a/include/configs/trats2.h
> +++ b/include/configs/trats2.h
> @@ -160,6 +160,7 @@
>  #define PARTS_UMS		"ums"
>  
>  #define PARTS_DEFAULT \
> +	"uuid_disk=${uuid_gpt_disk};" \
>  	"name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
>  	"name="PARTS_BOOT",size=64MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
>  	"name="PARTS_MODEM",size=100MiB,uuid=${uuid_gpt_"PARTS_MODEM"};" \
> @@ -201,7 +202,7 @@
>  		"${kernelname}\0" \
>  	"loaddtb=ext4load mmc ${mmcdev}:${mmcbootpart} ${fdtaddr} " \
>  		"${fdtfile}\0" \
> -	"mmcdev=CONFIG_MMC_DEFAULT_DEV\0" \
> +	"mmcdev=" __stringify(CONFIG_MMC_DEFAULT_DEV) "\0" \
>  	"mmcbootpart=2\0" \
>  	"mmcrootpart=5\0" \
>  	"opts=always_resume=1\0" \
> 

applied to u-boot-samsung.

Thanks,
Minkyu Kang.
diff mbox

Patch

diff --git a/include/configs/trats2.h b/include/configs/trats2.h
index 5d86a3d..c9ce828 100644
--- a/include/configs/trats2.h
+++ b/include/configs/trats2.h
@@ -160,6 +160,7 @@ 
 #define PARTS_UMS		"ums"
 
 #define PARTS_DEFAULT \
+	"uuid_disk=${uuid_gpt_disk};" \
 	"name="PARTS_CSA",start=5MiB,size=8MiB,uuid=${uuid_gpt_"PARTS_CSA"};" \
 	"name="PARTS_BOOT",size=64MiB,uuid=${uuid_gpt_"PARTS_BOOT"};" \
 	"name="PARTS_MODEM",size=100MiB,uuid=${uuid_gpt_"PARTS_MODEM"};" \
@@ -201,7 +202,7 @@ 
 		"${kernelname}\0" \
 	"loaddtb=ext4load mmc ${mmcdev}:${mmcbootpart} ${fdtaddr} " \
 		"${fdtfile}\0" \
-	"mmcdev=CONFIG_MMC_DEFAULT_DEV\0" \
+	"mmcdev=" __stringify(CONFIG_MMC_DEFAULT_DEV) "\0" \
 	"mmcbootpart=2\0" \
 	"mmcrootpart=5\0" \
 	"opts=always_resume=1\0" \