nand erase

Name

nand erase -- Erase an entire NAND partition

Synopsis

nand erase <device>/<partition>

Arguments

This command takes a single argument encoding the device and partition to erase.

Description

This command erases every block of a NAND partition.

Note: This command may be configured out with the CYGSEM_REDBOOT_NAND_ERASE_CMD option.

Examples

RedBoot> nand info
NAND device `onboard':
  2048 bytes/page, 64 pages/block, capacity 2048 blocks x 128 kB = 256 MB
  Partition Start Blocks
       0       6     10
       1      16    200
RedBoot> nand erase onboard/2
nand erase: partition not found
RedBoot> nand erase onboard/1
Erasing partition blocks 0 to 199...
............................Skipping block 84 (factory bad)
.Skipping block 85 (factory bad)
......................................
Erase complete.
RedBoot>

2017-02-09
Documentation license for this page: Open Publication License