table of contents
FLASHPROG-WRITE-PROTECT(8) | 2024-11-03 | FLASHPROG-WRITE-PROTECT(8) |
NAME¶
flashprog-write-protect - control write-protection settings of flash chips
SYNOPSIS¶
flashprog write-protect [status] <options>
flashprog write-protect list
<options>
flashprog write-protect disable <options>
[--temporary]
flashprog write-protect enable <options>
[--temporary]
flashprog write-protect range <options>
[--temporary] <start>,<len>
flashprog write-protect region <options>
[--temporary] <region-name>
Where generic <options> are:
[-V[V[V]]] [-o <logfile>] [-h]
and layout <options> are:
DESCRIPTION¶
flashprog-write-protect is a utility for reading and writing the write-protection settings of flash chips. Currently, it supports only block protection of SPI NOR chips.
OPERATIONS¶
You can specify one operation per call. status is the default operation.
status
list
disable
enable
range <start>,<len>
region <region-name>
OPTIONS¶
All operations require the -p/--programmer option to be used (please see for more information on programmer support and parameters).
-p, --programmer <name>[:<parameter>[,<parameter>]...]
-c, --chip <chipname>
-V, --verbose
-o, --output <logfile>
-h, --help
(-l|--layout) <layout-file>, --fmap-file <fmap-file>, --fmap, --ifd
--temporary
EXAMPLES¶
To just print the current write-protection state of the internal BIOS flash:
EXIT STATUS¶
flashprog exits with 0 on success, 1 on most failures but with 3 if a call to mmap() fails.
REQUIREMENTS¶
flashprog needs different access permissions for different programmers. See this section in the manual for details.
BUGS¶
You can report bugs, ask us questions or send success reports via our communication channels listed here: https://www.flashprog.org/Contact.
LICENSE¶
flashprog is covered by the GNU General Public License (GPL), version 2. Some files are additionally available under any later version of the GPL.
COPYRIGHT¶
Please see the individual files.
This manual page was written by Nico Huber and is derived from the flashprog(8) manual. It is licensed under the terms of the GNU GPL (version 2 or later).
SEE ALSO¶
2024-11-03 | flashprog-write-protect-1.4 |