History log of /system/core/fastboot/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b75d6f1429edf41cd15772a8d9d3a96f84a21862 07-May-2014 Andrew Hsieh <andrewhsieh@google.com> Remove obsolete reference to ddk; Fixes for -Werror

Bug: 14416410

1. The new mingw-w64 toolchain x86_64-w64-mingw32-4.8 has ddk
in x86_64-w64-mingw32/include/ddk
2. Add -Wno-error=cpp to suppress a warning that turns into error
thanks to -Werror:

Please include winsock2.h before windows.h
3. Cast GetLastError() return type DWORD to "int"
4. Include direct.h for _mkdir
5. Include stdint.h for uint8_t on Windows

Change-Id: I4bec0587f6573692f08c760da6c98ae551b8b5eb
ndroid.mk
015d73ff4e12e0ae3a5c44ed2f69d24cbe7982d3 15-Sep-2014 Daniel Rosenberg <drosen@google.com> fastboot: Remove tos from flashall

bug: 17498561
Change-Id: I0190c1a5ac635375404799c040e4be523fa29622
Signed-off-by: Daniel Rosenberg <drosen@google.com>
astboot.c
a42adff905600219cbf5ef217d2b46670225aca3 17-Jul-2014 Jeremy Compostella <jeremy.compostella@intel.com> fastboot: add the support of the second stage image [DO NOT MERGE]

The AOSP bootimage format allows the use of a second stage image
however the fastboot boot and flash:row commands do not allow the
"secondstage" optional argument. This patch adds the support of this
argument for both commands.

Change-Id: I00403a95d7460a00233841ba0fe0e8a69d78c7b4
Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com>
astboot.c
4415e2a2696dd422fbe5511fdcd2f896b3d13595 11-Jul-2014 Patrick Tjin <pattjin@google.com> Scan all descriptors when checking for fastboot [DO NOT MERGE]

For Linux, the USB code was only looking at the first
descriptor when searching for the fastboot interface
which caused some devices to not be found.

Also clarify some code by using the actual USB structures
instead of void or char pointers.

(Cherry Picked from aac89db8a541f609d8268966f7b3ded44da03bd1)
Change-Id: I9e4871c4d477ac10ba75bb17a955f176809af289
Signed-off-by: Patrick Tjin <pattjin@google.com>
sb_linux.c
67db9d5f7373e96a1f2279f25a544be76b26a88f 10-Jul-2014 Elliott Hughes <enh@google.com> am b2ac4243: am f76c8fe6: am 328c3ef6: Merge "Fix typo in fs.h"

* commit 'b2ac4243000057baf1656c93197150ba7665137e':
Fix typo in fs.h
c335a3500c0ea2057be74a686b14f427058ce75c 08-Jul-2014 Markus Mayer <code@mmayer.net> Fix typo in fs.h

fs.h defined _FH_H_ rather than _FS_H_

Change-Id: I710ef53e88d3601e486fde9957f6d022871d9602
Signed-off-by: Markus Mayer <code@mmayer.net>
s.h
fab6ebafa693989a629ec9c662f0ed0668c2c42d 25-Jun-2014 JP Abgrall <jpa@google.com> am 47050442: am 31132182: am 07703339: Merge "Wait for device to disappear after "fastboot reboot"."

* commit '4705044243225ffde88910154485a84c27a33709':
Wait for device to disappear after "fastboot reboot".
f530c93c4aab818de51fd7123199bef6621047f8 28-May-2014 Daniel Rosenberg <drosen@google.com> Added support for vendor partition and image

Modified fastboot to flash vendor.img as well. Moved symlink
for /vendor to occur after mounting partitions. Changed mount
to also create the mount point.

Change-Id: I78e1ba24e6bb8b4af96a67ee0569af579439e682
Signed-off-by: Daniel Rosenberg <drosen@google.com>
astboot.c
ec25e7bc4bb8c203f89f133136a62a08410d6ceb 24-Jun-2014 Mark Wachsler <wachsler@google.com> Wait for device to disappear after "fastboot reboot".

This is a follow-up to commit 157b00171a06f9ac2fd25ee3a86e801e896713d6.
After "fastboot reboot", "fastboot devices" was still showing the device as
connected even though it was starting to reboot; now "fastboot reboot" will
wait until the device has disconnected.

The wait timeout is 3 seconds.

Change-Id: I8066741f0be91e53f3e3f5bc968bc1b9de31db05
astboot.c
188fdd1c0f71a19d1b4656eb3ad8a19eff60af40 19-Jun-2014 JP Abgrall <jpa@google.com> Merge "fastboot: Allow searching for needed dynamic libs in '.' (F2FS)"
436abebf8c7df9e528e534b3c8dab955449c055b 19-Jun-2014 JP Abgrall <jpa@google.com> fastboot: Allow searching for needed dynamic libs in '.' (F2FS)

Currently the default rpath includes $ORIGIN/../lib
So we throw in '.' which should help distributions of fastboot.

readelf -d $(which fastboot)|grep RPATH
0x0000000f (RPATH) Library rpath: [$ORIGIN/../lib:.]

Bug: 15731906
Change-Id: I2f4345d178e5b3c87f6f159faf105ae30f3b52eb
Signed-off-by: JP Abgrall <jpa@google.com>
ndroid.mk
6b048ce839ce0bcbce684284f68a2f32ee9d764c 19-Jun-2014 Ying Wang <wangying@google.com> Store libf2fs_fmt_host_dyn on the build server.

It will be dynamically loaded by fastboot.

Bug: 15731906
Change-Id: Iff6f2b745b4ffd2c5fe343160b3efb8dcd5702fa
ndroid.mk
64c0ff21e484331bcd796284bc16160ab04f53e2 18-Jun-2014 JP Abgrall <jpa@google.com> fastboot: correctly set dependency on f2fs dynamic lib

In the past it would incorrectly also link against the dlopen()'d lib.

Now it clearly does not care about it.

ldd $(which fastboot)
linux-gate.so.1 => (0xf7735000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf76d9000)
libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf75f4000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf75c7000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf75a9000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf73ff000)
/lib/ld-linux.so.2 (0xf7736000)

Bug: 15717498
Change-Id: I5465e97a445b17f5493a1f590e181ef98a382451
Signed-off-by: JP Abgrall <jpa@google.com>
ndroid.mk
11d8ac2afb48aad2ae4e71042107f7d79a15c5c4 18-Jun-2014 Torne (Richard Coles) <torne@google.com> Only try and use f2fs on linux.

