FLASHCTL(8) System Manager's Manual FLASHCTL(8)

flashctl
a program to manipulate flash devices

flashctl device command [arg [...]]

flashctl could be used to invoke low level operations specific to flash devices. It is used by specifying a device to manipulate, the command to perform, and any arguments the command may require.

The following commands may be used on flash devices:
List the bad blocks on the device.
offset size
Erase size amount of flash memory from offset. Size could be all, which means the rest of the flash after offset will be erased.
Identify the specified device, displaying the device's vendor, product strings, and the device's capabilities.
offset
Mark the block given by its offset as bad.

flash(4)

The flashctl command first appeared in NetBSD 6.0.

The flashctl command was written by Adam Hoka.
February 27, 2011 NetBSD 9.4