fastboot常用维测命令汇总

本文档详细介绍了Fastboot模式下的一系列命令,包括用于升级、擦除、查询设备信息的通用命令,如`getvar`、`download`、`erase`和`flash`。此外,还阐述了OEM特定的命令,如`boot`、`efuse`管理和`watchdog`的启用或禁用,这些命令允许对设备进行更深入的控制和诊断。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值