FLASHPROG-CONFIG(8) | 2024-11-03 | FLASHPROG-CONFIG(8) |
NAME
flashprog-config - read and write status and configuration registers of flash chips
SYNOPSIS
flashprog config [get] <options>
<setting>
flashprog config set <options> [--temporary]
<setting> <value>
Where generic <options> are:
[-V[V[V]]] [-o <logfile>] [-h]
DESCRIPTION
flashprog-config is a utility for reading and writing status and configuration register bits of flash chips. Currently, it supports only SPI NOR chips.
OPERATIONS
You can specify one of get or set, or no operation which defaults to reading a setting.
get <setting>
set [--temporary] <setting> <value>
When the --temporary option is provided, flashprog will attempt to write a temporary value that is not stored to flash. This requires special support by the flash chip for a volatile write status register command. The new value will be lost upon reset of the flash chip. Hence, it is futile to use this with external programmers that toggle power to the flash chip (e.g. Dediprog).
SETTINGS
qe, quad-enable
VALUES
false, true
natural numbers: 0, 1, ...
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
--temporary
EXAMPLES
To read the quad-enable setting 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 manual. It is licensed under the terms of the GNU GPL (version 2 or later).
SEE ALSO
2024-11-03 | flashprog-config-1.3 |