]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
config: trats: trats2: extend dfu_alt_info by env update settings
authorPrzemyslaw Marczak <p.marczak@samsung.com>
Wed, 22 Jan 2014 11:02:47 +0000 (12:02 +0100)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 3 Feb 2014 07:09:10 +0000 (16:09 +0900)
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>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/common/dfu_sample_env.txt [new file with mode: 0644]
include/configs/trats.h
include/configs/trats2.h

diff --git a/board/samsung/common/dfu_sample_env.txt b/board/samsung/common/dfu_sample_env.txt
new file mode 100644 (file)
index 0000000..d6ee8a2
--- /dev/null
@@ -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
index a623371cd17b6e3572224630dfff9642653e04e8..41de414485a3a0787601697b24a4f16327b317f4 100644 (file)
        ""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
index 095f253c26aa21df08a5cbeca2ed4a48acfcadd5..b72f4920d90e4ded851b9a53029b581e54654f5c 100644 (file)
        ""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=" \