public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support
@ 2017-08-04 23:38 Stefan Agner
  2017-08-04 23:38 ` [U-Boot] [PATCH v1 1/7] imx: move imximage header to common location Stefan Agner
                   ` (8 more replies)
  0 siblings, 9 replies; 30+ messages in thread
From: Stefan Agner @ 2017-08-04 23:38 UTC (permalink / raw)
  To: u-boot

From: Stefan Agner <stefan.agner@toradex.com>

This series adds NXP's Serial Download Protocol (SDP) support via
USB for SPL/U-Boot. It allows to download U-Boot via USB from a
(recovered) SPL using the same tools used to download SPL itself
(specifically imx_usb, but also sb_loader seems to work).

The idea has been brought up when the first targets started to make
use of SPL for DDR initialization, see:
https://lists.denx.de/pipermail/u-boot/2015-July/220330.html

The initial SDP implementation (patch 2) requires the payload to
have the imx specific headers (hence the move of the imx header
file in patch 1).

Patch 3 extends image header support beyond the SDP specification,
specifically implements also support for U-Boot headers. This
allows to use the same SPL/U-Boot binaries for recovery as used on
the regular boot device (SD/eMMC). For that to work also the host
side imx_usb tools needed an extension, currently available here:

https://github.com/toradex/imx_loader/tree/imx_usb_batch_mode_refactored

The full patchset allows to download SPL and U-Boot over USB to a
target in recovery mode using the same usb_imx utility:

The usb_imx utility also has a batch mode which allows to download
multiple artifacts with a single invocation. The details are
outlined in the imx_usb commit message:
https://github.com/toradex/imx_loader/commit/5434415d921f1cc4d22332d9558bed6d42db9f60

In case this patchset gets accepted in U-Boot, I plan to push the
imx_usb changes upstream as well.


Stefan Agner (7):
  imx: move imximage header to common location
  usb: gadget: add SDP driver
  usb: gadget: sdp: extend images compatible for jumps
  cmd: add sdp command
  spl: add serial download protocol (SDP) support
  apalis/colibri_imx6: use independent USB PID for SPL
  apalis/colibri_imx6: enable SDP by default

 board/toradex/apalis_imx6/apalis_imx6.c   |  13 +
 board/toradex/colibri_imx6/colibri_imx6.c |  13 +
 cmd/Kconfig                               |   7 +
 cmd/Makefile                              |   1 +
 cmd/usb_gadget_sdp.c                      |  53 +++
 common/spl/Kconfig                        |   6 +
 common/spl/Makefile                       |   1 +
 common/spl/spl_sdp.c                      |  38 ++
 configs/apalis_imx6_defconfig             |   4 +
 configs/colibri_imx6_defconfig            |   4 +
 drivers/usb/gadget/Kconfig                |   7 +
 drivers/usb/gadget/Makefile               |   2 +
 drivers/usb/gadget/f_sdp.c                | 739 ++++++++++++++++++++++++++++++
 {tools => include}/imximage.h             |   0
 include/sdp.h                             |  16 +
 15 files changed, 904 insertions(+)
 create mode 100644 cmd/usb_gadget_sdp.c
 create mode 100644 common/spl/spl_sdp.c
 create mode 100644 drivers/usb/gadget/f_sdp.c
 rename {tools => include}/imximage.h (100%)
 create mode 100644 include/sdp.h

-- 
2.13.3

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

end of thread, other threads:[~2017-08-16  9:49 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-04 23:38 [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support Stefan Agner
2017-08-04 23:38 ` [U-Boot] [PATCH v1 1/7] imx: move imximage header to common location Stefan Agner
2017-08-08 22:09   ` Łukasz Majewski
2017-08-04 23:38 ` [U-Boot] [PATCH v1 2/7] usb: gadget: add SDP driver Stefan Agner
2017-08-08 10:42   ` Lothar Waßmann
2017-08-08 22:16   ` Łukasz Majewski
2017-08-10  8:14   ` Stefano Babic
2017-08-15 21:54     ` Stefan Agner
2017-08-16  9:49       ` Stefano Babic
2017-08-04 23:38 ` [U-Boot] [PATCH v1 3/7] usb: gadget: sdp: extend images compatible for jumps Stefan Agner
2017-08-08 22:17   ` Łukasz Majewski
2017-08-10  8:15   ` Stefano Babic
2017-08-04 23:38 ` [U-Boot] [PATCH v1 4/7] cmd: add sdp command Stefan Agner
2017-08-08 22:19   ` Łukasz Majewski
2017-08-10  8:16   ` Stefano Babic
2017-08-04 23:38 ` [U-Boot] [PATCH v1 5/7] spl: add serial download protocol (SDP) support Stefan Agner
2017-08-08 10:43   ` Lothar Waßmann
2017-08-08 21:23     ` Stefan Agner
2017-08-09  0:59   ` Stefan Agner
2017-08-10  7:56     ` Stefano Babic
2017-08-10  8:17   ` Stefano Babic
2017-08-04 23:38 ` [U-Boot] [PATCH v1 6/7] apalis/colibri_imx6: use independent USB PID for SPL Stefan Agner
2017-08-04 23:38 ` [U-Boot] [PATCH v1 7/7] apalis/colibri_imx6: enable SDP by default Stefan Agner
2017-08-06 15:19 ` [U-Boot] [PATCH v1 0/7] imx: add USB Serial Download Protocol (SDP) support Eric Nelson
2017-08-07 18:06   ` Stefan Agner
2017-08-08  9:15     ` Stefano Babic
2017-08-08 12:05       ` Marcel Ziswiler
2017-08-08 17:35       ` Stefan Agner
2017-08-08 23:25     ` Eric Nelson
2017-08-08 22:08 ` Łukasz Majewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox