[U-Boot] [PATCH] am43xx_evm: Add DFU support for qspi flash

Tom Rini trini at konsulko.com
Wed Oct 21 15:59:15 CEST 2015


On Wed, Oct 21, 2015 at 06:38:23PM +0530, Vignesh R wrote:
> Hi Lokesh,
> 
> On 10/21/2015 06:10 PM, Lokesh Vutla wrote:
> > 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 at 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.
> 
> ok, Will send a v2.

And boot test it after writing too, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151021/18596674/attachment.sig>


More information about the U-Boot mailing list