aboutsummaryrefslogtreecommitdiffstats
path: root/fastboot
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespacesAnatol Pomazau2012-02-2812-94/+94
| | | | Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
* am f1ab88c2: am 73c019b3: Add asus vendor idRamanan Rajeswaran2012-02-271-0/+1
|\ | | | | | | | | * commit 'f1ab88c23460a608cd6d6f6492fb2b039405c0f2': Add asus vendor id
| * am 73c019b3: Add asus vendor idRamanan Rajeswaran2012-02-271-0/+1
| |\ | | | | | | | | | | | | * commit '73c019b30a7c70c50d2a854982143d5eb8c74f8c': Add asus vendor id
| | * Add asus vendor idRamanan Rajeswaran2012-02-241-0/+1
| | | | | | | | | | | | Change-Id: I6d10b1788903aba526af7f654b12c302c3e9fc89
* | | Implement 'fastboot format' commandAnatol Pomazau2012-02-174-5/+220
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: I8529bc3485739487f0d91312f7c0ab1a6e5d8b44
* | | Revert "Implement 'fastboot format' command"Mike Lockwood2012-02-134-157/+5
| | | | | | | | | | | | | | | | | | until Windows support is done This reverts commit 452e11885afb53d59b2aa38b15e3be41c568d1e6.
* | | Implement 'fastboot format' commandAnatol Pomazau2012-02-114-5/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: Ifa42deaa66c3cb96ff786a73c3fadad92658f395
* | | Revert "Implement 'fastboot format' command"Anatol Pomazau2012-02-034-204/+5
| | | | | | | | | This reverts commit 230d160a718333651f7ca1557404f96682795b37
* | | Implement 'fastboot format' commandAnatol Pomazau2012-02-034-5/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: I8529bc1dc64237f1f0d91312f7c0ab1a6e5d8b44
* | | Merge "Revert "Implement 'fastboot format' command""Anatol Pomazau2012-02-034-157/+5
|\ \ \
| * | | Revert "Implement 'fastboot format' command"Anatol Pomazau2012-02-034-157/+5
| | | | | | | | | | | | This reverts commit 049dff53ef368bd84d0bddcb4c91f408774949c1
* | | | Merge "Implement 'fastboot format' command"Anatol Pomazau2012-02-034-5/+157
|\ \ \ \ | |/ / /
| * | | Implement 'fastboot format' commandAnatol Pomazau2012-01-254-5/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some filesystems (e.g. ext4) require flushing an initial fs image, right after erasing it the partition is unusable. Doing erase,flush emptyfs is a little bit scaring so we have a separate command that performs it as atomic step: - get size of partition - create an empty filesystem image - erase the partition - flush empty fs to the partition This command applicable only for ext4 filesystem and checks the partition type before formatting it. Change-Id: I8529bc1dc64698f1f0d91312f7c0ab1a6e5d8b44
* | | | am 142e895a: am e83cd37e: am 0458d373: Merge "fastboot: set the language ↵Jean-Baptiste Queru2012-01-272-3/+5
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | local string" * commit '142e895a1d5030a4e032f08fa5814ebd42b964b6': fastboot: set the language local string
| * | am e83cd37e: am 0458d373: Merge "fastboot: set the language local string"Jean-Baptiste Queru2012-01-272-3/+5
| |\ \ | | | | | | | | | | | | | | | | * commit 'e83cd37e58b00fb6b9eb50464067864ca0cb2ff7': fastboot: set the language local string
| | * | fastboot: set the language local stringmgross2012-01-232-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the language local string to 0x409 (English US / en-us) such that fastboot will successfully read the usb descriptor serial number string. The usbdevfs ioctl fails when the wIndex is not initialized with the local for the unicode of the usb descriptor string. usbdevfs is an obsolete interface and fastboot probably needs a re-write to use libusb like what is in adb. Change-Id: I3687f84643f53c736f14b3ae7793185d9b5cccc0 Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
* | | | am 0c054095: am 746f3243: Add USB vendor IDs for Quanta, INQ and Sony.Xavier Ducrohet2012-01-241-0/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '0c05409510037fd7372c3fe7ab240ebf33b15831': Add USB vendor IDs for Quanta, INQ and Sony.
| * | | am 746f3243: Add USB vendor IDs for Quanta, INQ and Sony.Xavier Ducrohet2012-01-241-0/+1
| |\ \ \ | | |/ / | |/| / | | |/ | | | * commit '746f3243f6d30ab51a36dcfea76eac3ba29ac625': Add USB vendor IDs for Quanta, INQ and Sony.
| | * Add USB vendor IDs for Quanta, INQ and Sony.Xavier Ducrohet2012-01-241-0/+1
| | | | | | | | | | | | Change-Id: I224e067d9a64e8e9e7afbad0760a4b07f965bf83
* | | am 70580b20: am 149ae11f: Merge "adb,fastboot: add USB support for Intel ↵Jean-Baptiste Queru2012-01-241-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Vendor ID" * commit '70580b20bc8485002df0b3e89e42754c8c9796ff': adb,fastboot: add USB support for Intel Vendor ID
| * | adb,fastboot: add USB support for Intel Vendor IDWu, Hao2012-01-171-0/+1
| |/ | | | | | | | | | | | | | | This patch adds Intel USB Vendor ID into the support list for adb and fastboot. Signed-off-by: Wu, Hao <hao.wu@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com>
* | Flash cache partition with cache.img by default.Jean-Baptiste Queru2011-09-301-0/+2
|/ | | | | Bug: 5153694 Change-Id: If322d13286e9b0f14877d1a4f03f6bd288ee71f3
* am c4eaebbe: am ab6e55f7: Merge "Enlarge USB bulk transfer size for faster ↵Conley Owens2011-04-272-4/+10
|\ | | | | | | | | | | | | downloads" * commit 'c4eaebbe7a0c125663f74e3961b62de8d3611a51': Enlarge USB bulk transfer size for faster downloads
| * Enlarge USB bulk transfer size for faster downloadsDavid Krause2011-03-282-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Teach fastboot to allow required variables per product.Wink Saville2011-04-043-3/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for products like xoom-cdma and xoom-cdma-lte. The xoom-cdma-lte product requires an lte baseband binary but it's not needed for xoom-cdma. This is implemented by allowing an optional product parameter to "required" statements. The parameter is separated from "required" by a colon so the version-baseband-2 requirment in board-info.txt for stingray becomes: require-for-product:xoom-cdma-lte version-baseband-2=ltedc_u_03.25.00|ltedc_u_03.19.00 In the above statement, only xoom-cdma-lte requires version-baseband-2 and the baseband can be lte_u_03.25.00 or lte_u_03.19.00. For other products version-baseband-2 will be ignored. Change-Id: I786bec5f5661c2243d87925b064fc6124d3cffa1
* | fastboot: fix arg handling causing no-op.JP Abgrall2011-03-011-1/+1
| | | | | | | | Change-Id: I89d4a6d14e542d8f2d7832d94b0a7cee6eb88305
* | Add explicit 'help' command to fastboot.Tsu Chiang Chuang2011-02-251-23/+29
| | | | | | | | Change-Id: I350feab372e105755509c81604d57b2de1a69163
* | am f1c2a735: Merge "fastboot: Add help message for continue command"Jean-Baptiste Queru2010-12-291-0/+1
|\ \ | |/ | | | | | | * commit 'f1c2a7352f19cf729f91bf2559fc93ef12c74dca': fastboot: Add help message for continue command
| * fastboot: Add help message for continue commandBruce Beare2010-12-291-0/+1
| | | | | | | | | | Change-Id: I578b1b7c2d74d09d44ce9100bfe582aaa25c31b1 Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | dist for dist_filesYing Wang2010-12-091-1/+1
| | | | | | | | Change-Id: I665572a2212f1239b02b7816e37ada210afbdb48
* | am 42b871f1: am c37ba1c9: Merge "Check fastboot oem command line length"Jean-Baptiste Queru2010-07-291-1/+7
|\ \ | |/ | | | | | | | | | | Merge commit '42b871f1bfc116d53d1bff9d7497415494b2e0e0' * commit '42b871f1bfc116d53d1bff9d7497415494b2e0e0': Check fastboot oem command line length
| * am c37ba1c9: Merge "Check fastboot oem command line length"Jean-Baptiste Queru2010-07-291-1/+7
| |\ | | | | | | | | | | | | | | | | | | Merge commit 'c37ba1c916d73fbf35c6faba1e252e2916d2d41d' into gingerbread-plus-aosp * commit 'c37ba1c916d73fbf35c6faba1e252e2916d2d41d': Check fastboot oem command line length
| | * Check fastboot oem command line lengthBruce Beare2010-07-151-1/+7
| | | | | | | | | | | | | | | Change-Id: I301af09c4ec460c9049b75cc7f4d2c50cfe00ceb Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
* | | Allow OSX fastboot to work with more devices.Nick Pelly2010-07-221-4/+2
| | | | | | | | | | | | | | | | | | | | | ClearPipeStallBothEnds() appears to fail on some devices, but if we ignore that error then fastboot does work. So ignore the error. Change-Id: Ic866ece28a57c081e34079e1a032fa8155301ddf
* | | am beb72464: am 63e5205c: fastboot: make it so I can actually see the ↵Brian Swetland2010-07-132-2/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | bootloader chatter Merge commit 'beb72464ff8c501597cd7e098090f7d131dc5ccb' * commit 'beb72464ff8c501597cd7e098090f7d131dc5ccb': fastboot: make it so I can actually see the bootloader chatter
| * | fastboot: make it so I can actually see the bootloader chatterBrian Swetland2010-07-012-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | - prefix bootloader messages with (bootloader) - remove the fancy right justified no newline business Change-Id: Ica16ebe6a25971db423c5db06300a280d93faf3e Signed-off-by: Brian Swetland <swetland@google.com>
* | | am a8c74049: am 931bdcc0: Set explicit timeout on USB control transferWerner Johansson2010-06-301-0/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | Merge commit 'a8c7404956b4370162a87ae09b851266a4933b54' * commit 'a8c7404956b4370162a87ae09b851266a4933b54': Set explicit timeout on USB control transfer
| * | Set explicit timeout on USB control transferWerner Johansson2010-06-301-0/+1
| | | | | | | | | | | | | | | This attempts to solve the intermittent issues with serial number showing up as all question marks when issuing "fastboot devices"
* | | am dc594284: Merge "Fix kernel panics in fastboot on OS X." into krakenJeff Brown2010-05-211-1/+22
|\ \ \ | |/ /
| * | Fix kernel panics in fastboot on OS X.Jeff Brown2010-05-211-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The kernel panic seems to be related to the driver trying to allocate too many pages from the IO mapper. That may be caused by the fact that we try to perform a 100+ MiB transfer in a single IO operation. This change breaks the transfer down into 1 MiB chunks. So far after a day of testing, no kernel panics have occurred compared to 5 in the previous 24 hours! Change-Id: I8d27a546e0c0bf4fe2f0fc7fcad65a88d3e6bee0
* | | am 509f7399: fastboot: Add more vendor usb idsDima Zavin2010-05-141-0/+2
|\ \ \ | |/ /
| * | fastboot: Add more vendor usb idsDima Zavin2010-05-141-0/+2
| |/ | | | | | | | | Change-Id: Ied48302b50412f27dcf49d40913e4b900f3bd153 Signed-off-by: Dima Zavin <dima@android.com>
| * Fix adb, fastboot to compile in Windows SDK under Linux.Raphael2010-04-231-2/+9
| | | | | | | | | | | | (Merged from master Change I3d0e4cab) Change-Id: Ib3fd566bdaf09d5893a6b0c66168c76c6b0d92eb
* | fastboot should return non-zero exit code on errorBrian Carlstrom2010-04-233-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using fastboot in scripts, it currently is necessary to parse the output for FAILED messages and possible other indications of error. This happens relatively often, for example when there are radio update issues. Fortunately, fb_execute_queue already has a notion that an error has occured which is used to abort the queue execution. This change makes the status value be returned from fb_execute_queue to main which can then return it as an exit status. usage cases were also changed to return 1. Note the code already returned 1 for error in one other case when there was a problem with boot, so there is a precedent for return 1 on error in this program. Change-Id: Ib0463b08c8f2569495e248dd84e331f7e3691039
* | Fix adb, fastboot to compile in Windows SDK under Linux.Raphael2010-04-131-2/+9
|/ | | | Change-Id: I3d0e4cabd65d9de17036901a22ec3277a6d58e64
* Add wall-clock timing for each fastboot Action.Daniel Sandler2010-02-251-3/+25
| | | | | | (For diagnosing slow flashes.) Change-Id: Ibbcbd080db551c8590ca8bfe50e9ddb45eea5661
* fastboot: add nand page size param, used for boot and flash:raw commandsDima Zavin2010-02-161-4/+11
| | | | | Change-Id: I07451363f4d4ac8665598722491968e6ee0953ee Signed-off-by: Dima Zavin <dima@android.com>
* resolved conflicts for merge of 20f410a4 to masterJean-Baptiste Queru2010-01-281-0/+1
|\ | | | | | | Change-Id: I187f29848c223c8c548323e0fa20ea0f3b8a3909
| * resolved simple conflict with dc9cf66cAndroid Git Automerger2010-01-211-0/+1
| |\
| | * Add Dell's vendor ID to fastboot.Xavier Ducrohet2010-01-211-0/+1
| | | | | | | | | | | | Change-Id: I1d88d2a8b3f5c0a9bade2a207b5d9c5a0b776655