* [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash
@ 2015-10-22 6:00 Vignesh R
2015-10-28 4:44 ` Vignesh R
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Vignesh R @ 2015-10-22 6:00 UTC (permalink / raw)
To: u-boot
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.bin -a u-boot.bin
Signed-off-by: Vignesh R <vigneshr@ti.com>
---
v2:
* change u-boot.img to u-boot.bin.
Tested on am437x-sk-evm by flashing u-boot.bin and zImage and verified
by reading back u-boot.bin and zImage in kernel.
QSPI XIP boot itself is broken on u-boot mainline (even w/o this patch),
hence cannot verify XIP boot using DFU.
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..e3b7817cc3d9 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.bin raw 0x0 0x080000;" \
+ "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
--
2.6.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash
2015-10-22 6:00 [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash Vignesh R
@ 2015-10-28 4:44 ` Vignesh R
2015-11-04 7:39 ` Vignesh R
2015-11-13 1:31 ` [U-Boot] [U-Boot, " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Vignesh R @ 2015-10-28 4:44 UTC (permalink / raw)
To: u-boot
On 10/22/2015 11:30 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.bin -a u-boot.bin
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
Gentle ping...
>
> v2:
> * change u-boot.img to u-boot.bin.
>
> Tested on am437x-sk-evm by flashing u-boot.bin and zImage and verified
> by reading back u-boot.bin and zImage in kernel.
> QSPI XIP boot itself is broken on u-boot mainline (even w/o this patch),
> hence cannot verify XIP boot using DFU.
>
> 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..e3b7817cc3d9 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.bin raw 0x0 0x080000;" \
> + "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
>
--
Regards
Vignesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash
2015-10-22 6:00 [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash Vignesh R
2015-10-28 4:44 ` Vignesh R
@ 2015-11-04 7:39 ` Vignesh R
2015-11-13 1:31 ` [U-Boot] [U-Boot, " Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Vignesh R @ 2015-11-04 7:39 UTC (permalink / raw)
To: u-boot
On 10/22/2015 11:30 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.bin -a u-boot.bin
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
> ---
>
Gentle Ping...
> v2:
> * change u-boot.img to u-boot.bin.
>
> Tested on am437x-sk-evm by flashing u-boot.bin and zImage and verified
> by reading back u-boot.bin and zImage in kernel.
> QSPI XIP boot itself is broken on u-boot mainline (even w/o this patch),
> hence cannot verify XIP boot using DFU.
>
> 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..e3b7817cc3d9 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.bin raw 0x0 0x080000;" \
> + "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
>
--
Regards
Vignesh
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [U-Boot, v2] am43xx_evm: Add DFU support for qspi flash
2015-10-22 6:00 [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash Vignesh R
2015-10-28 4:44 ` Vignesh R
2015-11-04 7:39 ` Vignesh R
@ 2015-11-13 1:31 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2015-11-13 1:31 UTC (permalink / raw)
To: u-boot
On Thu, Oct 22, 2015 at 11:30:53AM +0530, 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.bin -a u-boot.bin
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>
Applied to u-boot/master, 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/20151112/af01021a/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-13 1:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-22 6:00 [U-Boot] [PATCH v2] am43xx_evm: Add DFU support for qspi flash Vignesh R
2015-10-28 4:44 ` Vignesh R
2015-11-04 7:39 ` Vignesh R
2015-11-13 1:31 ` [U-Boot] [U-Boot, " Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox