Android mobile phone partition (each partition corresponds to an imgfile): boot screen area (splash1), data recovery area (recovery), kernel area (BOOT ),
System, data cache, and userdata ).
1. view the help of the fastboot command:
Fastboot
The following information is displayed:Usage: fastboot [<option>] <command> <br/> commands: <br/> Update <FILENAME> reflash device from update.zip <br/> flashall "Flash Boot" + "Flash System" <br/> flash <partition> [<FILENAME>] Write A file to a flash partition <br/> erase <partition> erase a flash partition <br/> getvar <variable> display a bootloader variable <br/> boot <kernel> [< ramdisk>] download and boot kernel <br/> flash: raw boot <kernel> [<ramdisk>] Create bootimage and flash it <br/> devices list all connected devices <br/> Reboot reboot device normally <br/> Reboot-bootloader reboot device into bootloader <br/> options: <br/>-W erase userdata and cache <br/>-S <serial number> specify device serial number <br/>-P <product> specify product name <br/> -C <cmdline> override kernel CommandLine <br/>-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