From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 22 Jul 2016 09:41:42 -0400 Subject: [U-Boot] [RFC PATCH v2 1/5] spl: dfu: add dfu support in SPL In-Reply-To: <1469112797-5147-2-git-send-email-ravibabu@ti.com> References: <1469112797-5147-1-git-send-email-ravibabu@ti.com> <1469112797-5147-2-git-send-email-ravibabu@ti.com> Message-ID: <20160722134142.GB14698@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jul 21, 2016 at 08:23:13PM +0530, Ravi Babu wrote: > 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. > And then leverage full functionality 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. > > This SPL-DFU support can be enabled through > Menuconfig->Boot Images->Enable SPL-DFU support > > Signed-off-by: Ravi Babu > --- > Kconfig | 27 +++++++++++++++++++++++++++ > common/Makefile | 1 + > common/command.c | 2 +- > scripts/Makefile.spl | 4 ++++ > 4 files changed, 33 insertions(+), 1 deletion(-) > > diff --git a/Kconfig b/Kconfig > index ef12f9f..ed3e295 100644 > --- a/Kconfig > +++ b/Kconfig > @@ -336,6 +336,33 @@ config SPL_FIT_IMAGE_POST_PROCESS > injected into the FIT creation (i.e. the blobs would have been pre- > processed before being added to the FIT image). > > +config SPL_DFU_SUPPORT > + bool "Enable SPL with DFU to load binaries to memory device" > + depends on USB && TARGET_DRA7XX_EVM This seems needlessly restrictive. > diff --git a/common/command.c b/common/command.c > index e5d9b9c..d1c049c 100644 > --- a/common/command.c > +++ b/common/command.c > @@ -520,7 +520,7 @@ enum command_ret_t cmd_process(int flag, int argc, char * const argv[], > if (argc > cmdtp->maxargs) > rc = CMD_RET_USAGE; > > -#if defined(CONFIG_CMD_BOOTD) > +#if defined(CONFIG_CMD_BOOTD) && !defined(CONFIG_SPL_BUILD) > /* avoid "bootd" recursion */ > else if (cmdtp->cmd == do_bootd) { > if (flag & CMD_FLAG_BOOTD) { Why do we need this? -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: