testing-script/nand-script/nand-script.sh
2025-04-07 17:28:13 +08:00

30 lines
601 B
Bash

#/bin/bash
RET=0
sleep 2
echo " "
echo " "
echo " "
echo "######################################################################################"
echo "########################## SPIM NAND Deivce Testing Start ##########################"
dd if=/dev/mtdblock2 of=/tmp/.nand_test.img
if [ $? == 0 ]; then
echo "### Access the SPIM NAND Device Successfully ###"
else
RET=1
echo "Error Notice: Access the SPIM NAND Device failure ###"
fi
echo "######################################################################################"
echo " "
echo " "
echo " "
sleep 2
return ${RET}