am43xx_evm: Add DFU support for qspi flash
PATCH 1/1 am43xx_evm: Add DFU support for qspi flash
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
---
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(-)
include/configs/am43xx_evm.h +12 -1
@@ -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;" \ + "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
Signature · 1 line
2.6.2
PATCH 1/1 am43xx_evm: Add DFU support for qspi flash
Hi Vignesh,
Quoted 24 lines · Vignesh R
This adds support to update firmware on qspi flash present on am437x-sk-evm and am43xx-epos-evm via DFU.
On device:
=> setenvdfu_alt_info${dfu_alt_info_qspi}
=> dfu 0 sf 0:0On host:
$ sudo dfu-util -l $ sudo dfu-util -D u-boot.img -a u-boot.imgSigned-off-by Vignesh R <[email protected]>---
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(-)include/configs/am43xx_evm.h +0
-0
include/configs/am43xx_evm.h line 171
Quoted 7 lines
include/configs/am43xx_evm.h +4
-0@@ -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
Quoted 17 lines
include/configs/am43xx_evm.h +8
-1+"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
PATCH 1/1 am43xx_evm: Add DFU support for qspi flash
Hi Lokesh,
Quoted 30 lines · Lokesh Vutla
Hi Vignesh,
Quoted 27 lines · Vignesh R
This adds support to update firmware on qspi flash present on am437x-sk-evm and am43xx-epos-evm via DFU.
On device:
=> setenvdfu_alt_info${dfu_alt_info_qspi}
=> dfu 0 sf 0:0On host:
$ sudo dfu-util -l $ sudo dfu-util -D u-boot.img -a u-boot.imgSigned-off-by Vignesh R <[email protected]>---
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(-)include/configs/am43xx_evm.h +0
-0@@ -165,11 +165,22 @@"fdt ram 0x80f80000 0x80000;" \"ramdisk ram 0x81000000 0x4000000\0"
Quoted 6 lines
include/configs/am43xx_evm.h line 171
Quoted 4 lines
include/configs/am43xx_evm.h +4
-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.
Signature · 2 lines
Regards Vignesh
PATCH 1/1 am43xx_evm: Add DFU support for qspi flash
Quoted 33 lines · Vignesh R
Hi Lokesh,
Quoted 30 lines · Lokesh Vutla
Hi Vignesh,
Quoted 27 lines · Vignesh R
This adds support to update firmware on qspi flash present on am437x-sk-evm and am43xx-epos-evm via DFU.
On device:
=> setenvdfu_alt_info${dfu_alt_info_qspi}
=> dfu 0 sf 0:0On host:
$ sudo dfu-util -l $ sudo dfu-util -D u-boot.img -a u-boot.imgSigned-off-by Vignesh R <[email protected]>---
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(-)include/configs/am43xx_evm.h +0
-0@@ -165,11 +165,22 @@"fdt ram 0x80f80000 0x80000;" \"ramdisk ram 0x81000000 0x4000000\0"
Quoted 8 lines
Quoted 6 lines
include/configs/am43xx_evm.h line 171
Quoted 4 lines
include/configs/am43xx_evm.h +4
-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!
Signature · 8 lines
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>