All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC
@ 2017-12-12 18:07 Sam Protsenko
  2017-12-13  5:34 ` Lokesh Vutla
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Sam Protsenko @ 2017-12-12 18:07 UTC (permalink / raw)
  To: u-boot

Use dfu_alt_info_emmc variable from include/environment/ti/dfu.h file.
It was probably overlooked when extracting DFU variables to mentioned
file.

This patch fixes DFU on BeagleBone Black, so that we can use commands
like ones below to upgrade various images on eMMC:

    => setenv dfu_alt_info $dfu_alt_info_emmc
    => dfu 0 mmc 1

    $ dfu-util -D MLO -a MLO.raw
    $ dfu-util -D u-boot.img -a u-boot.img.raw

Without this patch, the  user is forced to assign the value to
dfu_alt_info_emmc manually, which contradicts with instructions [1].

[1] http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
---
 include/configs/am335x_evm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 5ad0366730..856c546fc1 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -255,7 +255,7 @@
 /* USB Device Firmware Update support */
 #ifndef CONFIG_SPL_BUILD
 #define DFUARGS \
-	"dfu_alt_info_emmc=rawemmc raw 0 3751936\0" \
+	DFU_ALT_INFO_EMMC \
 	DFU_ALT_INFO_MMC \
 	DFU_ALT_INFO_RAM \
 	DFU_ALT_INFO_NAND
-- 
2.15.0

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC
  2017-12-12 18:07 [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC Sam Protsenko
@ 2017-12-13  5:34 ` Lokesh Vutla
  2017-12-13 10:12 ` Lukasz Majewski
  2017-12-18 23:37 ` [U-Boot] " Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Lokesh Vutla @ 2017-12-13  5:34 UTC (permalink / raw)
  To: u-boot



On Tuesday 12 December 2017 11:37 PM, Sam Protsenko wrote:
> Use dfu_alt_info_emmc variable from include/environment/ti/dfu.h file.
> It was probably overlooked when extracting DFU variables to mentioned
> file.
> 
> This patch fixes DFU on BeagleBone Black, so that we can use commands
> like ones below to upgrade various images on eMMC:
> 
>     => setenv dfu_alt_info $dfu_alt_info_emmc
>     => dfu 0 mmc 1
> 
>     $ dfu-util -D MLO -a MLO.raw
>     $ dfu-util -D u-boot.img -a u-boot.img.raw
> 
> Without this patch, the  user is forced to assign the value to
> dfu_alt_info_emmc manually, which contradicts with instructions [1].
> 
> [1] http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC
  2017-12-12 18:07 [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC Sam Protsenko
  2017-12-13  5:34 ` Lokesh Vutla
@ 2017-12-13 10:12 ` Lukasz Majewski
  2017-12-18 23:37 ` [U-Boot] " Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Lukasz Majewski @ 2017-12-13 10:12 UTC (permalink / raw)
  To: u-boot

On Tue, 12 Dec 2017 20:07:41 +0200
Sam Protsenko <semen.protsenko@linaro.org> wrote:

> Use dfu_alt_info_emmc variable from include/environment/ti/dfu.h file.
> It was probably overlooked when extracting DFU variables to mentioned
> file.
> 
> This patch fixes DFU on BeagleBone Black, so that we can use commands
> like ones below to upgrade various images on eMMC:
> 
>     => setenv dfu_alt_info $dfu_alt_info_emmc
>     => dfu 0 mmc 1  
> 
>     $ dfu-util -D MLO -a MLO.raw
>     $ dfu-util -D u-boot.img -a u-boot.img.raw
> 
> Without this patch, the  user is forced to assign the value to
> dfu_alt_info_emmc manually, which contradicts with instructions [1].
> 
> [1]
> http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> ---
>  include/configs/am335x_evm.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/am335x_evm.h
> b/include/configs/am335x_evm.h index 5ad0366730..856c546fc1 100644
> --- a/include/configs/am335x_evm.h
> +++ b/include/configs/am335x_evm.h
> @@ -255,7 +255,7 @@
>  /* USB Device Firmware Update support */
>  #ifndef CONFIG_SPL_BUILD
>  #define DFUARGS \
> -	"dfu_alt_info_emmc=rawemmc raw 0 3751936\0" \
> +	DFU_ALT_INFO_EMMC \
>  	DFU_ALT_INFO_MMC \
>  	DFU_ALT_INFO_RAM \
>  	DFU_ALT_INFO_NAND

Reviewed-by: Lukasz Majewski <lukma@denx.de>

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171213/cc3c5d42/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] am335x_evm: Fix DFU for eMMC
  2017-12-12 18:07 [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC Sam Protsenko
  2017-12-13  5:34 ` Lokesh Vutla
  2017-12-13 10:12 ` Lukasz Majewski
@ 2017-12-18 23:37 ` Tom Rini
  2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2017-12-18 23:37 UTC (permalink / raw)
  To: u-boot

On Tue, Dec 12, 2017 at 08:07:41PM +0200, Sam Protsenko wrote:

> Use dfu_alt_info_emmc variable from include/environment/ti/dfu.h file.
> It was probably overlooked when extracting DFU variables to mentioned
> file.
> 
> This patch fixes DFU on BeagleBone Black, so that we can use commands
> like ones below to upgrade various images on eMMC:
> 
>     => setenv dfu_alt_info $dfu_alt_info_emmc
>     => dfu 0 mmc 1
> 
>     $ dfu-util -D MLO -a MLO.raw
>     $ dfu-util -D u-boot.img -a u-boot.img.raw
> 
> Without this patch, the  user is forced to assign the value to
> dfu_alt_info_emmc manually, which contradicts with instructions [1].
> 
> [1] http://processors.wiki.ti.com/index.php/Linux_Core_U-Boot_User%27s_Guide
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
> Reviewed-by: Lukasz Majewski <lukma@denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20171218/6bd50ace/attachment.sig>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-12-18 23:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-12 18:07 [U-Boot] [PATCH] am335x_evm: Fix DFU for eMMC Sam Protsenko
2017-12-13  5:34 ` Lokesh Vutla
2017-12-13 10:12 ` Lukasz Majewski
2017-12-18 23:37 ` [U-Boot] " Tom Rini

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.