read_bit.sh 204 B

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