fastboot常用维测命令汇总

usb  公共
                oem              调用oem命令集                          详见oem命令集
                getvar           调用getvar命令集                       详见getvar命令集
                download        镜像升级                               fastboot flash <partition> <imagefile>
                erase            擦除emmc的指定partition                fastboot erase <partition>
                flash            镜像升级                               fastboot flash <partition> <imagefile>
                reboot           重启单板                               fastboot reboot

getvar  公共
                version                  获取版本号                         fastboot getvar version
                product                  获取产品型号                       fastboot getvar product
                serialno                 获取产品序列号                     fastboot getvar serialno
                max-download-size        获取最大下载量                     fastboot getvar max-download-size
                emmc:                    获取指定partition的信息            fastboot getvar emmc:<partition>
                ddrdump                  获取ddr内存分布信息                fastboot oem ddrdump
                memory:                  获取指定partition的内存信息        fastboot getvar memory:<XXXX>
                nve:                     获取或设置nve项        "查询:fastboot getvar nve:<NV项> 设置:fastboot getvar nve:NV项@二进制修改值"
                call:                    调用全局函数                                 fastboot getvar call:全局函数名@参数1@参数2@参数3…
                resize                   设置reboot type为REBOOT_RESIZE_CMDNUM        fastboot getvar resize
                read                     读取指定地址数据                             fastboot oem read@addr[@size]
                recovery                 写数据到指定地址                             fastboot oem write@addr@data

oem  公共
                boot                     从当前位置继续启动系统           fastboot oem boot
                efuse                    写val到指定groupid的efuse        fastboot oem wrefuse <groupid> <val>
                                         读efuse                          fastboot oem rdefuse <groupid>
                                         读取efuse所有分组的当前值        fastboot oem efuse_read_all
                uart                     使能或禁用uart                   fastboot oem uart enable
                                                                          fastboot oem uart disable
                                         设置uart                         fastboot oem uart lpm 0/6 (将uart0/uart6设置为lpm3的串口)
                lockstate                获取升级锁状态                   fastboot oem get-lockstate
                read_bsn                 读NVE的BSN,即BOARDID            fastboot oem read_bsn
                read_die_id              获取die id                       fastboot oem read_die_id
                erase_storage_all        擦除emmc的所有partition                fastboot oem erase_storage_all
                dump emmc                读取emmc指定partition的数据到指定位置  fastboot oem dump-emmc <partition> <filename>
                ddrdump                  dump ddr 到PC                          fastboot oem memupload <addr> <size> <filename>
                                                                                fastboot oem memory <memoryname> <filename>
                get-build-number         获取build number                       fastboot oem get-build-number
                memcpy_count             记录各个内存段被拷贝的次数        fastboot oem memcpy_count
                watchdog                 使能或禁用watchdog        "[1]:fastboot oem watchdog [all] [enable/disable]
                                                                    [2]:fastboot oem watchdog [ap/global/modem/lpm/iom/hifi/secos/isp/ivp] [enable/disable]"
 

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
linux ubuntu fastboot 下载 方法1: GSI Flashing Procedure For Android-Q Fresh Launch Build(DP Enabled): Flash META Change directory to Apps path Flash below Apps and GSI image. Apps Build flashing fastboot flash persist persist.img cd secondary-boot fastboot flash boot_a boot.img (boot.img image for CTS-on-GSI, boot-debug.img for VTS testing) fastboot flash dtbo_a dtbo.img fastboot flash recovery_a recovery.img fastboot flash super super.img fastboot flash userdata userdata.img fastboot flash vbmeta_a vbmeta.img fastboot flash vbmeta_system_a vbmeta_system.img GSI Flashing steps: fastboot reboot fastboot fastboot flash system fastboot -w fastboot flashing lock fastboot reboot NOTE: Dynamic Partition mandatory for android-Q Fresh Launch devices. Device should not come out of fastboot mode between Apps flashing and GSI flashing. For Android-Q Upgraded Build or Android-P Builds: Apps and GSI image flashing: fastboot flash userdata userdata.img fastboot flash persist persist.img cd secondary-boot fastboot flash boot_a boot.img fastboot flash dtbo_a dtbo.img fastboot flash vendor_a vendor.img fastboot flash system_a fastboot --disable-verification flash vbmeta_a vbmeta.img fastboot flashing lock fastboot reboot 方法2: 这个版本刷GSI时,oem unlock的操作有更新如下: adb reboot-bootloader fastboot oem sim-allowunlock (允许解锁) fastboot flashing unlock (这里需要按 音量上键 确认) adb reboot-bootloader fastboot flash system system_xxxxxxxxxxx.img fastboot --disable-verification flash vbmeta vbmeta.img fastboot reboot 取消验证,取消AVB验证 fastboot --disable-verification flash vbmeta vbmeta.img 之后就可以通过fastboot烧录boot.img vendor.img system.img 单独烧录。 3.4 AndroidO userdebug版本刷机时禁止dm-verity AndroidO dm-verity disable flag存在于vbmeta.img(keystore分区)中;而老版本是放置在system.img分区的dm-verity metadata中。 1)在设置中打开OEM unlocking选项 2)在设置中打开USB debugging选项 3)adb reboot bootloader 4)fastboot flashing unlock和fastboot oem unlock 5)fastboot --disable-verity --disable-verification flash vbmeta vbmet

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值