设置写保护启动状态

命令功能

设置写保护启动状态。

命令格式

dpu_tool -s flash/p/$type.$value

入参说明

参数

参数说明

取值

$type

写保护启动区。

  • 0:主flash
  • 1:备flash

$value

设置写保护启动状态。

  • 0:关闭写保护
  • 1:打开写保护

出参说明

项目

描述

val:xx

写保护启动状态。

使用指南

SP923H-VL卡支持。

使用实例

设置写保护启动状态。
1
2
3
4
5
6
7
8
dpu_tool -s flash/p/0.0
Set flash protection type: 0, value:0 successfully
dpu_tool -s flash/p/0.1
Set flash protection type: 0, value:1 successfully
dpu_tool -s flash/p/1.0
Set flash protection type: 1, value:0 successfully
dpu_tool -s flash/p/1.1
Set flash protection type: 1, value:1 successfully