鲲鹏社区首页
中文
注册
开发者
我要评分
获取效率
正确性
完整性
易理解
在线提单
论坛求助

热更新免刷flash故障如何恢复

在hinicadm3的updatefw命令中新增bypass_flash选项以实现免刷flash热更新能力,该能力推荐在开发调试时使用,在上下电后会加载原有固件,通过免刷flash更新的固件会失效。命令详情,请参见《华为SP900 DPU卡 用户指南》中“热升级固件”。

  1. 执行以下命令进行免刷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
  2. 更新后若出现故障,可以通过上下电恢复为原有固件。