From: Jaehoon Chung <jh80.chung@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] trats: enable dfu and thor protocol for Tizen download
Date: Tue, 12 Nov 2013 18:23:14 +0900 [thread overview]
Message-ID: <5281F382.5040906@samsung.com> (raw)
In-Reply-To: <1384246717-20431-1-git-send-email-p.wilczek@samsung.com>
Hi Piotr,
I think good that used the "trats2:xxx" instead of "trats: xxx" at subject.
On 11/12/2013 05:58 PM, Piotr Wilczek wrote:
> Trats2 config is updated to support DFU mode.
> Malloc pool must be increased for DFU buffer allocation.
>
> Signed-off-by: Piotr Wilczek <p.wilczek@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> CC: Minkyu Kang <mk7.kang@samsung.com>
> ---
> This patch is based on
> http://patchwork.ozlabs.org/patch/289378/
>
> include/configs/trats2.h | 22 ++++++++++++++++++----
> 1 file changed, 18 insertions(+), 4 deletions(-)
>
> diff --git a/include/configs/trats2.h b/include/configs/trats2.h
> index 66b1c95..52bb5e5 100644
> --- a/include/configs/trats2.h
> +++ b/include/configs/trats2.h
> @@ -65,10 +65,9 @@
>
> #define CONFIG_DISPLAY_CPUINFO
>
> -/*
> - * Size of malloc() pool
> - */
> -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (2 << 20))
> +#include <asm/sizes.h>
> +/* Size of malloc() pool */
> +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 * SZ_1M))
>
> /* select serial console configuration */
> #define CONFIG_SERIAL2
> @@ -100,6 +99,7 @@
> #define CONFIG_CMD_CACHE
> #define CONFIG_CMD_I2C
> #define CONFIG_CMD_MMC
> +#define CONFIG_CMD_DFU
> #define CONFIG_CMD_GPT
> #define CONFIG_CMD_PMIC
>
> @@ -115,12 +115,19 @@
>
> /* USB Composite download gadget - g_dnl */
> #define CONFIG_USBDOWNLOAD_GADGET
> +#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
> #define CONFIG_DFU_FUNCTION
> #define CONFIG_DFU_MMC
>
> +/* TIZEN THOR downloader support */
> +#define CONFIG_CMD_THOR_DOWNLOAD
> +#define CONFIG_THOR_FUNCTION
> +
> /* USB Samsung's IDs */
> #define CONFIG_G_DNL_VENDOR_NUM 0x04E8
> #define CONFIG_G_DNL_PRODUCT_NUM 0x6601
> +#define CONFIG_G_DNL_THOR_VENDOR_NUM CONFIG_G_DNL_VENDOR_NUM
> +#define CONFIG_G_DNL_THOR_PRODUCT_NUM 0x685D
> #define CONFIG_G_DNL_MANUFACTURER "Samsung"
>
> /* To use the TFTPBOOT over USB, Please enable the CONFIG_CMD_NET */
> @@ -165,6 +172,12 @@
> "name="PARTS_CSC",size=150MiB,uuid=${uuid_gpt_"PARTS_CSC"};" \
> "name="PARTS_UMS",size=-,uuid=${uuid_gpt_"PARTS_UMS"}\0" \
>
> +#define CONFIG_DFU_ALT \
> + "u-boot mmc 80 400;" \
I recommend the "u-boot mmc 80 800"
Best Regards,
Jaehoon Chung
> + "uImage ext4 0 2;" \
> + "exynos4412-trats2.dtb ext4 0 2;" \
> + ""PARTS_ROOT" part 0 5\0"
> +
> #define CONFIG_EXTRA_ENV_SETTINGS \
> "bootk=" \
> "run loaddtb; run loaduimage; bootm 0x40007FC0 - ${fdtaddr}\0" \
> @@ -197,6 +210,7 @@
> "mmcrootpart=5\0" \
> "opts=always_resume=1\0" \
> "partitions=" PARTS_DEFAULT \
> + "dfu_alt_info=" CONFIG_DFU_ALT \
> "uartpath=ap\0" \
> "usbpath=ap\0" \
> "consoleon=set console console=ttySAC2,115200n8; save; reset\0" \
>
next prev parent reply other threads:[~2013-11-12 9:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-12 8:58 [U-Boot] [PATCH] trats: enable dfu and thor protocol for Tizen download Piotr Wilczek
2013-11-12 9:23 ` Jaehoon Chung [this message]
2013-11-12 9:34 ` Piotr Wilczek
2013-11-12 14:22 ` [U-Boot] [PATCH V2] trats2: " Piotr Wilczek
2013-12-02 7:53 ` Minkyu Kang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5281F382.5040906@samsung.com \
--to=jh80.chung@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.