fastboot 指令

命令:
  升级 <文件名> → update <filename>        作用: 刷入ROM
   列句: fastboot update update.zip
  刷入所有镜像  → flashall             作用: 刷入boot.img、system.img、recovery.img
   列句: fastboot flashall update.zip
  刷入镜像    → flash <partition> [ <filename> ]  作用: 刷入boot.img、system.img、recovery.img
   列句: fastboot flash system system.img
   列句: fastboot flash boot boot.img
  擦除镜像    → erase <partition>         作用: 擦除boot.img、system.img、recovery.img
   列句: fastboot erase boot
   列句: fastboot erase system
  显示参数    → getvar <variable>         作用: 显示BL下的部分参数
   列句: fastboot getvar 字符
  刷入内核    → boot <kernel> [ <ramdisk> ]    作用: 刷入kernel.img
   列句: fastboot boot kernel.img ramdisk.gz
  创建内核    → flash:raw boot <kernel> [ <ramdisk> ]作用: 询问中

   列句: fastboot flash:raw boot kernel.img ramdisk.gz
  输出设备    → devices              作用: 输出所有连接的设备

   列句: fastboot devices
  重启设备    → reboot              作用: 重新启动,正常开机
   列句: fastboot reboot
  重启进入HBoot → reboot-bootloader         作用: 重新启动,进入HBoot
   列句: fastboot reboot-bootloader
选项:
  擦除数据    → -w                作用: Recovery下的wipe
   列句: fastboot -w
  指定设备    → -s                 作用: 指定某设备
   列句: fastboot -s 序列号
  指定设备    → -p                作用: 指定某设备
   列句: fastboot -p 设备名
  指定设备    → -c                 作用: 替代系统启动命令
   列句: fastboot -c 代码
  供应商代码   → -i                 作用: 指定一个自定义USB供应商ID
   列句: fastboot -i 代码
  供应商代码   → -i                 作用: 指定一个定制内核基址
   列句: fastboot -i 代码

猜你喜欢

转载自mxm910821.iteye.com/blog/1734624