upgrade-tool工具不支持容器场景,部署容器时,禁止将upgrade-tool工具映射到容器内。
功能描述 |
执行命令 |
参数 |
---|---|---|
upgrade-tool工具可以查看固件版本、升级单个或多个固件等,只允许root用户执行。 请切换到“/var/davinci/driver”路径执行命令。 |
查看帮助信息: ./upgrade-tool --help |
--help:查看帮助信息。 |
列举所有Device: ./upgrade-tool --mini_devices |
--mini_devices:所有设备列表。 |
|
启动固件主备同步: ./upgrade-tool --sync |
--sync:启动固件主备同步。 须知:
在使能主备分区功能的系统中,若主备分区中安装的驱动版本不一致,执行此命令后会导致其中一个分区出现固件与驱动不兼容的现象,严重时会导致此分区无法正常使用。 |
|
获取指定设备的版本: ./upgrade-tool --device_index <dev_id> --system_version |
|
|
获取指定设备的组件信息: ./upgrade-tool --device_index <dev_id> --components |
--components:列举所有有效的组件。 |
|
查询设备状态: ./upgrade-tool --device_index <dev_id> --status |
--status:设备状态。支持的设备状态具体包含:
|
|
查询某个设备中某一个组件对应的版本: ./upgrade-tool --device_index <dev_id> --component <type> --version |
|
|
异步升级指定设备的固件包(暂不支持): ./upgrade-tool --device_index <dev_id> --component <type> --async --path <firmware_path> --async必须紧跟在component <type>后面 |
--async:支持异步升级,即device侧收到host侧发送的升级请求后,返回请求成功响应到host侧(具体固件是否升级成功,需要通过“--status”参数去查询)。暂不支持。 |
|
查看所有分区的固件版本: ./upgrade-tool --device_index <dev_id> --component <type> --all --version |
--all --version:查看所有分区(Flash分区、主备分区)的固件版本。 |
|
查询算力功率等级(暂不支持): ./upgrade-tool --device_index <dev_id> --component <type> --level |
--level:查询算力功率等级,暂不支持。 |
|
|
||
指定组件的recover区主备区域进行升级: ./upgrade-tool --device_index <dev_id> --component <type> --media --mmc --recover --<main/backup> --path <firmware_path> |
--recover:指定组件的recover区主备区域进行升级,用于系统恢复。 |
|
查询设备是否是物理机: ./upgrade-tool --device_index <dev_id> --phymachflag |
--phymachflag:查询设备是否是物理机。如果不是物理机,不允许升级设备的固件包。 |