All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lokesh Vutla <a0131933@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] am43xx_evm: Add DFU support for qspi flash
Date: Wed, 21 Oct 2015 18:10:47 +0530	[thread overview]
Message-ID: <562787CF.80307@ti.com> (raw)
In-Reply-To: <1445402452-27391-1-git-send-email-vigneshr@ti.com>

Hi Vignesh,

On Wednesday 21 October 2015 10:10 AM, Vignesh R wrote:
> This adds support to update firmware on qspi flash present on
> am437x-sk-evm and am43xx-epos-evm via DFU.
> 
> On device:
> => setenv dfu_alt_info ${dfu_alt_info_qspi}
> => dfu 0 sf 0:0
> 
> On host:
> $ sudo dfu-util -l
> $ sudo dfu-util -D u-boot.img -a u-boot.img
> 
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
> 
> Tested on am437x-sk-evm by flashing u-boot.img and zImage.
> 
>  include/configs/am43xx_evm.h | 13 ++++++++++++-
>  1 file changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h
> index 67d5c48ddeb6..c37420b79d98 100644
> --- a/include/configs/am43xx_evm.h
> +++ b/include/configs/am43xx_evm.h
> @@ -165,11 +165,22 @@
>  	"fdt ram 0x80f80000 0x80000;" \
>  	"ramdisk ram 0x81000000 0x4000000\0"
>  
> +#define CONFIG_DFU_SF
> +#define DFU_ALT_INFO_QSPI \
> +	"dfu_alt_info_qspi=" \
> +	"u-boot.img raw 0x0 0x080000;" \
It's always xip in am43xx, we copy u-boot.bin instead of u-boot.img.
Just rename this to u-boot.bin. Rest looks good to me.

Thanks and regards,
Lokesh


> +	"u-boot.backup raw 0x080000 0x080000;" \
> +	"u-boot-spl-os raw 0x100000 0x010000;" \
> +	"u-boot-env raw 0x110000 0x010000;" \
> +	"u-boot-env.backup raw 0x120000 0x010000;" \
> +	"kernel raw 0x130000 0x800000\0"
> +
>  #define DFUARGS \
>  	"dfu_bufsiz=0x10000\0" \
>  	DFU_ALT_INFO_MMC \
>  	DFU_ALT_INFO_EMMC \
> -	DFU_ALT_INFO_RAM
> +	DFU_ALT_INFO_RAM \
> +	DFU_ALT_INFO_QSPI
>  #else
>  #define DFUARGS
>  #endif
> 

  reply	other threads:[~2015-10-21 12:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-21  4:40 [U-Boot] [PATCH] am43xx_evm: Add DFU support for qspi flash Vignesh R
2015-10-21 12:40 ` Lokesh Vutla [this message]
2015-10-21 13:08   ` Vignesh R
2015-10-21 13:59     ` Tom Rini

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=562787CF.80307@ti.com \
    --to=a0131933@ti.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.