A Brief  overview
===========================
MTD test suite- This is a test suite (implemented with mtd utils) to test functional tests and also performance tests on flash devices like (NAND,NOR,SPI)on TI platforms.
Its look and feel is like any other linux utility.
Can be easily plugged into any host automation system or can be used independently for target side validation/automation.


Platforms supported
====================
Any platform with mtd device support

Platforms tested
====================
am17x,am18x,omap35x,am3517


Steps to run group tests with script
===============================================
1)Boot the DUT using the uImage built from appropriate PSP release.
2)Run the mtd_tests_scirpt.sh script with --help option to know the usage.
For eg on OMAP35x platform, you can run command like- ./mtd_tests_script.sh --help. This would print all the options supported as shown below.
-partition_number	partition for mtd partition(1,2,3 etc)
-fs_type		file sytem to be used (jffs2/ yaffs etc)
-size			size of the partition in MB (Run mtd_debug info /dev/mtd* to get the size)
-erase_size		erase size of the partition in bytes (Run mtd_debug info /dev/mtd* to get the erase size)
-type			test type (func, perf, modular,stress (if the test is modular -ko option is required))
-plat			platform name (am17x, am18x, omap35x, am3517, ti816x, ti814x, dm644x, dm646x, dm355, dm365, beagle, dm368)
-ko: 			ko file (driver kernel module) if test is modular




Expected output if mtd_tests_script.sh is executed
======================================================
When script is executed by passing  partition_number,fs_type,plat,size,erase_size with type 'all' it will run the functional,performance,stress tests.Since modular tests requires a re-build it wont execut modular tests
When script is executed by passing  partition_number,fs_type,plat,size,erase_size with type 'modular' it will run the modular tests.Please note that driver kernel module should be passed with -ko option
When script is executed by passing  partition_number,fs_type,plat,size,erase_size with type 'perf' it will run the performance tests using mtd_tests_tests executable.
When script is executed by passing  partition_number,fs_type,plat,size,erase_size with type 'stress' it will run the stress tests using linux mtd_tests commands.
When script is executed by passing  partition_number,fs_type,plat,size,erase_size with type 'func' it will run the functional tests.Please note that mtd_oobtest kernel module has to be build and copied into the current working directory.

Supported features
=====================
Many configurable parameters like - patition number,fs type etc---All of which can be passed at run time
Scirpts to run the group tests like func,sanity,stress etc
options like --help
Supports Multiple platforms.


Pending features
===========================================================

Point of contact
================
Please submit your queries or comments at the forums http://community.ti.com or http://support.ti.com

