From: Ravi Babu <ravibabu@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH v1 0/6] SPL: DFU Support in SPL
Date: Tue, 14 Jun 2016 16:32:18 +0530 [thread overview]
Message-ID: <1465902144-30934-1-git-send-email-ravibabu@ti.com> (raw)
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 feature enable DFU to be builtin part of SPL and
boot the u-boot directly by loading u-boot image
to RAM from PC using dfu-util.
This patch series adds DFU support in SPL to flash binary
images to factory or bare-metal boards to memory
devices like SPI, RAM, 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.
steps for SPL-DFU/RAM:
1) Soc ROMcode loads the u-boot-spl.bin(+DFU) to IRAM
from PC host via usb interface and execute DFU(RAM/SPI).
2) if DFU/RAM is selected, then load u-boot.img
to RAM using dfu-util from PC-host.
3) After loading u-boot, press ctrl+c to exit to jump
to u-boot. Once u-boot
steps for SPL-DFU/SPI:
1) Soc ROMcode loads the u-boot-spl.bin(+DFU) to IRAM
from PC host via usb interface and execute DFU(RAM/SPI).
2) If DFU/SPI is selected, then load MLO/u-boot/kernel/dtb
images directly to spi partitions.
Note: I could not find better option to isolate dfu source
to include/exclude in Makefile when SPL-DFU feature
enabled/disabled, please suggest any better option.
Tested on dra7xx SoCs family.
[1] is EVM console output with SPL-DFU/SPI enabled.
[2] is ubuntu host console output.
references:
[1] http://pastebin.ubuntu.com/16730701/
[2] http://pastebin.ubuntu.com/16730765/
[3] http://www.ti.com/lit/an/sprac33/sprac33.pdf
Ravi Babu (6):
spl: dfu: add dfu support in SPL
spl: dfu: adding dfu support functions for SPL-DFU
dfu: spl: add generic spl-dfu function in common-spl
dra7x: spl: dfu: adding SPL-DFU support for dra7x platform
dfu: spl: dra7x: enable SPL-dfu support for dra7x platform
dfu: spl: am335x: SPL-DFU support for am335x
Kconfig | 33 ++++++++
board/ti/am335x/board.c | 15 ++++
board/ti/dra7xx/evm.c | 17 ++++
common/Makefile | 26 +++++--
common/command.c | 2 +-
common/spl/Makefile | 1 +
common/spl/spl.c | 9 +++
common/spl/spl_dfu.c | 154 +++++++++++++++++++++++++++++++++++++
include/configs/am335x_evm.h | 17 +++-
include/configs/dra7xx_evm.h | 8 +-
include/configs/ti_omap5_common.h | 2 -
include/spl.h | 11 +++
scripts/Makefile.spl | 13 ++++
13 files changed, 293 insertions(+), 15 deletions(-)
create mode 100644 common/spl/spl_dfu.c
--
1.7.9.5
next reply other threads:[~2016-06-14 11:02 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-14 11:02 Ravi Babu [this message]
2016-06-14 11:02 ` [U-Boot] [RFC PATCH v1 1/6] spl: dfu: add dfu support in SPL Ravi Babu
2016-06-24 8:50 ` Lukasz Majewski
2016-06-24 8:54 ` B, Ravi
2016-06-14 11:02 ` [U-Boot] [RFC PATCH v1 2/6] spl: dfu: adding dfu support functions for SPL-DFU Ravi Babu
2016-06-24 9:00 ` Lukasz Majewski
2016-06-24 9:02 ` B, Ravi
2016-06-14 11:02 ` [U-Boot] [RFC PATCH v1 3/6] dfu: spl: add generic spl-dfu function in common-spl Ravi Babu
2016-06-24 9:01 ` Lukasz Majewski
2016-06-14 11:02 ` [U-Boot] [RFC PATCH v1 4/6] dra7x: spl: dfu: adding SPL-DFU support for dra7x platform Ravi Babu
2016-06-24 9:10 ` Lukasz Majewski
2016-06-24 9:27 ` B, Ravi
2016-06-14 11:02 ` [U-Boot] [RFC PATCH v1 5/6] dfu: spl: dra7x: enable SPL-dfu " Ravi Babu
2016-06-24 9:12 ` Lukasz Majewski
2016-06-24 9:21 ` B, Ravi
2016-06-14 11:02 ` [U-Boot] [RFC PATCH v1 6/6] dfu: spl: am335x: SPL-DFU support for am335x Ravi Babu
2016-06-24 9:15 ` Lukasz Majewski
2016-06-24 9:29 ` B, Ravi
2016-06-21 8:39 ` [U-Boot] [RFC PATCH v1 0/6] SPL: DFU Support in SPL B, Ravi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1465902144-30934-1-git-send-email-ravibabu@ti.com \
--to=ravibabu@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox