[U-Boot] [PATCH v3 5/7] dfu:cmd: Support for DFU u-boot command

Stephen Warren swarren at wwwdotorg.org
Tue Jul 31 19:14:15 CEST 2012


On 07/31/2012 12:37 AM, Lukasz Majewski wrote:
> Support for u-boot's "dfu <interface> <dev> [list]" command.

> +U_BOOT_CMD(dfu, CONFIG_SYS_MAXARGS, 1, do_dfu,
> +	"Device Firmware Upgrade",
> +	"<interface> <dev> [list]\n"
> +	"  - device firmware upgrade on a device <dev>\n"
> +	"    attached to interface <interface>\n"
> +	"    [list] - list available alt settings"
> +);

Hmm. Is there any way to make this work without specifying "interface
dev", or to allow specifying multiple "interface dev" entries? On a
system with all of eMMC, NAND, and SPI, I'd like to just run "dfu" as
the U-Boot command, and have the host specify which of those "devices"
it wants to download to using the DFU protocol. So, if flashing a bunch
of devices, there is no need to interact with U-Boot over both serial
and USB in order to invoke the dfu command multiple times.

Somewhat related to this, it looks like the eMMC support doesn't allow
the HW partition to be specified; it would be nice to expose alt
settings for all of:

a) Each individual HW partition (boot0/1 if present, general0/1/2/3 if
present, the user area, maybe the replay block)

b) Perhaps also a linearized view of the raw eMMC (LBAs 0..boot_size-1
write to boot 0, LBAs boot_size..(2*boot_size)-1 write to boot1, LBAs
2*boot_size..end_of_device write to user area for example).


More information about the U-Boot mailing list