From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/10] trats: Update TRATS config to support TIZEN download
Date: Thu, 3 Oct 2013 17:51:37 +0200 [thread overview]
Message-ID: <201310031751.37252.marex@denx.de> (raw)
In-Reply-To: <1380800841-21673-11-git-send-email-l.majewski@samsung.com>
Dear Lukasz Majewski,
> A set of environment variables needs to be updated to provide support for
> TIZEN download command (tizendown).
>
> Since DFU is used as a flashing backend, it is also necessary to extent
> malloc pool size for DFU buffer allocation.
> Moreover, for compatibility reasons (Win vs. Lin) new USB idProduct number
> for download gadget had to be added.
>
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> Cc: Marek Vasut <marex@denx.de>
> ---
> include/configs/trats.h | 13 +++++++++++--
> 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/include/configs/trats.h b/include/configs/trats.h
> index 24ea06b..955bd20 100644
> --- a/include/configs/trats.h
> +++ b/include/configs/trats.h
> @@ -50,7 +50,7 @@
> #define CONFIG_MACH_TYPE MACH_TYPE_TRATS
>
> /* Size of malloc() pool */
> -#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (16 << 20))
> +#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (80 << 20))
Use SZ_1M instead of that l-shift by 20.
>
> /* select serial console configuration */
> #define CONFIG_SERIAL2 /* use SERIAL 2 */
> @@ -91,12 +91,20 @@
>
> /* USB Composite download gadget - g_dnl */
> #define CONFIG_USBDOWNLOAD_GADGET
> +
> +/* TIZEN THOR downloader support */
> +#define CONFIG_CMD_THOR_DOWNLOAD
> +#define CONFIG_THOR_FUNCTION
> +
> +#define CONFIG_SYS_DFU_DATA_BUF_SIZE (32 << 20)
DTTO
> #define CONFIG_DFU_FUNCTION
> #define CONFIG_DFU_MMC
>
> /* 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"
>
> #define CONFIG_BOOTDELAY 1
> @@ -131,7 +139,8 @@
> #define CONFIG_DFU_ALT \
> "u-boot mmc 80 400;" \
> "uImage ext4 0 2;" \
> - "exynos4210-trats.dtb ext4 0 2\0"
> + "exynos4210-trats.dtb ext4 0 2;" \
> + ""PARTS_ROOT" part 0 5\0"
>
> #define CONFIG_ENV_OVERWRITE
> #define CONFIG_SYS_CONSOLE_INFO_QUIET
btw. I'm picking this patch before this set:
[PATCH v5] usb: new board-specific USB init interface
So you might want to wait until it's applied onto usb/next and then rebase and
repost.
Best regards,
Marek Vasut
next prev parent reply other threads:[~2013-10-03 15:51 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-03 11:47 [U-Boot] [PATCH 00/10] usb: Support for TIZEN's THOR download protocol Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer Lukasz Majewski
2013-10-03 15:21 ` Marek Vasut
2013-10-04 7:28 ` Lukasz Majewski
2013-10-04 10:26 ` Marek Vasut
2013-10-04 12:24 ` Lukasz Majewski
2013-10-04 16:18 ` Marek Vasut
2013-10-04 17:37 ` Lukasz Majewski
2013-10-04 18:01 ` Marek Vasut
2013-10-03 11:47 ` [U-Boot] [PATCH 02/10] dfu:core: Find DFU alt setting number by passing its name Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 03/10] dfu:core: Export dfu_{get|free}_buf functions Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 04/10] usb:g_dnl: Replace static usb_configuration structure with dynamically allocated one Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 05/10] usb:g_dnl: Add name parameter to g_dnl_bind_fixup function Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 06/10] usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol Lukasz Majewski
2013-10-03 15:48 ` Marek Vasut
2013-10-04 8:30 ` Lukasz Majewski
2013-10-04 10:28 ` Marek Vasut
2013-10-04 12:05 ` Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 07/10] usb:g_dnl: Support for TIZEN's THOR function at generic download code Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 08/10] cmd:thor: Support for TIZEN's download (thordown) command Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 09/10] samsung:common:thor: Define common Samsung code to handle THOR usb descriptor setup Lukasz Majewski
2013-10-03 11:47 ` [U-Boot] [PATCH 10/10] trats: Update TRATS config to support TIZEN download Lukasz Majewski
2013-10-03 15:51 ` Marek Vasut [this message]
2013-10-04 8:32 ` Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 00/10] usb: Support for TIZEN's THOR download protocol Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 01/10] usb:udc:s3c: Reduce dcache invalidate range for UDC receive buffer Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 02/10] dfu:core: Find DFU alt setting number by passing its name Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 03/10] dfu:core: Export dfu_{get|free}_buf functions Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 04/10] usb:g_dnl: Replace static usb_configuration structure with dynamically allocated one Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 05/10] usb:g_dnl: Add name parameter to g_dnl_bind_fixup function Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 06/10] usb:g_dnl:f_thor: USB download function to support TIZEN's THOR protocol Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 07/10] usb:g_dnl: Support for TIZEN's THOR function in generic download code Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 08/10] cmd:thor: Support for TIZEN's download command (thordown) Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 09/10] samsung:common:thor: Define common Samsung code to handle THOR usb descriptor setup Lukasz Majewski
2013-10-08 12:30 ` [U-Boot] [PATCH v2 10/10] trats: Update TRATS config to support TIZEN download Lukasz Majewski
2013-10-10 0:41 ` [U-Boot] [PATCH v2 00/10] usb: Support for TIZEN's THOR download protocol Marek Vasut
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=201310031751.37252.marex@denx.de \
--to=marex@denx.de \
--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.