F2FS was already disabled on windows, but the library doesn't build for
mac either, so only try and use it on Linux hosts.

Change-Id: I8bacfa4c01c9ee13123aef6d05d17b3f9094c765
ndroid.mk
6bd72beff6136a8e83f781a47d76cd395e673799 18-Jun-2014 JP Abgrall <jpa@google.com> fastboot: fix windows sdk build (don't do f2fs dyn load on windows)

Only do f2fs dynamic loading on linux.
Adds a stub for windows builds.

Change-Id: I7bbaaa1b2ff5992709d904b7ace40ae263d32922
Signed-off-by: JP Abgrall <jpa@google.com>
ndroid.mk
s.c
1235158c29909132fbe9aa52939061fc81f0800e 18-Jun-2014 JP Abgrall <jpa@google.com> F2FS support for fastboot format and fsmgr

- Enables fsck.f2fs for partitions with type F2FS.
- Adds support for f2fs as format fs-type.
- f2fs is optional and support is dlopen()d when needed.

Needs changes in
system/extras/f2fs_utils
external/f2fs-tools

Change-Id: I8d141a0d4d14df9fe84d3b131484e9696fcd8870
Signed-off-by: JP Abgrall <jpa@google.com>
ndroid.mk
s.c
cf86e2f85d98ed10cf5e0672e41631f6ea7e3e34 16-May-2014 Ying Wang <wangying@google.com> Fix host 64-bit build.

Bug: 13751317
Change-Id: Ib42d24408d053bacc24142ed18fc5f3181d2345b
astboot.c
5957c1ffe79b34d8b1859f9f11644d1007193cbc 30-Apr-2014 Mark Salyzyn <salyzyn@google.com> fastboot: turn on -Werror

- 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
ndroid.mk
ngine.c
astboot.c
rotocol.c
sb_linux.c
sb_windows.c
sbtest.c
8d7ddb35d510824e50833a9b31ae6486393b1436 08-May-2014 Alexander Levitskiy <sanek@google.com> Revert "System: Fastboot: warning fixit, misc bugs and cleanup."

This reverts commit 782111b3bc5d372afc8d66ab6023e834b7c23b88.

Change-Id: Ib66400dfaeef7f01e6461a57b9f09be08de2f1fe
ngine.c
astboot.c
astboot.h
sbtest.c
782111b3bc5d372afc8d66ab6023e834b7c23b88 06-May-2014 Sasha Levitskiy <sanek@google.com> System: Fastboot: warning fixit, misc bugs and cleanup.

Change-Id: Ib8517a852977962de3f05c879ba7dce89bcef644
Signed-off-by: Sasha Levitskiy <sanek@google.com>
ngine.c
astboot.c
astboot.h
sbtest.c
7e85974fc2fc48a0cea7bb9bafcfcda863138eb6 07-May-2014 JP Abgrall <jpa@google.com> fastboot: support for overriding format fs-type and size

This changes allows overriding the fs-type and size that
are normally returned by the booloader.

This is in preparation for supporting other FSes.

Change-Id: I8d141a0d4d14df9fe84d3b131484e9696fcd8870
Signed-off-by: JP Abgrall <jpa@google.com>
ngine.c
astboot.c
astboot.h
s.c
s.h
73a4ad288ffdabfbdac0930737def7fdcf65d07c 29-Apr-2014 Daniel Rosenberg <drosen@google.com> fastboot: Added tos as an optional image

Change-Id: Ibff1f74ee4a949501ceae0b897f896067f022763
Signed-off-by: Daniel Rosenberg <drosen@google.com>
astboot.c
82280594ef7e9dc908aa67f3da8661ff54a96c9e 29-Apr-2014 Daniel Rosenberg <drosen@google.com> fastboot: Fixed optional entries

Previously, if an image was listed as optional, but was not found,
flashall would fail. Now it will proceed if optional images are not
present.

Change-Id: Ic82595cf0cd6ddce4c676de590f03f1a95f32040
Signed-off-by: Daniel Rosenberg <drosen@google.com>
astboot.c
e6f3e9bd2656fe132f829ed035fdea0cb111369d 12-Mar-2014 Dmitry Grinberg <dmitrygr@google.com> fastboot: allow format on devices with small buffers

Formatting large partitions on devices with small transfer buffers did
not work before since format used a strange path through the code to
send data. It now uses the normal path. Also cleaned up a bit. FS
code now lives in a separate file and the custom path for format is
gone.

Change-Id: If4e01cabc2e250b7c02ca7ce8c268e51d49e1529
ndroid.mk
ngine.c
astboot.c
astboot.h
s.c
s.h
8e26b2522267658ef996631a3a43818c1baf6fc3 06-May-2014 JP Abgrall <jpa@google.com> Merge "Fastboot: fix fastboot timeout issue of Windows host side"
29fd7b1f4f86e4955cf78156a9de174c5b7233c1 15-Jan-2014 Mohamad Ayyash <mkayyash@google.com> fastboot: Make tags_offset a command line option.

cherry picked from commit bdf513c5f25b3c2051af737c37a7734c4559208e

Change-Id: I4ceca528f88cc8ede5742f8a67bec972e41eebe7
astboot.c
bbb7981e49048a657d724bfda9465cdfe7c03a87 07-Aug-2012 Jiebing Li <jiebing.li@intel.com> Fastboot: fix fastboot timeout issue of Windows host side

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 <jiebing.li@intel.com>
Signed-off-by: Bo Huang <bo.b.huang@intel.com>
sb_windows.c
66ed50af6870210ce013a5588a688434a5d48ee9 22-Nov-2013 The Android Open Source Project <initial-contribution@android.com> Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEAD

Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5
14e28d39f7f094225c1ddae8fa43bd792c621a8f 29-Oct-2013 Elliott Hughes <enh@google.com> Fix a bunch of small system/core bugs.

Missing frees in:
adb/file_sync_client.c
fastboot/fastboot.c
libsparse/output_file.c

Missing closedirs in:
adb/file_sync_service.c
cpio/mkbootfs.c
libcutils/dir_hash.c

Potential buffer overrun in:
gpttool/gpttool.c

Incorrect NULL check in:
libsparse/backed_block.c

Bug: https://code.google.com/p/android/issues/detail?id=61564
Change-Id: If97838a9e73a77aef7f416c31c237ce1fca4ce21
ndroid.mk
astboot.c
157b00171a06f9ac2fd25ee3a86e801e896713d6 02-Oct-2013 Mark Wachsler <wachsler@google.com> Wait for device to disappear after reboot-bootloader.

(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
ndroid.mk
ngine.c
astboot.c
astboot.h
sb.h
sb_linux.c
sb_osx.c
sb_windows.c
til.c
e6e5daace55672b1ec8fb6c5c17a85ee1531f7ad 17-Sep-2013 jp abgrall <jpa@google.com> am edeed28b: am 4a280e3d: Merge "Don\'t use control requests to read device serial numbers."

* commit 'edeed28bd397f863686ba3e5bb7479f881efc657':
Don't use control requests to read device serial numbers.
bd446c76f3676b1a8d752fbd83846b54a81ac602 12-Sep-2013 Mark Wachsler <wachsler@google.com> Don't use control requests to read device serial numbers.

Instead of sending control requests to all devices to read their serial
numbers, read the cached strings from sysfs. This fixes two problems:
1) The control requests sometimes timed out, causing devices to show up
as "????????????????", and 2) a control request could mess up devices
which were in the middle of being flashed.

