Name
nand eraseblock — Erase a specific NAND block
Synopsis
nand eraseblock -d <device> -b <block> [-n <count>]
Arguments
-
-b block
The block number to erase (or, if -n is given, the first block).
Note Block numbers to this command are device block numbers, with 0 meaning the first block on the device.
-
-n count
- The number of blocks to erase. This defaults to 1.
-
-d device
- The name of the device to affect.
Description
This command erases one or more blocks on a NAND device.
Notes | |
---|---|
|
Warning | |
---|---|
This command is powerful, but potentially dangerous as it will erase data without any safety checks. It is possible to erase RedBoot, other files required for system bootstrap, the Bad Block Table itself, any stored configuration data, etc. Be very sure of the block number before committing! |
Examples
RedBoot> nand eraseblock -d onboard -b 42 -n 2
Erasing device onboard blocks 42-43...
Erase complete.
RedBoot>
2024-03-18 | eCosPro Non-Commercial Public License |