I. fastboot command details
Android mobile phone partition (each partition has the corresponding imgfile ):
Boot screen area (splash1), data recovery area (recovery), kernel area (boot), system area (system), data cache area (cache), user data area (userdata ).
1. view the help of the fastboot command:
Fastboot
The following information is displayed:
View plain
Usage: fastboot [<option>] <command>
Commands:
Update <filename> reflash device from update.zip
Flashall "flash boot" + "flash system"
Flash <partition> [<filename>] write a file to a flash partition
Erase <partition> erase a flash partition
Getvar <variable> display a bootloader variable
Boot <kernel> [<ramdisk>] download and boot kernel
Flash: raw boot <kernel> [<ramdisk>] create bootimage and flash it
Devices list all connected devices
Reboot device normally
Reboot-bootloader reboot device into bootloader
Options:
-W erase userdata and cache
-S <serial number> specify device serial number
-P <product> specify product name
-C <cmdline> override kernel commandline
-I <vendor id> specify a custom USB vendor id
2. Erase partitions:
Fastboot erase {partition} example: fastboot erase boot or fastboot erase system.
3. Burn the specified partition:
Fastboot flash {partition} {*. img} example: fastboot flash boot. img or fastboot flash system. img.
4. Burn all partitions:
Fastboot flashall Note: This command searches for all imgfiles in the current directory, burns these imgfiles to all corresponding partitions, and restarts the mobile phone.
5. One boot, system, and recovery partition:
(1) create a zip package containing the boot. img, system. img, and recovery. imgfile.
(2) execute: fastboot update {*. zip}
6. Burn the boot screen:
Fastboot flash splash1 boot Screen
7. Restart the mobile phone:
Fastboot reboot
Ii. Use fastboot to quickly burn imgfiles to improve debugging Efficiency
1. In the project's out directory out/host/linux-86/bin will become adb and fastboot command tool. The use of the Fastboot command and the environment settings are the same as those of adb.
2, the attachment system. h file modification/kernel/arch/arm/mach-sc8810/include/mach under the system. h.
3. For the first time, you must use reserachdownload to download all the compiled imgfiles.
4. After the mobile phone is started, use adb reboot bootloader to enter fastboot mode.
5. Run fastboot in ubuntu to burn the specified imgfile. In this way, you can reduce the use of reserachdownload in windows and reduce debugging time.
6. Currently, this operation is only applicable to the spreadtrum platform,
/Kernel/arch/arm/mach-sc8810/include/mach/system. h
Else if (! Strncmp (cmd, "bootloader", 9 ))
{
ANA_REG_SET (ANA_RST_STATUS, HWRST_STATUS_BOOTLOADER );