Also enumerate by walking sysfs rather than devs so that we can avoid
opening host controller devices, which can be slow. On a system with 10
EHCI controllers, fastboot devices now takes 7 msec instead of 700 msec.

Change-Id: I2ad2d58b48268d7950bd279fd6a6753dc2f79514
sb_linux.c
622810ceff6d98779171c68391465c7434adeb1d 28-Jun-2013 Rom Lemarchand <romlem@google.com> fastboot: add support for sparse images in flashall and update

Change-Id: I66a73b16a988a65fc91fb22a26d11986025089de
Signed-off-by: Rom Lemarchand <romlem@google.com>
astboot.c
c9cce4b981c79d543d2d10d2365e81fb39ad3da9 28-Jun-2013 Rom Lemarchand <romlem@google.com> fastboot: Remove legacy MINGW workarounds

The version of MINGW we compile with has more advanced POSIX support.
Removing legacy MINGW workarounds as those are not needed anymore.

Change-Id: Id5d67176b719db6c3667be6d63c41432e0ba9f30
Signed-off-by: Rom Lemarchand <romlem@google.com>
ngine.c
astboot.c
til_windows.c
88e8f61a9ef5cda24932f669d3b224e0216deba9 26-Jun-2013 jp abgrall <jpa@google.com> Revert "fastboot: add preflash command to help with large downloads+flash"

This reverts commit 6f1cd0b2ad7a16d4ec0b5324f992cae33dc34f34.

It causes some devices to fail (b/9581613). Revert for now.

Change-Id: I076158c704c2b4f0459322aa157c19ebd0c4615f
ngine.c
astboot_protocol.txt
6f1cd0b2ad7a16d4ec0b5324f992cae33dc34f34 25-Jun-2013 JP Abgrall <jpa@google.com> fastboot: add preflash command to help with large downloads+flash

Without the partition name, the bootloader would have to store all
of the data until the next flash command, which potentially wastes
time.
To help the bootloader deal with the data more efficiently, we now
issue a flashing hint ("preflash:%s", partname).
"preflash:" is used to indicate that the following download
should ignore any previous "preflash:%s".

Bug: 6045918
Change-Id: I4e9708f64f28a4781bde14eb3714d36b281ec5be
ngine.c
astboot_protocol.txt
7b8970c577c788c9af582dac797c63b3134b201e 08-Mar-2013 JP Abgrall <jpa@google.com> fastboot: add support for some obscure args.

Some devices use mkbootimg with weird args for which fastboot
only a hardcoded value.

Now fastboot recognizes those args.

Made handling of global vars more consistent.

Bug: 8341331
Change-Id: Ic09f148ccd0249f49935fdc63e517cf8ab2229bc
ootimg.c
astboot.c
fa341f5b66088afc341a5ca4374e374a54d1afd5 24-Jan-2013 Colin Cross <ccross@android.com> Merge commit '35d5b7e6' into master
c86396eba20e550fe570a28d7cf5d2be8ac7efae 24-Jan-2013 Colin Cross <ccross@android.com> am 5fc4fdc6: am 2447afdb: Merge "fastboot: use better exported api from libext4_utils"

# Via Android Git Automerger (1) and others
* commit '5fc4fdc6a06cfa151d29f751d9d9beb8cb781a6a':
fastboot: use better exported api from libext4_utils
81c632e4dacb14c4afa8a1f166faa1bbacce4d8f 24-Jan-2013 Colin Cross <ccross@android.com> fastboot: add errno.h to fix windows build

The removal of extra headers from ext4_utils.h removed an indirect
include of errno.h that breaks building with USE_MINGW=1.

Change-Id: Ic8448db97b5c056a139dc836e1d6f3aaafb917c9
ngine.c
2aaf5e84f004739858f5454e42cc88fd92e4f779 24-Jan-2013 Colin Cross <ccross@android.com> fastboot: use better exported api from libext4_utils

Switch fastboot to use an exported api from libext4_utils that
will change less often, and remove some of the implementation
details from fastboot.

Change-Id: I85a10c8f58abe8093d0c781e1a0e100c348ef0d9
ngine.c
9bfecb0e3444306ec57d7fafe4a99a47d3848c17 06-Dec-2012 Scott Anderson <saa@android.com> Add old fastboot_protocol.txt

fastboot_protocol.txt used to live in bootable/bootloader/legacy
which was old, obsolete code. However, fastboot_protocol.txt is
a useful file and belongs with the fastboot code.

Change-Id: Iea50c3219f9ff9dd0c394fc6028c456fa948ffd9
Signed-off-by: Scott Anderson <saa@android.com>
astboot_protocol.txt
efb5e3c709214cfc45beec5fcc66c93223ffc744 17-Oct-2012 Kenny Root <kroot@google.com> resolved conflicts for merge of 20f5daa8 to master

Change-Id: Ie3e67696d265a56dfa4d089c777506f27783a9a6
20f5daa8653eb2d81af8c161a2084e3b53ec3914 17-Oct-2012 Kenny Root <kroot@google.com> resolved conflicts for merge of 44f4f8a4 to jb-mr1-dev-plus-aosp

