From: Wolfgang Denk Date: Fri, 16 Sep 2011 23:09:50 +0200 Subject: [U-Boot] [PATCH 2/3] usb/gadget: add the fastboot gadget In-Reply-To: <1316191879-27214-3-git-send-email-bigeasy@linutronix.de> References: <1316191879-27214-1-git-send-email-bigeasy@linutronix.de> <1316191879-27214-3-git-send-email-bigeasy@linutronix.de> Message-ID: <20110916210950.420B711EF9D9@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sebastian Andrzej Siewior, In message <1316191879-27214-3-git-send-email-bigeasy@linutronix.de> you 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. > The gadget implements the getvar, reboot, download and reboot commands. > What is missing is the flash handling i.e. writting the image to media. > > Signed-off-by: Sebastian Andrzej Siewior ... > diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c > new file mode 100644 > index 0000000..6c3cae5 > --- /dev/null > +++ b/drivers/usb/gadget/f_fastboot.c > @@ -0,0 +1,549 @@ > +/* > + * The file is based on content which was > + * (C) Copyright 2008 - 2009 > + * Windriver, > + * Tom Rix > + * > + * but after the chainsaw attack by > + * Copyright (c) 2011 Sebastian Andrzej Siewior > + * > + * there isn't much left. The license is in both cases GPLv2 as published > + * by the FSF > + */ For U-Boot, we need GPLv2+. Please see bullet # 3 at http://www.denx.de/wiki/view/U-Boot/Patches#Attributing_Code_Copyrights_Sign and note # 1 at http://www.denx.de/wiki/view/U-Boot/Patches#Notes Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de That was the thing about deserts. They had their own gravity. They sucked you into the centre. - Terry Pratchett, _Small Gods_