diff options
author | Vladimir Vassilev <vladimir@lightside-instruments.com> | 2025-01-20 22:56:10 +0100 |
---|---|---|
committer | Vladimir Vassilev <vladimir@lightside-instruments.com> | 2025-01-20 22:56:10 +0100 |
commit | b7aeb9b06d8808134e5bc0062868255bded3348c (patch) | |
tree | 8ac91d4eaaedfd1a22673e0d1fbef24e9bea269b | |
parent | d71f768a864bbfdc1f739bdc8331d24ddab76375 (diff) |
Release ice4pi-2.4.3
-rw-r--r-- | CHANGELOG | 6 | ||||
-rwxr-xr-x | example/ice4pi_prog | 18 |
2 files changed, 19 insertions, 5 deletions
@@ -1,3 +1,9 @@ +ice4pi (2.4.3) bookworm; urgency=medium + + * Added "dtparam spi=off" disables spidev driver and releases clk allowing ice40 to load + + -- Vladimir Vassilev <vladimir@lightside-instruments.com> Mon, 20 Jan 2025 22:49:05 +0100 + ice4pi (2.4.2) bookworm; urgency=medium * Fixed bug introduced in previous version using GPIO23(PIN16) instead of GPIO24(PIN18) diff --git a/example/ice4pi_prog b/example/ice4pi_prog index 9e90f7c..37391f3 100755 --- a/example/ice4pi_prog +++ b/example/ice4pi_prog @@ -1,16 +1,24 @@ #!/bin/bash +dtparam spi=on gpioset `gpiofind GPIO24`=1 -sleep 1 +sleep 0.1 gpioset `gpiofind GPIO24`=0 tr '\0' '\377' < /dev/zero | dd bs=1M count=4 of=image iflag=fullblock 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 +#flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=20000 -w image +dtparam spi=off gpioset `gpiofind GPIO24`=1 -sleep 1 -gpioget `gpiofind GPIO24` -gpioget `gpiofind GPIO25` +#gpioget `gpiofind GPIO24` + +val="0" +while [ "$val" == "0" ] ; do + val=`gpioget \`gpiofind GPIO25\`` + echo $val + sleep 0.1 +done +dtparam spi=on |