<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/usb/gadget/f_fastboot.c, branch v2016.05</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget/f_fastboot.c?h=v2016.05</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/usb/gadget/f_fastboot.c?h=v2016.05'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2016-04-25T15:56:30Z</updated>
<entry>
<title>fastboot: Clean up bulk-out logic</title>
<updated>2016-04-25T15:56:30Z</updated>
<author>
<name>Roger Quadros</name>
<email>rogerq@ti.com</email>
</author>
<published>2016-04-19T07:16:59Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=ac484c5a6a5745503a5c1b83a3d4c1808b677ebf'/>
<id>urn:sha1:ac484c5a6a5745503a5c1b83a3d4c1808b677ebf</id>
<content type='text'>
Just use ep-&gt;maxpacket to get the maxpacket size
and simplify the bulk-out maxpacket alignment.

Signed-off-by: Roger Quadros &lt;rogerq@ti.com&gt;
Tested-by: Steve Rae &lt;srae@broadcom.com&gt;
</content>
</entry>
<entry>
<title>fastboot: Enable the respective speed endpoints at runtime</title>
<updated>2016-04-25T15:56:30Z</updated>
<author>
<name>Roger Quadros</name>
<email>rogerq@ti.com</email>
</author>
<published>2016-04-13T08:30:00Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=8b704a0e3d71ca8d1610ae0a877aa42dfdd8de82'/>
<id>urn:sha1:8b704a0e3d71ca8d1610ae0a877aa42dfdd8de82</id>
<content type='text'>
In a dual speed configuration we need to check at runtime if
we want to enable the Full-Speed or High-Speed endpoint.

Signed-off-by: Roger Quadros &lt;rogerq@ti.com&gt;
Acked-by: Lukasz Majewski &lt;l.majewski@samsung.com&gt;
Tested-by: Steve Rae &lt;srae@broadcom.com&gt;
[Test HW: bcm235xx board]
</content>
</entry>
<entry>
<title>fastboot: Fix wMaxPacketSize for High-Speed IN endpoint</title>
<updated>2016-04-25T15:56:30Z</updated>
<author>
<name>Roger Quadros</name>
<email>rogerq@ti.com</email>
</author>
<published>2016-04-12T12:51:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=718156ad0ab076f94fbfc5f2628e6b43d1f5a127'/>
<id>urn:sha1:718156ad0ab076f94fbfc5f2628e6b43d1f5a127</id>
<content type='text'>
wMaxPacketSize for IN endpoing in High-Speed must be 512 and not 64.
While fixing that we do some clean ups like

- use cpu_to_le16(decimal_length) instead of hexadecimal length.
- No need to initialize bInterval to 0. Static variables are 0 initialized.
- Move descriptor setting from fastboot_add to to fastboot_bind.
- check for dual speed configuration before setting the high speed descriptors.

Signed-off-by: Roger Quadros &lt;rogerq@ti.com&gt;
Tested-by: Steve Rae &lt;srae@broadcom.com&gt;
Tested-by: Steve Rae &lt;srae@broadcom.com&gt; [Test HW: bcm235xx board]
</content>
</entry>
<entry>
<title>fastboot: allow retrieving fastboot variables from env</title>
<updated>2016-04-01T21:17:40Z</updated>
<author>
<name>Rob Herring</name>
<email>rob.herring@linaro.org</email>
</author>
<published>2016-03-17T16:21:23Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=74322201dde4593dc3194c702e95e5760e6b497a'/>
<id>urn:sha1:74322201dde4593dc3194c702e95e5760e6b497a</id>
<content type='text'>
Some boards need to expose device specific variable through fastboot
(to adpat the flashing script depending on hardware revision for
example).

Provide a way to expose custom fastboot variables. Note that all
variables meant to be exposed through fastboot should be be prefixed
with 'fastboot.', the variable should not exceed 32 bytes (including
the prefix and the trailing '\0') and the variable content should
fit in the response buffer (60 bytes excluding the 'OKAY' prefix and
the trailing '\0').

Signed-off-by: Rob Herring &lt;rob.herring@linaro.org&gt;
[Boris Brezillon: add a commit message]
Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;

Signed-off-by: Boris Brezillon &lt;boris.brezillon@free-electrons.com&gt;
Acked-by: Steve Rae &lt;srae@broadcom.com&gt;
</content>
</entry>
<entry>
<title>fastboot: update error and warning messages</title>
<updated>2016-02-24T18:12:33Z</updated>
<author>
<name>Steve Rae</name>
<email>srae@broadcom.com</email>
</author>
<published>2016-01-27T23:02:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a18c2706f15ac3460cb902d37705f90ffae84ce6'/>
<id>urn:sha1:a18c2706f15ac3460cb902d37705f90ffae84ce6</id>
<content type='text'>
Fix the formatting in error messages, and demote one error message
to a warning, as it is only informational.

