<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/fastboot/usb_windows.c, branch master</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>Move fastboot's Windows code to C++.</title>
<updated>2015-06-24T17:48:43+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2015-06-24T17:48:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=c636b64e31cefab659f11d05fcdbedf2fb9cf4c1'/>
<id>c636b64e31cefab659f11d05fcdbedf2fb9cf4c1</id>
<content type='text'>
Change-Id: I92414594cbdbc1896402c6d950d890042f8df6cf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I92414594cbdbc1896402c6d950d890042f8df6cf
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix adb/fastboot windows compilations.</title>
<updated>2014-12-10T00:03:29+00:00</updated>
<author>
<name>Christopher Ferris</name>
<email>cferris@google.com</email>
</author>
<published>2014-11-06T22:34:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=67a7a4ae274ebd873a78e791b96da35a210db0cc'/>
<id>67a7a4ae274ebd873a78e791b96da35a210db0cc</id>
<content type='text'>
Many of the windows files where not including stdlib.h even though they
are using malloc/free calls.

(cherry-pick of ae7bf0959bd3f79afbf365e41f015ed1c304afdc.)

Change-Id: If6959df9909d9d9928e9f4a2a96018166361cf3c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Many of the windows files where not including stdlib.h even though they
are using malloc/free calls.

(cherry-pick of ae7bf0959bd3f79afbf365e41f015ed1c304afdc.)

Change-Id: If6959df9909d9d9928e9f4a2a96018166361cf3c
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: turn on -Werror</title>
<updated>2014-05-14T15:33:56+00:00</updated>
<author>
<name>Mark Salyzyn</name>
<email>salyzyn@google.com</email>
</author>
<published>2014-04-30T21:05:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=5957c1ffe79b34d8b1859f9f11644d1007193cbc'/>
<id>5957c1ffe79b34d8b1859f9f11644d1007193cbc</id>
<content type='text'>
- Deal with a missing initializer issue
- Deal with some -Wunused issues
- Deal with some signed/unsigned issues
- switch to usleep from sleep to facilitate win_sdk compile

Change-Id: I64e32a5b0782aeed9582f489e866173c4df1afbf
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Deal with a missing initializer issue
- Deal with some -Wunused issues
- Deal with some signed/unsigned issues
- switch to usleep from sleep to facilitate win_sdk compile

Change-Id: I64e32a5b0782aeed9582f489e866173c4df1afbf
</pre>
</div>
</content>
</entry>
<entry>
<title>Fastboot: fix fastboot timeout issue of Windows host side</title>
<updated>2014-04-25T06:15:08+00:00</updated>
<author>
<name>Jiebing Li</name>
<email>jiebing.li@intel.com</email>
</author>
<published>2012-08-07T06:29:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=bbb7981e49048a657d724bfda9465cdfe7c03a87'/>
<id>bbb7981e49048a657d724bfda9465cdfe7c03a87</id>
<content type='text'>
Normally fastboot follows the procedure that host sends a command
to device and device sends back response after the command
is executed.

But sometimes device spends too long time to execute the command
so that timeout error occurs before host receives the response.

This patch fixes the issue by aligning with the solution of ADB.
ADB commit id: 1c4b760a5d41de3196572d50d1404e453174cf9a

Change-Id: I50e6bf428ea38219b64cca6ab82db22af28e0264
Author: Jiebing Li &lt;jiebing.li@intel.com&gt;
Signed-off-by: Bo Huang &lt;bo.b.huang@intel.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Normally fastboot follows the procedure that host sends a command
to device and device sends back response after the command
is executed.

But sometimes device spends too long time to execute the command
so that timeout error occurs before host receives the response.

This patch fixes the issue by aligning with the solution of ADB.
ADB commit id: 1c4b760a5d41de3196572d50d1404e453174cf9a

