[U-Boot] [RFC PATCH v1 1/6] spl: dfu: add dfu support in SPL

B, Ravi ravibabu at ti.com
Fri Jun 24 10:54:59 CEST 2016


Hi Lukasz

> > 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 has only USB inteface 
> > and do not have external interface like ethernet or MMC/SD to boot the 
> > board.
> > 
> > This patch add DFU support in SPL to flash boot inital binary images 
> > to factory or bare-metal boards to memory devices like SPI, eMMC, 
> > MMC/SD card using USB interface.
> > 
> > This SPL-DFU support can be enabled through
> > Menuconfig->Boot Images->Enable SPL-DFU support
> > 
> > Signed-off-by: Ravi Babu <ravibabu at ti.com>
> > ---
> >  Kconfig              |   33 +++++++++++++++++++++++++++++++++
> >  common/Makefile      |   26 +++++++++++++++++++-------
> >  common/command.c     |    2 +-
> >  scripts/Makefile.spl |   13 +++++++++++++
> >  4 files changed, 66 insertions(+), 8 deletions(-)
> > 
> > diff --git a/Kconfig b/Kconfig
> > index f53759a..969641e 100644
> > --- a/Kconfig
> > +++ b/Kconfig
> > @@ -285,6 +285,39 @@ config SPL_LOAD_FIT
> >  	  particular it can handle selecting from multiple device tree and 
> > passing the correct one to U-Boot.
> >  
> > +config SPL_DFU
> > +	bool "Enable SPL with DFU to load binaries to bootdevices
> > using USB"
> > +	depends on USB && CMD_DFU && TARGET_DRA7XX_EVM

> Is this dependency correct? Especially the CONFIG_CMD_DFU? As fair as I remember, we don't need "dfu" command to make SPL dfu working.

I do agree, I did not use  cmd/dfu.c. Will clean it up.

> What we do need are
> CONFIG_USB_GADGET_DOWNLOAD,CONFIG_USB_FUNCTION_THOR,
> CONFIG_USB_FUNCTION_DFU, etc.

Regards
Ravi 


More information about the U-Boot mailing list