Change-Id: I66988d8e87a8110ca9ab3da19870b80bbaf06eba
b83c09812f30d36285cacdf5cf824c56c267f8e5 10-Oct-2012 Kenny Root <kroot@google.com> Remove HAVE_SELINUX guards

Change-Id: Idef0a784a1d237257ff4135bb1df62ff8a67ded3
ndroid.mk
656a24cae7c49e7bbbc1ad5e8f4cdfcc7f65f6e7 03-Oct-2012 Ken Sumrall <ksumrall@android.com> am e17c821e: am 608634a1: am 48f3b576: Merge "Update fastboot to wipe ext4 partitions before flashing" into jb-mr1-dev

* commit 'e17c821e36163695f6d5024a71f8e706bda65fd6':
Update fastboot to wipe ext4 partitions before flashing
5ee5d389d6cb90b3cd2856730f8ff12211bc95d2 29-Sep-2012 Ken Sumrall <ksumrall@android.com> Update fastboot to wipe ext4 partitions before flashing

To prevent false error reports from e2fsck, update fastboot to erase
a partition identified as being ext4 partition before flashing an image
to it.

bug: 7259359

Change-Id: I85e9963aa8247b4b33fdd57f994cdb3ee72b670f
ngine.c
astboot.c
astboot.h
d5d6d97defa8999784a15003ed41449954bc7178 26-Sep-2012 Kenny Root <kroot@google.com> Host builds: add fastboot and adb

Add fastboot and adb host utilities to debug builds for debugging
and development purposes.

Change-Id: If77699a27497b8641998930f14d4ee418b856080
ndroid.mk
80f9867431af4632749890b24c0256f0ab07640d 30-Aug-2012 Colin Cross <ccross@android.com> fastboot: move help command before usb connect

Move the help command handling before the call to open_device
so that is doesn't block when no device is connected.

Bug: 7078873
Change-Id: I4e9a4317bd72b4ceb4b9fc838eafd2e57b17a473
astboot.c
ae807aaa022196b2f08f64f303b380c1903b77e0 10-Sep-2012 Colin Cross <ccross@android.com> Merge "fastboot: move help command before usb connect" into jb-mr1-dev
96535ba62044c712f8b017fe569f598a7a2934c2 05-Sep-2012 Ying Wang <wangying@google.com> Dist fastboot and adb for the sdk build.

So they can be downloaded from the build page.
Bug: 7109694

Change-Id: Ibc60d0acbc5d2445c01010fd0bd4654a240b0a88
ndroid.mk
c7b75dcc1aa121574d7677c97ff7d9b4ba91e624 30-Aug-2012 Colin Cross <ccross@android.com> fastboot: move help command before usb connect

Move the help command handling before the call to open_device
so that is doesn't block when no device is connected.

Bug: 7078873
Change-Id: I4e9a4317bd72b4ceb4b9fc838eafd2e57b17a473
astboot.c
bb0d0721e6bc5dcedc9bbbac0ea8fa4e57f487ad 20-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 94938c9d: am ed2e672f: Merge "Print strerror for file read errors during flashing"

* commit '94938c9d60d6467ec40df4254beadc50bb787934':
Print strerror for file read errors during flashing
ed2e672f3b929ac49617de11e6530c812b082eb6 20-Aug-2012 Jean-Baptiste Queru <jbq@google.com> Merge "Print strerror for file read errors during flashing"
ab163a9a1784594b46217576d0fa991496f3d14e 17-Aug-2012 Joe Onorato <joeo@android.com> am c56f4285: am a11f4bcf: Merge changes I5006b467,I0118cebf,Ibc792367

* commit 'c56f428530a307c850dc99024d23f7e5ebbf92d3':
Support for multiple modules with the same name is going away.
Fix build by removing TAGS from host module
libext4_utils on host is now called libext4_utils_host so there is no name conflict
5069b01e21129fe2d42a28e850645376560f2029 24-Jul-2012 Joe Onorato <joeo@google.com> Support for multiple modules with the same name is going away.

Change-Id: I5006b467978071f9107babe532efa71d05061580
ndroid.mk
2ffe3c8ac4b0d5a0716c4b131743b5983c99ce59 18-Jul-2012 Joe Onorato <joeo@google.com> libext4_utils on host is now called libext4_utils_host so there is no name conflict

Change-Id: Ibc7923676925ed6942b3f672ee764cfaa98ee96e
ndroid.mk
64ba258b7a17fd5f0abd788c1b021ad45ad732b9 08-Dec-2011 Matt Gumbel <matthew.k.gumbel@intel.com> Print strerror for file read errors during flashing

Change-Id: I7390867abd00036f19eb4d1a1ce23aa0aca50674
Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
astboot.c
a7a64579c24b6a6dd41105a85a1fd5901f7cdf14 25-Jul-2012 Colin Cross <ccross@android.com> am 36f2e2ac: am 23ee469c: Merge "fastboot: change default sparse limit to disabled"

* commit '36f2e2ac96f8b2163a37773f5cb92cfff75dede2':
fastboot: change default sparse limit to disabled
a2b3ded589759c413c5231a89111e0349e92ec62 25-Jul-2012 Colin Cross <ccross@android.com> am cecc3186: am f650c075: Merge "fastboot: check argc before using argv"

* commit 'cecc3186ca18ddf7a2d43a12353c45a81ab2baca':
fastboot: check argc before using argv
0bbfb3976e9491b3e1a872ebdaa850ef868a24aa 25-Jul-2012 Colin Cross <ccross@android.com> fastboot: change default sparse limit to disabled

Change the default sparse limit to disabled to prevent resparsing files
unless the bootloader or user specifies a sparse limit. Some
bootloaders issue an erase before every flash command, which causes
earlier parts of the downloaded image to get erased.

Change-Id: Iac6f3b05580aba8b82ed0f2f800979a49c33c691
astboot.c
8fb6e06ba44b92258bf44110ea5361496257e24e 25-Jul-2012 Colin Cross <ccross@android.com> fastboot: check argc before using argv

"fastboot -w" would segfault because *argv was invalid when no
non-option arguments were specified. Check argc > 0 before
dereferencing argv.

Change-Id: I822a799e6a38e4e5c0a4eca48c6343b8a08a6185
astboot.c
9a70e5c33891632c89c9f3f03e30d7183227d661 18-Jul-2012 Colin Cross <ccross@android.com> resolved conflicts for merge of 4d72d881 to master

