#!/bin/sh # This script is used to test qspi flash functionality for Cyclone-5. SPI_DEVICE="/dev/spidev0.0" if [ ! -e $SPI_DEVICE ]; then echo "FAIL: spi flash device $SPI_DEVICE does not exist" exit 1 else echo "PASS: spi flash device $SPI_DEVICE exists" fi echo "PASS: spi bus test passed" exit 0