fastboot

http://baike.baidu.com/view/5737008.htm

英语翻译:快速启动。

  在安卓手机中fastboot是一种比recovery更底层的刷机模式。
  fastboot是一种线刷,就是使用USB数据线连接手机的一种刷机模式。相对于某些系统(如小米)卡刷来说,线刷更可靠,安全。
  recovery是一种卡刷,就是将刷机包放在sd卡上,然后在recovery中刷机的模式。





http://zhidao.baidu.com/question/152907829.html
手机另类刷机方法之Fastboot
简单的fastboot命令:

1.重启G1:

$ fastboot reboot

2.刷所有分区:以下命令会在当前目录寻找各种所有的image文件,并且在刷完所有分区后重启手机

$ fastboot flashall

3.刷指定分区:

$ fastboot flash {partition} {file.img}

如:fastboot flash system /备份/system.img

4.擦除分区:

$ fastboot erase {partition}

如:fastboot erase system

5.刷完整的系统: (未测试!!). 创建一个包含boot.img, system.img和recovery.img的zip压缩包,并且运行:

$ fastboot update {update.zip}

6.刷自定义开机画面:(替代默认的白色"T-Mobile G1"画面):

$ fasboot flash splash1 mysplash.rgb565

注意开机画面文件需要一个特定格式,参考:Custom boot image

*通常需要完全恢复的操作是:

$ fastboot flash boot boot.img
$ fastboot flash system system.img
$ fastboot flash userdata data.img

$ fastboot flash recovery recovery.img

以下是完整的fastboot命令的使用说明:

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     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

========================================================================================

2012年10月17日17:47:11:

可以用fastboot向开发板中下载内核和根文件系统!

========================================================================================

2012年10月24日10:10:40:

这个东西和启动它的u-boot紧密相连,分区都用u-boot中的分区,像Qt-Linux中的u-boot中没有ramdisk分区就不能用:

$ fastboot flash ramdisk ......

这个需要更新为Android的u-boot然后reboot后才可以下载……

=========================================================================================

fastboot android10版本 ubuntu linux平台 fastboot version 28.0.2-PD02.200305.0422 $ fastboot -h usage: fastboot [OPTION...] COMMAND... flashing: update ZIP Flash all partitions from an update.zip package. flashall Flash all partitions from $ANDROID_PRODUCT_OUT. On A/B devices, flashed slot is set as active. Secondary images may be flashed to inactive slot. flash PARTITION [FILENAME] Flash given partition, using the image from $ANDROID_PRODUCT_OUT if no filename is given. basics: devices [-l] List devices in bootloader (-l: with device paths). getvar NAME Display given bootloader variable. reboot [bootloader] Reboot device. locking/unlocking: flashing lock|unlock Lock/unlock partitions for flashing flashing lock_critical|unlock_critical Lock/unlock 'critical' bootloader partitions. flashing get_unlock_ability Check whether unlocking is allowed (1) or not(0). advanced: erase PARTITION Erase a flash partition. format[:FS_TYPE[:SIZE]] PARTITION Format a flash partition. set_active SLOT Set the active slot. oem [COMMAND...] Execute OEM-specific command. gsi wipe|disable Wipe or disable a GSI installation (fastbootd only). boot image: boot KERNEL [RAMDISK [SECOND]] Download and boot kernel from RAM. flash:raw PARTITION KERNEL [RAMDISK [SECOND]] Create boot image and flash it. --dtb DTB Specify path to DTB for boot image header version 2. --cmdline CMDLINE Override kernel command line. --base ADDRESS Set kernel base address (default: 0x10000000). --kernel-offset Set kernel offset (default: 0x00008000). --ramdisk-offset Set ramdisk offset (default: 0x01000000)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值