Change-Id: Ic092d27d3fc2bcc4db8a375bbcb5b86c111bf062
f838788e6a4d57634a53eb597ee76a597feffcb5 25-May-2012 Colin Cross <ccross@android.com> fastboot: add support for auto-resparsing large files

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
ndroid.mk
ngine.c
astboot.c
astboot.h
rotocol.c
til_windows.c
80f2d036a9dff894df27961c4aed300f1a5ebbc4 25-May-2012 Colin Cross <ccross@android.com> fastboot: add fb_getvar

Add an fb_getvar helper that can be used to get values from the
target.

Change-Id: I0da088fcbc8d40076c7bf5ef6e5bbd97fae61471
ngine.c
astboot.h
8879f988bac8d4cb46fb82e3d82ad69a9ed89b16 23-May-2012 Colin Cross <ccross@android.com> fastboot: use getopt_long

Modify the fastboot argument parsing to use getopt_long. This
simplifies argument parsing, and permutes all the commands to the end of
argv to allow parsing them later.

Also moves usb initailization between argument and command processing,
to allow commands to query parameters over usb.

Change-Id: I883572f52c4190c80ee3b4aa4511ea2061a6b734
astboot.c
a032dedefe275b1d5a08b9856dfcfcb12579b4a7 06-Jun-2012 JP Abgrall <jpa@google.com> fastboot: Let "fastboot devices" work in all cases

Ignore ANDROID_SERIAL when requesting to list devices, or else it is
impossible to list devices without unsetting the env var. Even
ANDROID_SERIAL= fastboot devices
or
fastboot -s "" devices
won't work.

Change-Id: Ie92f35bda852c6ecea4ebaefb75b8f18c10b6d0c
astboot.c
dd32794a29ddd3b630b8eb7f8032c168a13b2cb4 06-Jun-2012 Scott Anderson <saa@android.com> am 866b1bd5: fastboot: Make the format of "devices -l" match adb\'s

* commit '866b1bd5051db4f22b634df1f8a06bc1c9aa2e26':
fastboot: Make the format of "devices -l" match adb's
866b1bd5051db4f22b634df1f8a06bc1c9aa2e26 05-Jun-2012 Scott Anderson <saa@android.com> fastboot: Make the format of "devices -l" match adb's

Change-Id: Iec7b02fee8298a4437d1827623e9f61688a73f42
Signed-off-by: Scott Anderson <saa@android.com>
astboot.c
3447b11d3e72bdc7409f63ec76ceba1babe06486 14-May-2012 JP Abgrall <jpa@google.com> am 177a74ac: am c1f88106: Merge "fastboot: Change -w to format after the erase of userdata & cache" into jb-dev

* commit '177a74aced971b89c319fb61ee12da0ca40f0c12':
fastboot: Change -w to format after the erase of userdata & cache
30ae5806e920cb824d019defd856068f09dd0db6 08-May-2012 JP Abgrall <jpa@google.com> fastboot: Change -w to format after the erase of userdata & cache

If the bootloader doesn't support formatting of those partitions
(either because it doesn't support the getvar commands needed or
the partition type is not supported), the errors are printed but
doesn't halt processing of subsequent commands.

Change-Id: I816ac2e5e7593846fcb4fd39c793a8dbdd996f6f
Signed-off-by: Mike J. Chen <mjchen@google.com>
ngine.c
astboot.c
astboot.h
a61bcad58ba1f7359183a333ee58303ed67e4a2f 02-May-2012 Scott Anderson <saa@android.com> resolved conflicts for merge of 13081c69 to master

Change-Id: I631e466fc53e9b0f4a39f24f959b4ae9b626bdda
13081c6915220db03886b177f1a8e0b2c63467c9 06-Apr-2012 Scott Anderson <saa@android.com> fastboot: Add ability to specify device path

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 <saa@android.com>
ngine.c
astboot.c
astboot.h
sb.h
sb_linux.c
sb_osx.c
sb_windows.c
f8ff3a5ae21ce34f22928709cc6f992ff2fdd56e 19-Apr-2012 JP Abgrall <jpa@google.com> fastboot: Keep borked bootloaders happy by shrinking URB len.

Some devices will fail to return the requested data if the final
URB len of the request to > 255.
So shrink the current data buffer from 128 to 127 in the acse of getting
the serial number seems to work just fine.

Change-Id: Ic24e6c86ec93f002dc721d92309b3f880f281f20
sb_linux.c
82fd659667e0919bf804a6a1cb4c9b1b10a76e0f 08-Apr-2012 Kenny Root <kroot@google.com> Tweak makefile to let SELinux build

fastboot now needs SELinux support when not on Windows.

Change-Id: Ib32404ef5c9a1a183d7ae319cc94eaf7f12620d9
ndroid.mk
1ecb8681c366b1c1e58473d97cd607195a06167f 31-Mar-2012 Kenny Root <kroot@google.com> fastboot: add support for SELinux and fs_config_func

There were some changes to make_ext4fs to add SELinux context. Also, we
changed the "android" argument to an fs_config_func that allows you to
customize the permissions put into a ext4 filesystem.

Change-Id: If23152c40659122a91771fcbd094f713b38e321e
ngine.c
5ae3f93f3bafbeb1fc9a3324475c58c725749c5e 28-Feb-2012 Anatol Pomazau <anatol@google.com> Remove trailing whitespaces

Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
ootimg.c
ngine.c
astboot.h
rotocol.c
sb.h
sb_linux.c
sb_osx.c
sb_windows.c
sbtest.c
til_linux.c
til_osx.c
til_windows.c
c4ddca25e0a1b60453c7fe7b4b73a412d4a940eb 27-Feb-2012 Ramanan Rajeswaran <ramanan@google.com> am f1ab88c2: am 73c019b3: Add asus vendor id

* commit 'f1ab88c23460a608cd6d6f6492fb2b039405c0f2':
Add asus vendor id
f1ab88c23460a608cd6d6f6492fb2b039405c0f2 27-Feb-2012 Ramanan Rajeswaran <ramanan@google.com> am 73c019b3: Add asus vendor id

* commit '73c019b30a7c70c50d2a854982143d5eb8c74f8c':
Add asus vendor id
73c019b30a7c70c50d2a854982143d5eb8c74f8c 24-Feb-2012 Ramanan Rajeswaran <ramanan@google.com> Add asus vendor id