Change-Id: I50e6bf428ea38219b64cca6ab82db22af28e0264
Author: Jiebing Li &lt;jiebing.li@intel.com&gt;
Signed-off-by: Bo Huang &lt;bo.b.huang@intel.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Wait for device to disappear after reboot-bootloader.</title>
<updated>2013-10-17T20:06:32+00:00</updated>
<author>
<name>Mark Wachsler</name>
<email>wachsler@google.com</email>
</author>
<published>2013-10-02T13:35:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=157b00171a06f9ac2fd25ee3a86e801e896713d6'/>
<id>157b00171a06f9ac2fd25ee3a86e801e896713d6</id>
<content type='text'>
(Linux only for now) With fastboot reading serial numbers from sysfs, it had
become possible for a fastboot command issued immediately after rebooting
the bootloader to fail, because sysfs still thought the device was online.
To prevent this, after reboot-bootloader we wait for the device to disconnect.

Also made usb_read and usb_write fail immediately if the descriptor has been
closed; this prevents an incorrect error message ("Bad file descriptor")
when errors from fb_getvar are ignored (e.g., by fb_format_supported).

Also removed unused fd param from filter_usb_device, and simplified logic
in usb_write by using do/while instead of a special case for len == 0.

Change-Id: I799b857eab411fd8ad25f5777fc61c685152ea86
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(Linux only for now) With fastboot reading serial numbers from sysfs, it had
become possible for a fastboot command issued immediately after rebooting
the bootloader to fail, because sysfs still thought the device was online.
To prevent this, after reboot-bootloader we wait for the device to disconnect.

Also made usb_read and usb_write fail immediately if the descriptor has been
closed; this prevents an incorrect error message ("Bad file descriptor")
when errors from fb_getvar are ignored (e.g., by fb_format_supported).

Also removed unused fd param from filter_usb_device, and simplified logic
in usb_write by using do/while instead of a special case for len == 0.

Change-Id: I799b857eab411fd8ad25f5777fc61c685152ea86
</pre>
</div>
</content>
</entry>
<entry>
<title>resolved conflicts for merge of 13081c69 to master</title>
<updated>2012-05-02T01:34:22+00:00</updated>
<author>
<name>Scott Anderson</name>
<email>saa@android.com</email>
</author>
<published>2012-05-02T01:34:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=a61bcad58ba1f7359183a333ee58303ed67e4a2f'/>
<id>a61bcad58ba1f7359183a333ee58303ed67e4a2f</id>
<content type='text'>
Change-Id: I631e466fc53e9b0f4a39f24f959b4ae9b626bdda
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I631e466fc53e9b0f4a39f24f959b4ae9b626bdda
</pre>
</div>
</content>
</entry>
<entry>
<title>fastboot: Add ability to specify device path</title>
<updated>2012-04-19T18:59:09+00:00</updated>
<author>
<name>Scott Anderson</name>
<email>saa@android.com</email>
</author>
<published>2012-04-06T19:39:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=13081c6915220db03886b177f1a8e0b2c63467c9'/>
<id>13081c6915220db03886b177f1a8e0b2c63467c9</id>
<content type='text'>
For manufacturing and testing, there is a need to talk to
whatever device is connected to a given port on the host.  This
change modifies fastboot's "-s" option to take either a serial
number or a device path.  The device paths of the connected
devices can be listed using "fastboot -l devices" whose output
will resemble:

    016B75D60A00600D	usb:2-5	fastboot
    AD3C12020173	usb:1-4.3	fastboot

The second column lists the device paths.  If the -l option is
not given, the output from "fastboot devices" will be the same as
it used to be (i.e. the paths will not be printed).

Finally, note that the format of the device paths are platform
dependent.  The example above is from Linux.  On OS-X, the paths
will be "usb:" followed by hex digits.  For Windows, the device
paths will be printed as "????????????" and the -s option will
not be able to select a device until someone implements the
underlying functionality in usb_windows.c.

Change-Id: I1f01b8f47acd32edb0ac18db107316a2c923bbde
Signed-off-by: Scott Anderson &lt;saa@android.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For manufacturing and testing, there is a need to talk to
whatever device is connected to a given port on the host.  This
change modifies fastboot's "-s" option to take either a serial
number or a device path.  The device paths of the connected
devices can be listed using "fastboot -l devices" whose output
will resemble:

    016B75D60A00600D	usb:2-5	fastboot
    AD3C12020173	usb:1-4.3	fastboot

The second column lists the device paths.  If the -l option is
not given, the output from "fastboot devices" will be the same as
it used to be (i.e. the paths will not be printed).

