Fastboot的使用简单教程

 

大家都知道HTC手机重新启动进入所谓的project模式,就是HBOOT,然后能够进入FASTBOOT界面,在这个界面。我们能够在电脑端能够做非常多事,特别是HBOOT被改动过,假设是ENG S-OFF的能够做的很多其它。就是利用FASTBOOT能够刷入一些分区。

可是有些分区不建议大家使用FASTBOOT。你也刷不进。

手机端分区:
这里的分区主要就是我们常常会使用的分区:
开机启动画面区(splash1):开机第一屏就是这个
数据恢复区(recovery):Recovery所在的分区
内核区(boot):引导分区。就是ROM包boot.img刷入的分区
系统区(system):就是系统存放的分区,也就是ROM包相应的SYSTEM分区,这个分区出厂设置会比較大。可是这个空间是死的,你改动不了。就是说,你400M和100M的ROM包存放的空间都是一样大的。机型不同这个分区厂商设置的不同。
数据缓存区(cache):手机执行后存放缓存的分区
用户数据区(userdata):手机执行后存在的数据分区

FASTBOOT帮助:

  1. usage: fastboot [ <option> ] <command>   
  2. commands:   
  3. update <filename>   reflash device from update.zip   
  4. flashall    "flash boot" + "flash system"   
  5. flash <partition> [ <filename> ] write a file to a flash partition   
  6. erase <partition>   erase a flash partition   
  7. getvar <variable>   display a bootloader variable   
  8. boot <kernel> [ <ramdisk> ]  download and boot kernel   
  9. flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it   
  10. devices     list all connected devices   
  11. reboot     reboot device normally   
  12. reboot-bootloader   reboot device into bootloader   
  13. options:   
  14. -w     erase userdata and cache   
  15. -s <serial number>   specify device serial number   
  16. -p <product>    specify product name   
  17. -c <cmdline>    override kernel commandline   
  18. -i <vendor id>    specify a custom USB vendor id  

复制代码
简单的FAST使用教程:
1.fastboot 帮助

2. 擦除分区:
fastboot erase {partition}   如:fastboot erase boot或fastboot erase system等。



3.刷入指定分区:
  fastboot flash {partition} {*.img}   如:fastboot flash boot boot.img或fastboot flash system system.img等。

4. 刷入所有分区:
    fastboot flashall   注意:此命令会在当前文件夹中查找全部img文件,将这些img文件烧写到全部相应的分区中,并又一次启动手机。

5. 刷入boot,system,recovery分区:
    (1)创建包括boot.img,system.img,recovery.img文件的zip包。
    (2)运行:fastboot update {*.zip}

6. 刷入开机画面:
    fastboot flash splash1 开机画面

7. 重新启动手机:
    fastboot reboot

请注意:上面的刷入分区。并非每一个机型或每部手机都能够刷入的。ENG S-OFF是能够的,官方解锁的手机能够刷入BOOT分区。

请大家使用的时候最好将FASTBOOT文件和ADB一起使用。这样更方便。

使用ADB进入FASTBOOT命令:adb reboot bootloader

发布了18 篇原创文章 · 获赞 6 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_37207639/article/details/99680550