From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Date: Tue, 31 Jul 2012 11:14:15 -0600 Subject: [U-Boot] [PATCH v3 5/7] dfu:cmd: Support for DFU u-boot command In-Reply-To: <1343716623-8943-6-git-send-email-l.majewski@samsung.com> References: <1341308291-14663-1-git-send-email-l.majewski@samsung.com> <1343716623-8943-1-git-send-email-l.majewski@samsung.com> <1343716623-8943-6-git-send-email-l.majewski@samsung.com> Message-ID: <50181267.7000005@wwwdotorg.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/31/2012 12:37 AM, Lukasz Majewski wrote: > Support for u-boot's "dfu [list]" command. > +U_BOOT_CMD(dfu, CONFIG_SYS_MAXARGS, 1, do_dfu, > + "Device Firmware Upgrade", > + " [list]\n" > + " - device firmware upgrade on a device \n" > + " attached to 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).