Finally, note that the format of the device paths are platform
dependent.  The example above is from Linux.  On OS-X, the paths
will be "usb:" followed by hex digits.  For Windows, the device
paths will be printed as "????????????" and the -s option will
not be able to select a device until someone implements the
underlying functionality in usb_windows.c.

Change-Id: I1f01b8f47acd32edb0ac18db107316a2c923bbde
Signed-off-by: Scott Anderson &lt;saa@android.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove trailing whitespaces</title>
<updated>2012-02-28T15:21:08+00:00</updated>
<author>
<name>Anatol Pomazau</name>
<email>anatol@google.com</email>
</author>
<published>2012-02-28T15:21:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=5ae3f93f3bafbeb1fc9a3324475c58c725749c5e'/>
<id>5ae3f93f3bafbeb1fc9a3324475c58c725749c5e</id>
<content type='text'>
Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
</pre>
</div>
</content>
</entry>
<entry>
<title>Enlarge USB bulk transfer size for faster downloads</title>
<updated>2011-03-28T16:45:21+00:00</updated>
<author>
<name>David Krause</name>
<email>david.krause@motorola.com</email>
</author>
<published>2011-03-08T06:10:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=913eb8bf874fcec647667bd7113da65b6e38488a'/>
<id>913eb8bf874fcec647667bd7113da65b6e38488a</id>
<content type='text'>
The default USB transfer bulk is fixed as 4096 in fastboot util code for
Windows and Linux. Enlarging the bulk size can greatly improve the image
download speed via USB.

For Windows, adjust the max bulk size to 1MB to maximize the USB transfer
speed. With this change, the USB transfer speed can be doubled to 20MB/s.

For Linux, adjust the max bulk size to 16384 to maximize the USB transfer
speed according to MAX_USBFS_BUFFER_SIZE definition in drivers/usb/core/devio.c.

For OSX, the maxLenToSend is already 1MB in code.

Change-Id: If6af8c6301f6f6c2ef345e37241706f16d8f5cda
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The default USB transfer bulk is fixed as 4096 in fastboot util code for
Windows and Linux. Enlarging the bulk size can greatly improve the image
download speed via USB.

For Windows, adjust the max bulk size to 1MB to maximize the USB transfer
speed. With this change, the USB transfer speed can be doubled to 20MB/s.

For Linux, adjust the max bulk size to 16384 to maximize the USB transfer
speed according to MAX_USBFS_BUFFER_SIZE definition in drivers/usb/core/devio.c.

For OSX, the maxLenToSend is already 1MB in code.

Change-Id: If6af8c6301f6f6c2ef345e37241706f16d8f5cda
</pre>
</div>
</content>
</entry>
<entry>
<title>Make fastboot say "no permissions" for non-writable devices.</title>
<updated>2009-10-07T01:07:49+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2009-10-07T01:07:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=b4add9b74525210478bac702d27fdaf9cf7ab18f'/>
<id>b4add9b74525210478bac702d27fdaf9cf7ab18f</id>
<content type='text'>
Without this patch, "adb devices" will say "no permissions" when it sees
a device it can't write to, but "fastboot devices" will silently ignore it.
This is confusing to n00bs, especially since it doesn't seem to be widely
known that a device's USB id might be different in the bootloader (meaning
two udev rules are needed). It can also be confusing if you're sshed in,
when you can't access the device because you won't be in the "plugdev"
group, but "fastboot devices" won't make this clear.

I'm not sure about the Mac OS and Windows changes. AIUI, devices are always
writable on those platforms, but I don't use either, so I can't test this.
This patch shouldn't alter the behavior on either of those platforms.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Without this patch, "adb devices" will say "no permissions" when it sees
a device it can't write to, but "fastboot devices" will silently ignore it.
This is confusing to n00bs, especially since it doesn't seem to be widely
known that a device's USB id might be different in the bootloader (meaning
two udev rules are needed). It can also be confusing if you're sshed in,
when you can't access the device because you won't be in the "plugdev"
group, but "fastboot devices" won't make this clear.

I'm not sure about the Mac OS and Windows changes. AIUI, devices are always
writable on those platforms, but I don't use either, so I can't test this.
This patch shouldn't alter the behavior on either of those platforms.
</pre>
</div>
</content>
</entry>
</feed>
