[U-Boot] [PATCH 2/2] usb/gadget: add the fastboot gadget
Sebastian Andrzej Siewior
bigeasy at linutronix.de
Wed Nov 23 11:27:39 CET 2011
* Stefan Schmidt | 2011-11-21 15:48:29 [+0100]:
>Hello.
Hi,
>On Mon, 2011-11-21 at 15:09, Sebastian Andrzej Siewior wrote:
>> This patch contains an implementation of the fastboot protocol on the
>> device side and a little of documentation.
>> The gadget expects the new-style gadget framework.
>
>Which what hardware do you test this? So far I have only seen patches
>(not applied yet) for the Samsung UDC controller that are providing
>the usb_gadget_register_driver() functions. Consumer is only ether.c
>so far.
DWC3. This one is new and already merged into the linux kernel. This one
is on my list once I have the fastboot part merged :)
There should be an at91 udc driver in the uboot-usb git tree. The last
time I checked, the at91 driver was in the next branch.
>Any other hardware platforms that support the new style gadget
>framework yet? Do'n get me wrong, I like it and would like to see more
>drivers moving to it but I wonder what support on a hardware driver
>level we have for it yet.
All drivers in u-boot are using the old style interface which is linux
from the late 2.4 time frame or very early 2.6. The dwc3 for which I
plan to have fastboot is a huge usb3 drd controller. Having two
different codebases does not make much sense.
>> The gadget implements the getvar, reboot, download and reboot commands.
>> What is missing is the flash handling i.e. writting the image to media.
>
>You may have seen the DFU patches on this list recently. There is also
>a split between the DFU protocol and the flashing backend. Would it
>make sense to see if fastboot and DFU could use the same flashing
>backend and platform specific bits?
I haven't seen it yet. From the protocol layer it is simple: You are
told to receive X bytes. Once you sucked it up are told where you have
to write it. The destination address is a partition name. So what I
planned to do is to add the android partition format which is efi/guid
based I think and then simply execute a "nand write data partition"
command. If there is code that can be shared between DFU and this
fastboot thingy then I'm the last person that does not want it.
>regards
>Stefan Schmidt
Sebastian
More information about the U-Boot
mailing list