Name
nand badblocks mark — Manipulate the Bad Block Table
Synopsis
nand badblocks mark [-d <device>] -b <block> -s <state>
Arguments
-
-b block The block number whose state is to be manipulated.
![[Note]](pix/note.png)
Note Block numbers to this command are device block numbers, with 0 meaning the first block on the device.
-
-s state -
The new state for the given block.
This must be a state number, as output by
nand badblocks states. -
-d device - (Optional.) If not specified, and only one device is present, the command is assumed to apply to the NAND device; if more than one device is present, it must be specified.
Description
This command explicitly manipulates the Bad Block Table.
![]() | Note |
|---|---|
This command may be configured out with the |
![]() | Warning |
|---|---|
Misuse of this command is likely to cause corruption of data you care about!
|
Examples
RedBoot>nand badblocks mark -d onboard -b 2000 -s 1OK RedBoot>nand badblocks list -d onboardfactory bad: 100, 101. (count: 2 blocks) worn bad: 2000. (count: 1 blocks) reserved: 2046, 2047. (count: 2 blocks) RedBoot>nand badblocks mark -d onboard -b 2000 -s 0OK RedBoot>nand badblocks list -d onboardfactory bad: 100, 101. (count: 2 blocks) worn bad: no blocks reserved: 2046, 2047. (count: 2 blocks) RedBoot>
| 2025-10-02 | eCosPro Non-Commercial Public License |


![[Warning]](pix/warning.png)

