* [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings
@ 2014-01-22 11:02 Przemyslaw Marczak
2014-01-22 11:08 ` Przemyslaw Marczak
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Przemyslaw Marczak @ 2014-01-22 11:02 UTC (permalink / raw)
To: u-boot
This change allows updating environment stored on MMC by dfu or thor.
New setting:
- "params.bin mmc 0x38 0x8"
File params.bin can be generated by: tools/mkenvimage.
e.g. ./mkenvimage -s 4096 -o params.bin <env_text_file>
Every new env variable in text file should start with a new line.
Sample env text file:
- board/samsung/common/dfu_sample_env.txt
Requirements:
- file name: "params.bin"
- file size: 4096 Bytes - the same as CONFIG_ENV_SIZE.
Other size will cause CRC miscalculation at boot.
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
CC: Piotr Wilczek <p.wilczek@samsung.com>
CC: Lukasz Majewski <l.majewski@samsung.com>
---
board/samsung/common/dfu_sample_env.txt | 9 +++++++++
include/configs/trats.h | 3 ++-
include/configs/trats2.h | 3 ++-
3 files changed, 13 insertions(+), 2 deletions(-)
create mode 100644 board/samsung/common/dfu_sample_env.txt
diff --git a/board/samsung/common/dfu_sample_env.txt b/board/samsung/common/dfu_sample_env.txt
new file mode 100644
index 0000000..d6ee8a2
--- /dev/null
+++ b/board/samsung/common/dfu_sample_env.txt
@@ -0,0 +1,9 @@
+mmcboot=setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} ${rootfstype} rootwait ${console}; run loaduimage; bootm 0x40007FC0
+rootfstype=ext4
+loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage
+mmcdev=0
+mmcbootpart=2
+mmcrootpart=5
+console=console=ttySAC2,115200n8
+bootcmd=run mmcboot
+dfu_alt_info=u-boot mmc 80 800;params.bin mmc 0x38 0x8;uImage ext4 0 2
diff --git a/include/configs/trats.h b/include/configs/trats.h
index fdd8b46..d09f7c7 100644
--- a/include/configs/trats.h
+++ b/include/configs/trats.h
@@ -147,7 +147,8 @@
""PARTS_BOOT" part 0 2;" \
""PARTS_ROOT" part 0 5;" \
""PARTS_DATA" part 0 6;" \
- ""PARTS_UMS" part 0 7\0"
+ ""PARTS_UMS" part 0 7;" \
+ "params.bin mmc 0x38 0x8\0"
#define CONFIG_ENV_OVERWRITE
#define CONFIG_SYS_CONSOLE_INFO_QUIET
diff --git a/include/configs/trats2.h b/include/configs/trats2.h
index 83633b0..31c52f1 100644
--- a/include/configs/trats2.h
+++ b/include/configs/trats2.h
@@ -178,7 +178,8 @@
""PARTS_BOOT" part 0 2;" \
""PARTS_ROOT" part 0 5;" \
""PARTS_DATA" part 0 6;" \
- ""PARTS_UMS" part 0 7\0"
+ ""PARTS_UMS" part 0 7;" \
+ "params.bin mmc 0x38 0x8\0"
#define CONFIG_EXTRA_ENV_SETTINGS \
"bootk=" \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread* [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings
2014-01-22 11:02 [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings Przemyslaw Marczak
@ 2014-01-22 11:08 ` Przemyslaw Marczak
2014-01-24 10:06 ` Jaehoon Chung
2014-01-22 11:47 ` Lukasz Majewski
2014-02-03 7:17 ` Minkyu Kang
2 siblings, 1 reply; 5+ messages in thread
From: Przemyslaw Marczak @ 2014-01-22 11:08 UTC (permalink / raw)
To: u-boot
CC
On 01/22/2014 12:02 PM, Przemyslaw Marczak wrote:
> This change allows updating environment stored on MMC by dfu or thor.
>
> New setting:
> - "params.bin mmc 0x38 0x8"
>
> File params.bin can be generated by: tools/mkenvimage.
> e.g. ./mkenvimage -s 4096 -o params.bin <env_text_file>
>
> Every new env variable in text file should start with a new line.
>
> Sample env text file:
> - board/samsung/common/dfu_sample_env.txt
>
> Requirements:
> - file name: "params.bin"
> - file size: 4096 Bytes - the same as CONFIG_ENV_SIZE.
> Other size will cause CRC miscalculation at boot.
>
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> CC: Piotr Wilczek <p.wilczek@samsung.com>
> CC: Lukasz Majewski <l.majewski@samsung.com>
> ---
> board/samsung/common/dfu_sample_env.txt | 9 +++++++++
> include/configs/trats.h | 3 ++-
> include/configs/trats2.h | 3 ++-
> 3 files changed, 13 insertions(+), 2 deletions(-)
> create mode 100644 board/samsung/common/dfu_sample_env.txt
>
> diff --git a/board/samsung/common/dfu_sample_env.txt b/board/samsung/common/dfu_sample_env.txt
> new file mode 100644
> index 0000000..d6ee8a2
> --- /dev/null
> +++ b/board/samsung/common/dfu_sample_env.txt
> @@ -0,0 +1,9 @@
> +mmcboot=setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} ${rootfstype} rootwait ${console}; run loaduimage; bootm 0x40007FC0
> +rootfstype=ext4
> +loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage
> +mmcdev=0
> +mmcbootpart=2
> +mmcrootpart=5
> +console=console=ttySAC2,115200n8
> +bootcmd=run mmcboot
> +dfu_alt_info=u-boot mmc 80 800;params.bin mmc 0x38 0x8;uImage ext4 0 2
> diff --git a/include/configs/trats.h b/include/configs/trats.h
> index fdd8b46..d09f7c7 100644
> --- a/include/configs/trats.h
> +++ b/include/configs/trats.h
> @@ -147,7 +147,8 @@
> ""PARTS_BOOT" part 0 2;" \
> ""PARTS_ROOT" part 0 5;" \
> ""PARTS_DATA" part 0 6;" \
> - ""PARTS_UMS" part 0 7\0"
> + ""PARTS_UMS" part 0 7;" \
> + "params.bin mmc 0x38 0x8\0"
>
> #define CONFIG_ENV_OVERWRITE
> #define CONFIG_SYS_CONSOLE_INFO_QUIET
> diff --git a/include/configs/trats2.h b/include/configs/trats2.h
> index 83633b0..31c52f1 100644
> --- a/include/configs/trats2.h
> +++ b/include/configs/trats2.h
> @@ -178,7 +178,8 @@
> ""PARTS_BOOT" part 0 2;" \
> ""PARTS_ROOT" part 0 5;" \
> ""PARTS_DATA" part 0 6;" \
> - ""PARTS_UMS" part 0 7\0"
> + ""PARTS_UMS" part 0 7;" \
> + "params.bin mmc 0x38 0x8\0"
>
> #define CONFIG_EXTRA_ENV_SETTINGS \
> "bootk=" \
>
Thank you,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings
2014-01-22 11:08 ` Przemyslaw Marczak
@ 2014-01-24 10:06 ` Jaehoon Chung
0 siblings, 0 replies; 5+ messages in thread
From: Jaehoon Chung @ 2014-01-24 10:06 UTC (permalink / raw)
To: u-boot
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Best Regards,
Jaehoon Chung
On 01/22/2014 08:08 PM, Przemyslaw Marczak wrote:
> CC
>
> On 01/22/2014 12:02 PM, Przemyslaw Marczak wrote:
>> This change allows updating environment stored on MMC by dfu or thor.
>>
>> New setting:
>> - "params.bin mmc 0x38 0x8"
>>
>> File params.bin can be generated by: tools/mkenvimage.
>> e.g. ./mkenvimage -s 4096 -o params.bin <env_text_file>
>>
>> Every new env variable in text file should start with a new line.
>>
>> Sample env text file:
>> - board/samsung/common/dfu_sample_env.txt
>>
>> Requirements:
>> - file name: "params.bin"
>> - file size: 4096 Bytes - the same as CONFIG_ENV_SIZE.
>> Other size will cause CRC miscalculation at boot.
>>
>> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
>> CC: Piotr Wilczek <p.wilczek@samsung.com>
>> CC: Lukasz Majewski <l.majewski@samsung.com>
>> ---
>> board/samsung/common/dfu_sample_env.txt | 9 +++++++++
>> include/configs/trats.h | 3 ++-
>> include/configs/trats2.h | 3 ++-
>> 3 files changed, 13 insertions(+), 2 deletions(-)
>> create mode 100644 board/samsung/common/dfu_sample_env.txt
>>
>> diff --git a/board/samsung/common/dfu_sample_env.txt b/board/samsung/common/dfu_sample_env.txt
>> new file mode 100644
>> index 0000000..d6ee8a2
>> --- /dev/null
>> +++ b/board/samsung/common/dfu_sample_env.txt
>> @@ -0,0 +1,9 @@
>> +mmcboot=setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart} ${rootfstype} rootwait ${console}; run loaduimage; bootm 0x40007FC0
>> +rootfstype=ext4
>> +loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart} 0x40007FC0 uImage
>> +mmcdev=0
>> +mmcbootpart=2
>> +mmcrootpart=5
>> +console=console=ttySAC2,115200n8
>> +bootcmd=run mmcboot
>> +dfu_alt_info=u-boot mmc 80 800;params.bin mmc 0x38 0x8;uImage ext4 0 2
>> diff --git a/include/configs/trats.h b/include/configs/trats.h
>> index fdd8b46..d09f7c7 100644
>> --- a/include/configs/trats.h
>> +++ b/include/configs/trats.h
>> @@ -147,7 +147,8 @@
>> ""PARTS_BOOT" part 0 2;" \
>> ""PARTS_ROOT" part 0 5;" \
>> ""PARTS_DATA" part 0 6;" \
>> - ""PARTS_UMS" part 0 7\0"
>> + ""PARTS_UMS" part 0 7;" \
>> + "params.bin mmc 0x38 0x8\0"
>>
>> #define CONFIG_ENV_OVERWRITE
>> #define CONFIG_SYS_CONSOLE_INFO_QUIET
>> diff --git a/include/configs/trats2.h b/include/configs/trats2.h
>> index 83633b0..31c52f1 100644
>> --- a/include/configs/trats2.h
>> +++ b/include/configs/trats2.h
>> @@ -178,7 +178,8 @@
>> ""PARTS_BOOT" part 0 2;" \
>> ""PARTS_ROOT" part 0 5;" \
>> ""PARTS_DATA" part 0 6;" \
>> - ""PARTS_UMS" part 0 7\0"
>> + ""PARTS_UMS" part 0 7;" \
>> + "params.bin mmc 0x38 0x8\0"
>>
>> #define CONFIG_EXTRA_ENV_SETTINGS \
>> "bootk=" \
>>
>
> Thank you,
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings
2014-01-22 11:02 [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings Przemyslaw Marczak
2014-01-22 11:08 ` Przemyslaw Marczak
@ 2014-01-22 11:47 ` Lukasz Majewski
2014-02-03 7:17 ` Minkyu Kang
2 siblings, 0 replies; 5+ messages in thread
From: Lukasz Majewski @ 2014-01-22 11:47 UTC (permalink / raw)
To: u-boot
Hi Przemyslaw,
> This change allows updating environment stored on MMC by dfu or thor.
>
> New setting:
> - "params.bin mmc 0x38 0x8"
>
> File params.bin can be generated by: tools/mkenvimage.
> e.g. ./mkenvimage -s 4096 -o params.bin <env_text_file>
>
> Every new env variable in text file should start with a new line.
>
> Sample env text file:
> - board/samsung/common/dfu_sample_env.txt
>
> Requirements:
> - file name: "params.bin"
> - file size: 4096 Bytes - the same as CONFIG_ENV_SIZE.
> Other size will cause CRC miscalculation at boot.
>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> CC: Piotr Wilczek <p.wilczek@samsung.com>
> CC: Lukasz Majewski <l.majewski@samsung.com>
> ---
> board/samsung/common/dfu_sample_env.txt | 9 +++++++++
> include/configs/trats.h | 3 ++-
> include/configs/trats2.h | 3 ++-
> 3 files changed, 13 insertions(+), 2 deletions(-)
> create mode 100644 board/samsung/common/dfu_sample_env.txt
>
> diff --git a/board/samsung/common/dfu_sample_env.txt
> b/board/samsung/common/dfu_sample_env.txt new file mode 100644
> index 0000000..d6ee8a2
> --- /dev/null
> +++ b/board/samsung/common/dfu_sample_env.txt
> @@ -0,0 +1,9 @@
> +mmcboot=setenv bootargs root=/dev/mmcblk${mmcdev}p${mmcrootpart}
> ${rootfstype} rootwait ${console}; run loaduimage; bootm 0x40007FC0
> +rootfstype=ext4 +loaduimage=ext4load mmc ${mmcdev}:${mmcbootpart}
> 0x40007FC0 uImage +mmcdev=0
> +mmcbootpart=2
> +mmcrootpart=5
> +console=console=ttySAC2,115200n8
> +bootcmd=run mmcboot
> +dfu_alt_info=u-boot mmc 80 800;params.bin mmc 0x38 0x8;uImage ext4 0
> 2 diff --git a/include/configs/trats.h b/include/configs/trats.h
> index fdd8b46..d09f7c7 100644
> --- a/include/configs/trats.h
> +++ b/include/configs/trats.h
> @@ -147,7 +147,8 @@
> ""PARTS_BOOT" part 0 2;" \
> ""PARTS_ROOT" part 0 5;" \
> ""PARTS_DATA" part 0 6;" \
> - ""PARTS_UMS" part 0 7\0"
> + ""PARTS_UMS" part 0 7;" \
> + "params.bin mmc 0x38 0x8\0"
>
> #define CONFIG_ENV_OVERWRITE
> #define CONFIG_SYS_CONSOLE_INFO_QUIET
> diff --git a/include/configs/trats2.h b/include/configs/trats2.h
> index 83633b0..31c52f1 100644
> --- a/include/configs/trats2.h
> +++ b/include/configs/trats2.h
> @@ -178,7 +178,8 @@
> ""PARTS_BOOT" part 0 2;" \
> ""PARTS_ROOT" part 0 5;" \
> ""PARTS_DATA" part 0 6;" \
> - ""PARTS_UMS" part 0 7\0"
> + ""PARTS_UMS" part 0 7;" \
> + "params.bin mmc 0x38 0x8\0"
>
> #define CONFIG_EXTRA_ENV_SETTINGS \
> "bootk=" \
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
^ permalink raw reply [flat|nested] 5+ messages in thread* [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings
2014-01-22 11:02 [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings Przemyslaw Marczak
2014-01-22 11:08 ` Przemyslaw Marczak
2014-01-22 11:47 ` Lukasz Majewski
@ 2014-02-03 7:17 ` Minkyu Kang
2 siblings, 0 replies; 5+ messages in thread
From: Minkyu Kang @ 2014-02-03 7:17 UTC (permalink / raw)
To: u-boot
On 22/01/14 20:02, Przemyslaw Marczak wrote:
> This change allows updating environment stored on MMC by dfu or thor.
>
> New setting:
> - "params.bin mmc 0x38 0x8"
>
> File params.bin can be generated by: tools/mkenvimage.
> e.g. ./mkenvimage -s 4096 -o params.bin <env_text_file>
>
> Every new env variable in text file should start with a new line.
>
> Sample env text file:
> - board/samsung/common/dfu_sample_env.txt
>
> Requirements:
> - file name: "params.bin"
> - file size: 4096 Bytes - the same as CONFIG_ENV_SIZE.
> Other size will cause CRC miscalculation at boot.
>
> Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
> CC: Piotr Wilczek <p.wilczek@samsung.com>
> CC: Lukasz Majewski <l.majewski@samsung.com>
> ---
> board/samsung/common/dfu_sample_env.txt | 9 +++++++++
> include/configs/trats.h | 3 ++-
> include/configs/trats2.h | 3 ++-
> 3 files changed, 13 insertions(+), 2 deletions(-)
> create mode 100644 board/samsung/common/dfu_sample_env.txt
>
applied to u-boot-samsung.
Thanks,
Minkyu Kang.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-02-03 7:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22 11:02 [U-Boot] [PATCH] config: trats: trats2: extend dfu_alt_info by env update settings Przemyslaw Marczak
2014-01-22 11:08 ` Przemyslaw Marczak
2014-01-24 10:06 ` Jaehoon Chung
2014-01-22 11:47 ` Lukasz Majewski
2014-02-03 7:17 ` Minkyu Kang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox