summaryrefslogtreecommitdiffstats
path: root/fastboot/protocol.c
Commit message (Collapse)AuthorAgeFilesLines
* fastboot/sparse: propagate error codeJeremy Compostella2015-03-011-1/+4
| | | | | | | | | | | sparse_file_write_block calls functions that might failed. This patch makes sparse_file_write_block catch the error code and propagate it. Without this patch, fastboot crashes on a segmentation fault if usb_write() fail during a sparse file image flashing. Change-Id: If9c0e8dfac8fa380628a2504e13abe8cf7d62726 Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
* system: core: fastboot: Increase USB protocol buffer size to 1024Channagoud Kadabi2014-11-071-1/+1
| | | | | | | | | | With USB3.0 SS support the max packet size supported by USB protocol is 1024 bytes. When connected to a USB device in SuperSpeed, if only 512 bytes are sent at a time the device would interpret each transfer as a short packet and slows down overall throughput. To accommodate for SuperSpeed USB bulk endpoints, increase the buffer size to 1024. Change-Id: I4f447fe38045bc0008e2d6dd3f36c2d6819d6c15
* fastboot: turn on -WerrorMark Salyzyn2014-05-141-3/+0
| | | | | | | | | - 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
* fastboot: add support for auto-resparsing large filesColin Cross2012-07-091-27/+160
| | | | | | | | | | | | | | | Add support to fastboot for automatically using libsparse to break large files, whether they are in sparse or normal format, into multiple sparse files that can each fit into the target's memory. Allows flashing images that are larger than the size of the available memory on the target. By default, any file over 512MB will be sparsed into 512MB chunks. The limit can be modified with the -m argument, or sparsing can be forced with -S or avoided with -N. If -m is not specified, the target can override the default by implementing getvar:max-download-size Change-Id: I6c59381c3d24475c4f2587ea877200b96971cbd7
* Remove trailing whitespacesAnatol Pomazau2012-02-281-7/+7
| | | | Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
* fastboot: make it so I can actually see the bootloader chatterBrian Swetland2010-07-011-1/+1
| | | | | | | | - prefix bootloader messages with (bootloader) - remove the fancy right justified no newline business Change-Id: Ica16ebe6a25971db423c5db06300a280d93faf3e Signed-off-by: Brian Swetland <swetland@google.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+181
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-181/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+181