diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-04-30 15:54:02 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-04-30 15:54:02 -0600 |
commit | 45c144ba134835b0a66bdcb7dd40114c7b6a8249 (patch) | |
tree | 3ee75ed806c7f0de92d28b1bb00dd6d017fab0cf /apps/examples/README.txt | |
parent | 8241609e9edbab8443fb4a3f278bfc7a924c05b1 (diff) | |
download | nuttx-45c144ba134835b0a66bdcb7dd40114c7b6a8249.tar.gz nuttx-45c144ba134835b0a66bdcb7dd40114c7b6a8249.tar.bz2 nuttx-45c144ba134835b0a66bdcb7dd40114c7b6a8249.zip |
Add configuration and example to test MTD partitions
Diffstat (limited to 'apps/examples/README.txt')
-rw-r--r-- | apps/examples/README.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/apps/examples/README.txt b/apps/examples/README.txt index 3c6fd7029..cd6701e9c 100644 --- a/apps/examples/README.txt +++ b/apps/examples/README.txt @@ -671,6 +671,33 @@ examples/mount when CONFIG_EXAMPLES_MOUNT_DEVNAME is not defined. The default is zero (meaning that "/dev/ram0" will be used). +examples/mtdpart +^^^^^^^^^^^^^^^^ + + This examples provides a simple test of MTD partition logic. + + * CONFIG_EXAMPLES_MTDPART - Enables the MTD partition test example + * CONFIG_EXAMPLES_MTDPART_ARCHINIT - The default is to use the RAM MTD + device at drivers/mtd/rammtd.c. But an architecture-specific MTD driver + can be used instead by defining CONFIG_EXAMPLES_MTDPART_ARCHINIT. In + this case, the initialization logic will call mtdpart_archinitialize() + to obtain the MTD driver instance. + * CONFIG_EXAMPLES_MTDPART_NPARTITIONS - This setting provides the number + of partitions to test. The test will divide the reported size of the + MTD device into equal-sized sub-regions for each test partition. Default: + 3 + + When CONFIG_EXAMPLES_MTDPART_ARCHINIT is not defined, this test will use + the RAM MTD device at drivers/mtd/rammtd.c to simulate FLASH. The size of + the allocated RAM drive will be: CONFIG_EXMPLES_RAMMTD_ERASESIZE * + CONFIG_EXAMPLES_MTDPART_NEBLOCKS + + * CONFIG_EXAMPLES_MTDPART_ERASESIZE - This value gives the size of one + erase block in the MTD RAM device. This must exactly match the default + configuration in drivers/mtd/rammtd.c! + * CONFIG_EXAMPLES_MTDPART_NEBLOCKS - This value gives the nubmer of erase + blocks in MTD RAM device. + examples/nettest ^^^^^^^^^^^^^^^^ |