Skip to content

RFC SPL: DFU Support in SPL

Lukasz Majewski u-boot 2 versions – New

Get series with b4
b4 am 20160725121640.5d08edf0@amdc2363

Versions newest first · linked by author and title

  1. v2 RFC Latest3 of 5 patches 0 repliesNew
  2. v1 RFC6 patches 0 repliesSuperseded

3 of 5 patches are in this archive. The cover letter announces 5.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
2/5common: dfu: saperate the dfu common functionality+0 -01 reply
3/5spl: dfu: adding dfu support functions for SPL-DFU+0 -01 reply
3/5spl: dfu: adding dfu support functions for SPL-DFU+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [U-Boot] [RFC PATCH v2 0/5] SPL: DFU Support in SPL

Hi Ravi,

Quoted 19 lines

Traditionally the DFU support is available only as part 2nd stage boot loader(u-boot) and DFU is not supported in SPL.

The SPL-DFU feature is useful for boards which does not have MMC/SD, ethernet boot mechanism to boot the board and only has USB inteface.

This patch add DFU support in SPL with RAM memory device support to load and execute u-boot from PC over USB interface. And then leverage full functional feature of DFU in u-boot to flash boot inital binary images to factory or bare-metal boards to memory devices like SPI, eMMC, MMC/SD card using USB interface.

As a reference, refer to application note [3] on SPL-DFU support based on 2014.07 u-boot.

Quoted 9 lines

Steps to build SPL-DFU/RAM:
This SPL-DFU support can be enabled through Menuconfig->Boot Images->Enable SPL-DFU support
1) Soc ROMcode loads the u-boot-spl.bin(+DFU) to IRAM from PC host via usb interface and execute DFU.
2) Then load u-boot.img to RAM using dfu-util from PC-host with -R switch to boot u-boot.
#sudo dfu-util -c 1 -i 0 -a 0 -D u-boot.img -R

I wanted to add this patch series for testing. Unfortunately, I cannot apply this code to the newest u-boot-usb/master (SHA1:
eb364c3dc28d59d33e823470d07746b22a8e6fee)

Please rebase your code on top of this branch.

Thanks in advance,

Signature · 5 lines
Best regards,

Lukasz Majewski

Samsung R&D Institute Poland (SRPOL) | Linux Platform Group