|
NAMEfastboot - manipulate the non-volatile flash partitionsSYNOPSISfastboot [options] [commands]DESCRIPTIONfastboot is a program used to manipulate (list, install, erase) the non-volatile memory such as flash filesystem partitions on devices that adhere to the fastboot protocol, via a USB connection from a host computer. It requires that the device be started in a boot loader mode with the fastboot protocol enabled. Once connected to the device, the program accepts a specific set of commands sent to it via the USB using the fastboot program on the host.fastboot is primarily used for installing the operating system binary `images' into the non-volatile flash memory of the devices. The partition should adhere to a specific layout. Fastboot was designed for use with phones and tablets running the Android operating system. To allow non-root user access to the devices, one might need to adjust permissions via /etc/devd/*.conf file for a particular device or via /etc/devfs.rules for a particular user or group. If the device is not connected, certain fastboot commands display the output:
< waiting for the device >
and waits till it detects and establish a fastboot connection with the connected device. Otherwise, it prints a helpful list of commands and switches and exits. OPTIONS
COMMANDS
Reboot the device normally..
Show a help message.
ENVIRONMENTANDROID_PRODUCT_OUT
ANDROID_SERIAL
EXAMPLES1. Flashing the recovery image: fastboot flash recovery recovery.img 2. Flash the kernel and bootloader: fastboot flash boot boot.img 3. Erase a partition: fastboot erase cache 4. Reboot the phone: fastboot reboot 5. Boot with a custom built kernel and root filesystem (but not write them into the flash memory): fastboot boot linux-2.6/arch/arm/boot/zImage root-image/recovery.img-ramdisk.cpio.gz 6. Format partitions: fastboot format cache fastboot format userdata 7. Flash all partitions at once: fastboot -w flashall 8. Restoring from backed up images in the user's computer:: fastboot erase system fastboot erase data fastboot erase cache and then flash the images (starting with system): fastboot flash system system.img fastboot flash data data.img fastboot flash cache cache.img 9. Boot the phone with a specific linux kernel commandline argument: fastboot -c "console=ttyHSL0,115200,n8" boot boot.img DIAGNOSTICSMake sure that the device is connected and is visible via usbconfig. If the device is detected by `usbconfig' and `adb devices' output shows `???????????? device', then try restarting devd(8) or try disconnecting and connecting the cables.BUGSThe command name should have been chosen more carefully to reflect its purpose.AUTHORfastboot was written by engineers at Google for the Android project.Ramakrishnan Muthukrishnan wrote this manual page, originally for the Debian Project, with a lot of suggestions from Raul Miller. SEE ALSOadb(1), devd.conf(5), devfs.rules(5), usbconfig(8) Visit the GSP FreeBSD Man Page Interface. |