#!/bin/bash # reads olimex hx8k flash content to file dump # execute only after setup_write.sh echo in > /sys/class/gpio/gpio24/direction flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=20000 -r dump