#!/bin/sh echo "Script to Write and Read from ospi multiple times." usleep 500000; while true do echo "WELCOME" > /dev/mtdblock0 usleep 1000000; read=`head -n 1 /dev/mtdblock0` if [ $read == "WELCOME" ] then echo "OSPI Test Passed." else echo "OSPI Test Failed." fi usleep 1000000; done