热更新免刷flash故障恢复
在hinicadm3的updatefw命令中新增bypass_flash选项以实现免刷flash热更新能力,该能力推荐在开发调试时使用,在上下电后会加载原有固件,通过免刷flash更新的固件会失效。
接口名称
hinicadm3 updatefw -i <device_id> -f <firmware file>-a <active mode> -t bypass_flash
接口描述
烧录Hinic3_flash.bin固件。
参数说明
参数名 |
入参/出参 |
说明 |
|---|---|---|
device_id |
入参 |
设备ID。 |
firmware file |
入参 |
固件路径。 |
active mode |
入参 |
激活模式。 |
使用示例
hinicadm3 updatefw -i hinic0 -f Hinic3_flash.bin -a hot -t bypass_flash
热更新免刷故障恢复操作步骤
- 执行以下命令进行免刷flash热更新。
hinicadm3 updatefw -i hinic0 -f {编译的NPU固件} -a hot -t bypass_flash打印信息如下,即表示更新成功。[root@localhost bypass_flash]# hinicadm3 updatefw -i hinic0 -f Hinic3_flash.bin -a hot -t bypass_flash Version check succeed. The running version can be hot upgraded to the target version. Please do not remove driver or network device. Loading... Firmware update start: 2025-04-27 15:30:36 [>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>] [100%][\] Firmware update finish: 2025-04-27 15:30:53 Firmware update time used: 17s Loading firmware image succeed. Do not operate the device during the hot upgrade. NPU firmware (bypass flash) is activing. Please waiting... Set update hot active successful
- 更新后若出现故障,可以通过上下电恢复为原有固件。
父主题: FAQ