[U-Boot] [PATCH v4 0/5] Android Fastboot support

Rob Herring
2014-04-18T13:54:27Z

From: Rob Herring <robh@kernel.org>

This is the 2nd version since I revived the fastboot patches Sebastian
submitted.

I'm reviving the Android Fastboot support after 2+ years since the last
posting[1]. The previous postings had some questions about licensing
and source of some code. I believe I've traced the history sufficiently
that the copyrights and source information are complete and correct.

The Android code used or referenced is BSD 2-clause license. This was
originally raised by Wolfgang that it was not compatible with GPLv2+. I
believe that has since been demonstrated and agreed that the BSD
2-clause license is compatible with u-boot.

As far as the history of the code, I have traced that back. The u-boot
code started in 2008/2009 by Tom Rix @ Windriver. This initial support
was then adopted and extended by TI (eMMC support primarily, not
included here) in their OMAP u-boot tree[2]. In 2011, the TI code was
used as a basis for upstream patches by Sebastian Siewior @ Linutronix.
The code has been rearranged quite a bit since the original, but the
content is pretty much the same. Some of the re-arranging left stale or
missing copyrights in the v2 version which I have corrected.

I've redone the fastboot code significantly to use the USB download
gadget composite driver. With this, I've consolidated the fastboot
function into a single file. I believe I've addressed all the review
comments, but many don't apply with the re-write.

I dropped the patch adding a loadsize env variable and added config
uptions instead to set the fastboot buffer size.

I've tested this series on a BeagleBoard.

Rob

[1] http://lists.denx.de/pipermail/u-boot/2011-November/110557.html
[2] http://git.omapzoom.org/?p=repo/u-boot.git;a=commit;h=601ff71c8d46b5e90e13613974a16d10f2006bb3

Rob Herring (3):
usb: handle NULL table in usb_gadget_get_string
usb: musb: fill in usb_gadget_unregister_driver
arm: beagle: enable Android fastboot support

Sebastian Siewior (2):
image: add support for Android's boot image format
usb/gadget: add the fastboot gadget

common/Makefile | 3 +
common/cmd_bootm.c | 23 +-
common/cmd_fastboot.c | 36 +++
common/image-android.c | 84 ++++++
common/image.c | 20 +-
doc/README.android-fastboot | 91 ++++++
doc/README.android-fastboot-protocol | 170 ++++++++++++
drivers/usb/gadget/Makefile | 1 +
drivers/usb/gadget/f_fastboot.c | 518 +++++++++++++++++++++++++++++++++++
drivers/usb/gadget/g_dnl.c | 6 +
drivers/usb/gadget/usbstring.c | 3 +
drivers/usb/musb-new/musb_uboot.c | 5 +-
include/android_image.h | 69 +++++
include/configs/omap3_beagle.h | 10 +
include/fastboot.h | 22 ++
include/image.h | 13 +
16 files changed, 1067 insertions(+), 7 deletions(-)
create mode 100644 common/cmd_fastboot.c
create mode 100644 common/image-android.c
create mode 100644 doc/README.android-fastboot
create mode 100644 doc/README.android-fastboot-protocol
create mode 100644 drivers/usb/gadget/f_fastboot.c
create mode 100644 include/android_image.h
create mode 100644 include/fastboot.h

--
1.9.1