Change-Id: I6d10b1788903aba526af7f654b12c302c3e9fc89
astboot.c
c8ba5366da7e23ebf1cd76bcf49449b878563102 16-Dec-2011 Anatol Pomazau <anatol@google.com> Implement 'fastboot format' command

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
ndroid.mk
ngine.c
astboot.c
astboot.h
714052ba4d86a2d411a3944f5034c5a5833ffbb6 05-Feb-2012 Mike J. Chen <mjchen@google.com> DO NOT MERGE

fastboot: Change -w to format after the erase of userdata & cache

If the bootloader doesn't support formatting of those partitions
(either because it doesn't support the getvar commands needed or
the partition type is not supported), the errors are printed but
doesn't halt processing of subsequent commands.

Change-Id: I816ac2e5e7593846fcb4fd39c793a8dbdd996f6f
Signed-off-by: Mike J. Chen <mjchen@google.com>
ngine.c
astboot.c
astboot.h
ca2074b78d44ce5fb60fae64da84e53c2b82cb8a 13-Feb-2012 Mike Lockwood <lockwood@google.com> Revert "Implement 'fastboot format' command"

until Windows support is done

This reverts commit 452e11885afb53d59b2aa38b15e3be41c568d1e6.
ndroid.mk
ngine.c
astboot.c
astboot.h
452e11885afb53d59b2aa38b15e3be41c568d1e6 16-Dec-2011 Anatol Pomazau <anatol@google.com> Implement 'fastboot format' command

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
ndroid.mk
ngine.c
astboot.c
astboot.h
6f53225ef9f60a18a69b4ad3ba920ada168b719e 04-Feb-2012 Anatol Pomazau <anatol@google.com> Revert "Implement 'fastboot format' command"

This reverts commit 230d160a718333651f7ca1557404f96682795b37
ndroid.mk
ngine.c
astboot.c
astboot.h
230d160a718333651f7ca1557404f96682795b37 16-Dec-2011 Anatol Pomazau <anatol@google.com> Implement 'fastboot format' command

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
ndroid.mk
ngine.c
astboot.c
astboot.h
7806e5648557532fcfb971bd2fd88f4033f32cb8 03-Feb-2012 Anatol Pomazau <anatol@google.com> Merge "Revert "Implement 'fastboot format' command""
21311f87c60bb75588e12227e7c0b9812e751b4a 03-Feb-2012 Anatol Pomazau <anatol@google.com> Revert "Implement 'fastboot format' command"

This reverts commit 049dff53ef368bd84d0bddcb4c91f408774949c1
ndroid.mk
ngine.c
astboot.c
astboot.h
65cf84f3ff959eec0c97229489d58279feaf3bcb 16-Dec-2011 Anatol Pomazau <anatol@google.com> Implement 'fastboot format' command

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
ndroid.mk
ngine.c
astboot.c
astboot.h
e9f6e00c192494c3e808ce4ca1c6af771179ccf6 03-Feb-2012 Anatol Pomazau <anatol@google.com> Merge "Implement 'fastboot format' command"
0fe24c96be69e0fd03cbaf16f1b0070423d98799 28-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am 142e895a: am e83cd37e: am 0458d373: Merge "fastboot: set the language local string"

* commit '142e895a1d5030a4e032f08fa5814ebd42b964b6':
fastboot: set the language local string
142e895a1d5030a4e032f08fa5814ebd42b964b6 27-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am e83cd37e: am 0458d373: Merge "fastboot: set the language local string"

* commit 'e83cd37e58b00fb6b9eb50464067864ca0cb2ff7':
fastboot: set the language local string
049dff53ef368bd84d0bddcb4c91f408774949c1 16-Dec-2011 Anatol Pomazau <anatol@google.com> Implement 'fastboot format' command

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
ndroid.mk
ngine.c
astboot.c
astboot.h
46f86f11d446a650602057f8a07eba1f609d7fe9 24-Jan-2012 Xavier Ducrohet <xav@android.com> am 0c054095: am 746f3243: Add USB vendor IDs for Quanta, INQ and Sony.

* commit '0c05409510037fd7372c3fe7ab240ebf33b15831':
Add USB vendor IDs for Quanta, INQ and Sony.
0c05409510037fd7372c3fe7ab240ebf33b15831 24-Jan-2012 Xavier Ducrohet <xav@android.com> am 746f3243: Add USB vendor IDs for Quanta, INQ and Sony.

* commit '746f3243f6d30ab51a36dcfea76eac3ba29ac625':
Add USB vendor IDs for Quanta, INQ and Sony.
746f3243f6d30ab51a36dcfea76eac3ba29ac625 14-Jan-2012 Xavier Ducrohet <xav@android.com> Add USB vendor IDs for Quanta, INQ and Sony.

Change-Id: I224e067d9a64e8e9e7afbad0760a4b07f965bf83
astboot.c
38412163da933664791cf511056953b9e3bd1454 24-Jan-2012 Jean-Baptiste Queru <jbq@google.com> am 70580b20: am 149ae11f: Merge "adb,fastboot: add USB support for Intel Vendor ID"

* commit '70580b20bc8485002df0b3e89e42754c8c9796ff':
adb,fastboot: add USB support for Intel Vendor ID
c840653efd8d05a33778d3e73c3521977564bde3 08-Jul-2011 mgross <mark.gross@intel.com> fastboot: set the language local string

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>
sb_linux.c
sb_osx.c
f60e8638282d66c108f1e1dea030856312f65892 17-Jan-2012 Wu, Hao <hao.wu@intel.com> adb,fastboot: add USB support for Intel Vendor ID

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>
astboot.c
d7608a40d6bed0d8ca686414a5a4f44b6d4d0435 30-Sep-2011 Jean-Baptiste Queru <jbq@google.com> Flash cache partition with cache.img by default.

Bug: 5153694
Change-Id: If322d13286e9b0f14877d1a4f03f6bd288ee71f3
astboot.c
66acffad765add93c8fc74592725eec901867393 27-Apr-2011 Conley Owens <cco3@android.com> am c4eaebbe: am ab6e55f7: Merge "Enlarge USB bulk transfer size for faster downloads"

