Name

nand — Display contents or OOB data from a range of NAND blocks.

Synopsis

nand [--help] [--version] [-b, --block {block}] [-s, --start {block}] [-e, --end {block}] [-p, --page {block}] [-r, --read] [-o, --oob]

Options

--help

Display commands syntax then exits

--version

Displays commands version then exits

-b, --block block

Selects start and end values for a single block of NAND.

-s, --start block

Selects start block of NAND.

-e, --end block

Selects end block of NAND.

-p, --page page

Selects start and end values for a single page of NAND.

-r, --read

Read NAND data from selected block range.

-o, --oob

Read the OOB data from selected block range.

Description

This command aids in debugging NAND devices. Both the data and out of band attribute data can be examined. The range of data to be show can be selected by block, block range and page.

Example 16.2. Using the nand command to display a range of NAND blocks

>nand -s 1 -e 2 -r
Reading 0x00000020
00004000: 20031985 0000000c e41eb0b1 e0011985 : ... ............
00004010: 00000034 755c292f 00000001 00000000 : 4.../)\u........
00004020: 00000002 45b4fcbc 0000080c fe565ec6 : .......E.....^V.
00004030: 30cb53b0 656c6261 3133322d 6e69622e : .S.0able-231.bin
00004040: e0021985 000013a6 fae16f87 00000002 : .........o......
00004050: 00000001 000081a4 03f603f6 00029058 : ............X...
00004060: 45b4fcbc 45b4fcbc 45b4fcbc 00000000 : ...E...E...E....
00004070: 00001362 00004000 00000006 877ec7af : b....@........~.

...

00007d90: 276d1d3a ea156311 574dc3e6 5e3314c1 : :.m'.c....MW..3^
00007da0: 60df5137 00e50d58 112a0370 8f49def0 : 7Q.`X...p.*...I.
00007db0: 5f1cf463 555addcf be72b4d0 81c75c16 : c.._..ZU..r..\..
00007dc0: cdce76ff 937b83e0 8db7e6c3 d17ba9cf : .v....{.......{.
00007dd0: 7efa4ba5 670228e1 2d2ea80a 2c0e019a : .K.~.(.g...-...,
00007de0: fd6da4d2 07e19fe8 c04541ae bf2d7557 : ..m......AE.Wu-.
00007df0: fc6f7d52 f8ae87cc 5b05aedc f88eaa4d : R}o........[M...
>