wyleu
October 15, 2021, 10:24am
#1
Whilst updating a Pi3 on stable.
Oct 15 11:20:33 zynthian-amp startx[489]: gpio: Unable to open GPIO direction interface for pin 7: No such file or directory
Oct 15 11:20:33 zynthian-amp startx[489]: wiringPiISR: unable to open /sys/class/gpio/gpio7/value: No such file or directory
Don’t remember seeing that one before. But it’s about to get a new SSD so it might stop complaining.
wyleu
October 15, 2021, 12:37pm
#2
Caused by use of a previously working GPIO direct connected Encoders as per :
+if hw_version==“PROTOTYPE-VS1”:
zyncoder_pin_a=[25,26,4,0]
zyncoder_pin_b=[27,21,3,7]
zynswitch_pin=[23,11,2,22]
select_ctrl=3
With wiring selected and above pins it fails to start with above line.
I’ll log a bug.
opened 12:43PM - 15 Oct 21 UTC
Bug
**Describe the bug**
Upon selecting GPIO encoders via the webconf wiring settin… gs the zynth would not boot failing with.
Oct 15 11:20:33 zynthian-amp startx[489]: gpio: Unable to open GPIO direction interface for pin 7: No such file or directory
Oct 15 11:20:33 zynthian-amp startx[489]: wiringPiISR: unable to open /sys/class/gpio/gpio7/value: No such file or directory
Occurs on both machine update
& clean build from stable
Selecting wiring dummies clears fault but encoders no longer functional .
**To Reproduce**
1. Enable Custom wiring
2. enter appropriate values ( that have previously worked)
3. Reboot zynth
4. Zynth errors
**Expected behavior**
Zynth to start with working encoders
**Screenshots**

**Additional context**
Previously worked, failed on update.
wyleu
October 28, 2021, 2:45pm
#3
Caused by spi mode being enabled in raspi-config…
The pin involved was the only pin i’d used in the SPI block GPIO 7,8,9,10,11
D’Oh !
riban
October 28, 2021, 2:58pm
#4
So did you chose different pins or disable SPI? If the latter please share with the class.
wyleu
October 28, 2021, 3:10pm
#5
Disabled SPI in raspi-config.
Mind you it’s a right old fight as the pi keeps rebooting and you don’t get webconf for more than 10 seconds or so…
Still fighting pin 11 & audio device.
I think this Pi is in for a new stable build.
It’s now working at last …
/uploads/default/original/2X/3/3e2b6886e845b84d6fa2250cb19d6a3110a10b80.wav
now that was a bug!!
wyleu
October 28, 2021, 5:42pm
#6
Ok.
Rebuilt on a clean stable…
Configured.
Wouldn’t start.
Updated.
Switched to testing.
Added audio card hifiberry Amp…
Started . . .
Configured wiring as per attached … Same problem …
Turned off SPI in raspi-config now works . . .
So there is something about the hifiberry amp settings and the SPI mechanism…
wyleu
October 29, 2021, 9:03am
#7
After a bit of soldering …
Moving the Prviously pin 26, connected to the Back switch to Pin 10 and including 16 in the 2nd position of the Switch settings, we have a functioning zynthi…
And it reboots cleanly!
I notice we have the timeout power off back !! Nice.
updated zynthian-alm.local
25,26,4,0
27,21,3,7
23,16,2,22