#!/bin/bash # writes flash content from bitstream image to olimex hx8k # execute only after setup_write.sh echo out > /sys/class/gpio/gpio24/direction flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=20000 -w image