* commit 'c4eaebbe7a0c125663f74e3961b62de8d3611a51':
Enlarge USB bulk transfer size for faster downloads
b98762f7824c291dc5d9a9b757af434ef31d8c81 05-Apr-2011 Wink Saville <wink@google.com> Teach fastboot to allow required variables per product.

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
ngine.c
astboot.c
astboot.h
913eb8bf874fcec647667bd7113da65b6e38488a 08-Mar-2011 David Krause <david.krause@motorola.com> 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
sb_linux.c
sb_windows.c
2d13d1408bef9e26cc418e6fc2579dfd12378a3c 02-Mar-2011 JP Abgrall <jpa@google.com> fastboot: fix arg handling causing no-op.

Change-Id: I89d4a6d14e542d8f2d7832d94b0a7cee6eb88305
astboot.c
ee52055ae5eeb951bb4805bd8aa57d63718e1ce7 26-Feb-2011 Tsu Chiang Chuang <tsu@google.com> Add explicit 'help' command to fastboot.

Change-Id: I350feab372e105755509c81604d57b2de1a69163
astboot.c
512405a421fa69a7a003854d9270cd109b026267 30-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am f1c2a735: Merge "fastboot: Add help message for continue command"

* commit 'f1c2a7352f19cf729f91bf2559fc93ef12c74dca':
fastboot: Add help message for continue command
24ce4bc8d7c4706286ef0530870dea80a1a0cd11 14-Oct-2010 Bruce Beare <bruce.j.beare@intel.com> fastboot: Add help message for continue command

Change-Id: I578b1b7c2d74d09d44ce9100bfe582aaa25c31b1
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
astboot.c
1c061b9ea952ebdf6093ca1e7c29bfff6332857e 09-Dec-2010 Ying Wang <wangying@google.com> dist for dist_files

Change-Id: I665572a2212f1239b02b7816e37ada210afbdb48
ndroid.mk
69f2d3ce91f18dd20441dc4c51839add63cac3e1 29-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am 42b871f1: am c37ba1c9: Merge "Check fastboot oem command line length"

Merge commit '42b871f1bfc116d53d1bff9d7497415494b2e0e0'

* commit '42b871f1bfc116d53d1bff9d7497415494b2e0e0':
Check fastboot oem command line length
42b871f1bfc116d53d1bff9d7497415494b2e0e0 29-Jul-2010 Jean-Baptiste Queru <jbq@google.com> am c37ba1c9: Merge "Check fastboot oem command line length"

Merge commit 'c37ba1c916d73fbf35c6faba1e252e2916d2d41d' into gingerbread-plus-aosp

* commit 'c37ba1c916d73fbf35c6faba1e252e2916d2d41d':
Check fastboot oem command line length
286d50fe34edef9b93cde6a3e2d052b2b96d071c 22-Jul-2010 Nick Pelly <npelly@google.com> Allow OSX fastboot to work with more devices.

ClearPipeStallBothEnds() appears to fail on some devices, but if we ignore
that error then fastboot does work. So ignore the error.

Change-Id: Ic866ece28a57c081e34079e1a032fa8155301ddf
sb_osx.c
50b3995d027b53f24bbba099b3b6884d5845b614 15-Jul-2010 Bruce Beare <brucex.j.beare@intel.com> Check fastboot oem command line length

Change-Id: I301af09c4ec460c9049b75cc7f4d2c50cfe00ceb
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
ngine.c
587c286f988a99469b8961f024c3be13f43c847a 14-Jul-2010 Brian Swetland <swetland@google.com> am beb72464: am 63e5205c: fastboot: make it so I can actually see the bootloader chatter

Merge commit 'beb72464ff8c501597cd7e098090f7d131dc5ccb'

* commit 'beb72464ff8c501597cd7e098090f7d131dc5ccb':
fastboot: make it so I can actually see the bootloader chatter
63e5205cd2f693bbfa54411f2dd20354bd30ffd8 28-Jun-2010 Brian Swetland <swetland@google.com> fastboot: make it so I can actually see the bootloader chatter

- prefix bootloader messages with (bootloader)
- remove the fancy right justified no newline business

Change-Id: Ica16ebe6a25971db423c5db06300a280d93faf3e
Signed-off-by: Brian Swetland <swetland@google.com>
ngine.c
rotocol.c
4272a7ad70721acd68cf9f73c0455bda3102c80f 01-Jul-2010 Werner Johansson <werner.johansson@sonyericsson.com> am a8c74049: am 931bdcc0: Set explicit timeout on USB control transfer

Merge commit 'a8c7404956b4370162a87ae09b851266a4933b54'

* commit 'a8c7404956b4370162a87ae09b851266a4933b54':
Set explicit timeout on USB control transfer
931bdcc09a3d805cf25033951adb95c8e5159e46 01-Jul-2010 Werner Johansson <werner.johansson@sonyericsson.com> Set explicit timeout on USB control transfer

This attempts to solve the intermittent issues with serial number
showing up as all question marks when issuing "fastboot devices"
sb_linux.c
f6e83f7eb8cab99b416c5be299f70adc4722a8bf 21-May-2010 Jeff Brown <jeffbrown@google.com> am dc594284: Merge "Fix kernel panics in fastboot on OS X." into kraken
b64063737e93638a09205e9310b58d8ddd7138ec 21-May-2010 Jeff Brown <jeffbrown@google.com> Fix kernel panics in fastboot on OS X.

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
sb_osx.c
c09b7cf1c96d007b35cfa47f464156bf628107de 14-May-2010 Dima Zavin <dima@android.com> am 509f7399: fastboot: Add more vendor usb ids
509f7399b8f246f506307b22039e63323ec09622 14-May-2010 Dima Zavin <dima@android.com> fastboot: Add more vendor usb ids

Change-Id: Ied48302b50412f27dcf49d40913e4b900f3bd153
Signed-off-by: Dima Zavin <dima@android.com>
astboot.c
b419c35c660d7421e18a9efef38eca11966b44c7 14-Apr-2010 Raphael <raphael@google.com> Fix adb, fastboot to compile in Windows SDK under Linux.

(Merged from master Change I3d0e4cab)

Change-Id: Ib3fd566bdaf09d5893a6b0c66168c76c6b0d92eb
ndroid.mk
eb31c0bdc0eac0898f01cdc1737cea94269f8f27 23-Apr-2010 Brian Carlstrom <bdc@google.com> fastboot should return non-zero exit code on error

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
ngine.c
astboot.c
astboot.h
fab167850d751a817c39e074334fe7a0987ce647 14-Apr-2010 Raphael <raphael@google.com> Fix adb, fastboot to compile in Windows SDK under Linux.

