| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
| |
So they can be downloaded from the build page.
Bug: 7109694
Change-Id: Ibc60d0acbc5d2445c01010fd0bd4654a240b0a88
|
|\
| |
| |
| |
| |
| |
| | |
flashing"
* commit '94938c9d60d6467ec40df4254beadc50bb787934':
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>
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
* 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
|
| | |
| | |
| | |
| | | |
Change-Id: I5006b467978071f9107babe532efa71d05061580
|
| | |
| | |
| | |
| | |
| | |
| | | |
conflict
Change-Id: Ibc7923676925ed6942b3f672ee764cfaa98ee96e
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
disabled"
* commit '36f2e2ac96f8b2163a37773f5cb92cfff75dede2':
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
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit 'cecc3186ca18ddf7a2d43a12353c45a81ab2baca':
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
|
|\ \
| |/
| |
| | |
Change-Id: Ic092d27d3fc2bcc4db8a375bbcb5b86c111bf062
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| | |
Add an fb_getvar helper that can be used to get values from the
target.
Change-Id: I0da088fcbc8d40076c7bf5ef6e5bbd97fae61471
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| | |
| | |
| | |
| | | |
* commit '866b1bd5051db4f22b634df1f8a06bc1c9aa2e26':
fastboot: Make the format of "devices -l" match adb's
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: Iec7b02fee8298a4437d1827623e9f61688a73f42
Signed-off-by: Scott Anderson <saa@android.com>
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | | |
erase of userdata & cache" into jb-dev
* commit '177a74aced971b89c319fb61ee12da0ca40f0c12':
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>
|
|\ \ \
| |/ /
|/| /
| |/ |
Change-Id: I631e466fc53e9b0f4a39f24f959b4ae9b626bdda
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
fastboot now needs SELinux support when not on Windows.
Change-Id: Ib32404ef5c9a1a183d7ae319cc94eaf7f12620d9
|
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Change-Id: I6f83333a6ee0fbc562a12bb9555c43a44c98768e
|
|\ \
| | |
| | |
| | |
| | | |
* commit 'f1ab88c23460a608cd6d6f6492fb2b039405c0f2':
Add asus vendor id
|
| |\ \
| | | |
| | | |
| | | |
| | | | |
* commit '73c019b30a7c70c50d2a854982143d5eb8c74f8c':
Add asus vendor id
|
| | |/
| | |
| | |
| | | |
Change-Id: I6d10b1788903aba526af7f654b12c302c3e9fc89
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | | |
until Windows support is done
This reverts commit 452e11885afb53d59b2aa38b15e3be41c568d1e6.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | | |
This reverts commit 230d160a718333651f7ca1557404f96682795b37
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|\ \ \ |
|
| | | |
| | | |
| | | | |
This reverts commit 049dff53ef368bd84d0bddcb4c91f408774949c1
|
|\ \ \ \
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
|\ \ \ \
| |/ / /
|/| / /
| |/ /
| | |
| | |
| | | |
local string"
* commit '142e895a1d5030a4e032f08fa5814ebd42b964b6':
fastboot: set the language local string
|
| |\ \
| | | |
| | | |
| | | |
| | | | |
* commit 'e83cd37e58b00fb6b9eb50464067864ca0cb2ff7':
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>
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
* commit '0c05409510037fd7372c3fe7ab240ebf33b15831':
Add USB vendor IDs for Quanta, INQ and Sony.
|
| |\ \ \
| | |/ /
| |/| /
| | |/
| | | |
* commit '746f3243f6d30ab51a36dcfea76eac3ba29ac625':
Add USB vendor IDs for Quanta, INQ and Sony.
|
| | |
| | |
| | |
| | | |
Change-Id: I224e067d9a64e8e9e7afbad0760a4b07f965bf83
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
Vendor ID"
* commit '70580b20bc8485002df0b3e89e42754c8c9796ff':
adb,fastboot: add USB support for Intel Vendor ID
|