#!/bin/sh # # This script is used to test flash driver functionality. I removed the write # operations since all partition are in use in zc702-zynq7 and there might be # possibility of corrupting data even if we backup in test script. if part_num=`cat /proc/mtd | grep -c 'mtd'`; then echo "PASS: show $part_num partitions" else echo "FAIL: show $part_num partitions" fi for((part=0; part<$part_num-1; part++)); do if [ $(mtd_debug info /dev/mtd$part | grep -c 'mtd.type') ]; then echo "PASS: show partition $part debug info" else echo "FAIL: show partition $part debug info" fi done