diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/README | 2 | ||||
-rwxr-xr-x | example/ice4pi_prog | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/example/README b/example/README index b4a8b50..a1841ce 100644 --- a/example/README +++ b/example/README @@ -9,4 +9,4 @@ Assuming you are running on a Raspberry Pi 2-4 or Zero (tested with bullseye): 3. Load the rot.bin file to the shield: - make load + sudo make load diff --git a/example/ice4pi_prog b/example/ice4pi_prog index c747db8..81f4aaa 100755 --- a/example/ice4pi_prog +++ b/example/ice4pi_prog @@ -1,5 +1,5 @@ #!/bin/bash -echo 24 > /sys/class/gpio/export +echo 24 > /sys/class/gpio/export || true echo out > /sys/class/gpio/gpio24/direction echo 1 >/sys/class/gpio/gpio24/value sleep 1 @@ -10,6 +10,5 @@ dd if=${1} conv=notrunc of=image flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=20000 -w image #workaround first time fails after initial programming flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=20000 -w image -echo in > /sys/class/gpio/gpio24/direction -echo 24 > /sys/class/gpio/unexport +echo 1 >/sys/class/gpio/gpio24/value |