Change-Id: I3d0e4cabd65d9de17036901a22ec3277a6d58e64
ndroid.mk
cb6e22b687eee5a47c642620d2e995b60f60f3e7 25-Feb-2010 Daniel Sandler <dsandler@google.com> Add wall-clock timing for each fastboot Action.

(For diagnosing slow flashes.)

Change-Id: Ibbcbd080db551c8590ca8bfe50e9ddb45eea5661
ngine.c
931175a1c5f01f57781c9fcf64beade6ed5148ff 13-Feb-2010 Dima Zavin <dima@android.com> fastboot: add nand page size param, used for boot and flash:raw commands

Change-Id: I07451363f4d4ac8665598722491968e6ee0953ee
Signed-off-by: Dima Zavin <dima@android.com>
astboot.c
2f3d96ee5b6ba43b49d0e08c75b9a74b05f37b8b 28-Jan-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 20f410a4 to master

Change-Id: I187f29848c223c8c548323e0fa20ea0f3b8a3909
20f410a41890113de126680518c13cdab359c66d 22-Jan-2010 Android Git Automerger <android-git-automerger@android.com> resolved simple conflict with dc9cf66c
af82f21df7b87af2b378a46c8f338ebdd9c66175 22-Jan-2010 Xavier Ducrohet <xav@android.com> Add Dell's vendor ID to fastboot.

Change-Id: I1d88d2a8b3f5c0a9bade2a207b5d9c5a0b776655
astboot.c
37e9e904360d6a8757c958dacaab1343eacb7fa8 21-Jan-2010 Erik Gilling <konkers@android.com> fastboot: add Nvidia vendor id to fastboot

Signed-off-by: Erik Gilling <konkers@android.com>
astboot.c
c923980e785c533e41e403e9644368643dbac952 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> am ef063fe3: merge from open-source master

Merge commit 'ef063fe3066153dab5389b6baba6cb4e36888106'

* commit 'ef063fe3066153dab5389b6baba6cb4e36888106':
Add support for Acer devices
FreeBSD support for usb-connected devices in adb
Make get_my_path() safer
Fix use of memset function
ef063fe3066153dab5389b6baba6cb4e36888106 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
436db2e382f0cf47bf3255783c12f35e5750cdf7 09-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
e25ff1c682ae5cc87af5e76de7e31a2702b620f3 21-Sep-2009 Robert CH Chou <Robert_CH_Chou@acer.com.tw> Add support for Acer devices
astboot.c
44a0270c1ed8ec95cb380529c56c58a16889e111 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I31dbed7b

* changes:
Add adb's ANDROID_SERIAL to fastboot too.
c500be926cf07c43aeb828ae86b04b856c6b7c63 08-Oct-2009 Elliott Hughes <enh@google.com> Fix flashstation breakage.

We need to reset 'writable' each time round the loop (i.e. for each device).
sb_linux.c
31dbed7b60d8237d6d05dc6bf230167a5854b77a 08-Oct-2009 Elliott Hughes <enh@google.com> Add adb's ANDROID_SERIAL to fastboot too.

We noticed this when trying to script on-device testing for the dalvik
continuous build.

Also fix a typo in adb's help.
astboot.c
b4add9b74525210478bac702d27fdaf9cf7ab18f 07-Oct-2009 Elliott Hughes <enh@google.com> Make fastboot say "no permissions" for non-writable devices.

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.
astboot.c
sb.h
sb_linux.c
sb_osx.c
sb_windows.c
3969080e232beed7c68a65cde7fdafc79ce55b0e 01-Jun-2009 Mathias Agopian <mathias@google.com> get rid of utils/executablepath.h, which now lives in the simulator
til_osx.c
b2de4db941f5329f9f19e70feff5786b2d5acbb6 18-Aug-2009 Dan Murphy <D.Murphy@motorola.com> fastboot: Add retry to USB read call.

If the USB connection to the device is reset but is still there
the code should retry to re-connect the device and continue.

This is a short term fix for a bootloader issue.
We should revisit and look for a better solution.

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
sb_linux.c
09070d9e8685645f4ca8ecca62ae489472aed646 05-Aug-2009 Mike Lockwood <lockwood@android.com> fastboot: Add support for Motorola USB vendor ID.

Signed-off-by: Mike Lockwood <lockwood@android.com>
astboot.c
89ac364c54cca39892a342150f4f82c0636f959f 01-Jun-2009 Mathias Agopian <mathias@google.com> get rid of utils/executablepath.h, which now lives in the simulator
til_osx.c
95ec983887867a117f4ef87073495111aff4a506 01-May-2009 Dima Zavin <dima@android.com> fastboot: Update the help message with -b argument

Signed-off-by: Dima Zavin <dima@android.com>
astboot.c
2a63bb7abf1b27a7a2e8fd5951d77f71a2f290d4 29-Apr-2009 Brian Swetland <swetland@google.com> fastboot, mkbootimg: support alternate base addresses

Add the --base flag to mkbootimg and -b flag to fastboot, to allow
the default kernel base address (0x10000000) to be changed.

Signed-off-by: Brian Swetland <swetland@google.com>
ootimg.c
astboot.c
f614d64d4b4dfcd20c77ac3ccf2d9c9090a49303 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
astboot.c
dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid.mk
ootimg.c
ngine.c
ngineering_key.p12
astboot.c
astboot.h
enkey.sh
12topem.sh
rotocol.c
ignfile.sh
sb.h
sb_linux.c
sb_osx.c
sb_windows.c
sbtest.c
til_linux.c
til_osx.c
til_windows.c
e54eebbf1a908d65ee8cf80bab62821c05666d70 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid.mk
ootimg.c
ngine.c
ngineering_key.p12
astboot.c
astboot.h
enkey.sh
12topem.sh
rotocol.c
ignfile.sh
sb.h
sb_linux.c
sb_osx.c
sb_windows.c
sbtest.c
til_linux.c
til_osx.c
til_windows.c
13f797da7f190e9ea52f2f3d235210b8a4963b21 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
astboot.c
35237d135807af84bf9b0e5b8d7f8633e58db6f5 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ndroid.mk
astboot.c
4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ndroid.mk
ootimg.c
ngine.c
ngineering_key.p12
astboot.c
astboot.h
enkey.sh
12topem.sh
rotocol.c
ignfile.sh
sb.h
sb_linux.c
sb_osx.c
sb_windows.c
sbtest.c
til_linux.c
til_osx.c
til_windows.c