write_bit.sh 218 B

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