Signed-off-by: Steve Rae &lt;srae@broadcom.com&gt;
</content>
</entry>
<entry>
<title>Fix GCC format-security errors and convert sprintfs.</title>
<updated>2016-01-15T03:11:34Z</updated>
<author>
<name>Ben Whitten</name>
<email>ben.whitten@gmail.com</email>
</author>
<published>2015-12-30T13:05:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=192bc6948b02ff4168cab16162fffb507946dc2b'/>
<id>urn:sha1:192bc6948b02ff4168cab16162fffb507946dc2b</id>
<content type='text'>
With format-security errors turned on, GCC picks up the use of sprintf with
a format parameter not being a string literal.

Simple uses of sprintf are also converted to use strcpy.

Signed-off-by: Ben Whitten &lt;ben.whitten@gmail.com&gt;
Acked-by: Wolfgang Denk &lt;wd@denx.de&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>fastboot: Implement NAND backend</title>
<updated>2015-11-12T18:18:58Z</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime.ripard@free-electrons.com</email>
</author>
<published>2015-10-15T12:34:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=bf8940d35b91ef87e0e4e691c5d8cc356fcae035'/>
<id>urn:sha1:bf8940d35b91ef87e0e4e691c5d8cc356fcae035</id>
<content type='text'>
So far the fastboot code was only supporting MMC-backed devices for its
flashing operations (flash and erase).

Add a storage backend for NAND-backed devices.

Signed-off-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
</content>
</entry>
<entry>
<title>fastboot: Implement flashing session counter</title>
<updated>2015-11-12T18:17:32Z</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime.ripard@free-electrons.com</email>
</author>
<published>2015-10-15T12:34:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=6c9e00eebfd7244d74068832a1bb7f8679d1861a'/>
<id>urn:sha1:6c9e00eebfd7244d74068832a1bb7f8679d1861a</id>
<content type='text'>
The fastboot flash command that writes an image to a partition works in
several steps:

1 - Retrieve the maximum size the device can download through the
    "max-download-size" variable

2 - Retrieve the partition type through the "partition-type:%s" variable,
    that indicates whether or not the partition needs to be erased (even
    though the fastboot client has minimal support for that)

3a - If the image is smaller than what the device can handle, send the image
     and flash it.

3b - If the image is larger than what the device can handle, create a
     sparse image, and split it in several chunks that would fit. Send the
     chunk, flash it, repeat until we have no more data to send.

However, in the 3b case, the subsequent transfers have no particular
identifiers, the protocol just assumes that you would resume the writes
where you left it.

While doing so works well, it also means that flashing two subsequent
images on the same partition (for example because the user made a mistake)
would not work withouth flashing another partition or rebooting the board,
which is not really intuitive.

Since we have always the same pattern, we can however maintain a counter
that will be reset every time the client will retrieve max-download-size,
and incremented after each buffer will be flashed, that will allow us to
tell whether we should simply resume the flashing where we were, or start
back at the beginning of the partition.

Signed-off-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>fastboot: Move fastboot response functions to fastboot core</title>
<updated>2015-11-12T18:17:31Z</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime.ripard@free-electrons.com</email>
</author>
<published>2015-10-15T12:34:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=3c8f98f5fed5c6f03bb185b79191477885748b14'/>
<id>urn:sha1:3c8f98f5fed5c6f03bb185b79191477885748b14</id>
<content type='text'>
The functions and a few define to generate a fastboot message to be sent
back to the host were so far duplicated among the users.

Move them all to a common place.

Signed-off-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
<entry>
<title>fastboot: Implement OEM format only when we have MMC support</title>
<updated>2015-10-20T20:48:28Z</updated>
<author>
<name>Maxime Ripard</name>
<email>maxime.ripard@free-electrons.com</email>
</author>
<published>2015-10-15T20:04:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=4adef27013f76c03596e4fd65193b936943aa50a'/>
<id>urn:sha1:4adef27013f76c03596e4fd65193b936943aa50a</id>
<content type='text'>
The current fastboot support assumes that CONFIG_FASTBOOT_FLASH implies
that we have an MMC in our system, which might not be the case if we have
some other storage device.

Change the configuration option protecting that call to
FASTBOOT_FLASH_MMC_DEV, that makes much more sense.

Signed-off-by: Maxime Ripard &lt;maxime.ripard@free-electrons.com&gt;
Reviewed-by: Tom Rini &lt;trini@konsulko.com&gt;
Reviewed-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
Signed-off-by: Hans de Goede &lt;hdegoede@redhat.com&gt;
</content>
</entry>
</feed>
