summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorDavid Krause <david.krause@motorola.com>2011-03-08 14:10:16 +0800
committerDavid Krause <david.krause@motorola.com>2011-03-28 11:45:21 -0500
commit913eb8bf874fcec647667bd7113da65b6e38488a (patch)
tree36bd45d4774148d36f70100e17af58e62aea1967 /trusty/coverage/coverage_test.cpp
parent7c556549079dbcc3f6f7ef4376978cd8c598aa62 (diff)
Enlarge USB bulk transfer size for faster downloads
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
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions