Me again :/
Starting with kernel 6.5.7 (vanilla kernel by Graysky) my self written applications using wiringPi stopped working. I have tried to rebuild them with new kernel installed, they build without warnings/errors, the resulting binary does not change. Bute they do not work. I am unable to decide if it is an upstream issue or if I miss something. wiringPi library is newest version.
When I start my appliction this error message is thrown:
[code]gpio: Unable to open GPIO direction interface for pin 25: No such file or directory
wiringPiISR: unable to open /sys/class/gpio/gpio25/value: No such file or directory[/code]
So I listed the directory /sys/class/gpio/ with the working kernel 6.5.6 and the non-working 6.5.8:
6.5.6:
[code]--w------- 1 root root 4096 20. Okt 09:35 export
lrwxrwxrwx 1 root root 0 20. Okt 09:38 gpio24 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24
lrwxrwxrwx 1 root root 0 20. Okt 09:38 gpio25 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio25
lrwxrwxrwx 1 root root 0 20. Okt 09:38 gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0
lrwxrwxrwx 1 root root 0 20. Okt 09:38 gpiochip100 -> ../../devices/gpiochip1/gpio/gpiochip100
lrwxrwxrwx 1 root root 0 20. Okt 09:38 gpiochip512 -> ../../devices/platform/soc/soc:firmware/soc:firmware:expgpio/gpio/gpiochip512
lrwxrwxrwx 1 root root 0 20. Okt 09:38 gpiochip520 -> ../../devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2.4/1-1.2.4:1.0/gpio/gpiochip520
--w------- 1 root root 4096 20. Okt 09:38 unexport
[/code]
6.5.8:
[code]--w------- 1 root root 4096 20. Okt 09:06 export
lrwxrwxrwx 1 root root 0 20. Okt 09:07 gpiochip100 -> ../../devices/gpiochip1/gpio/gpiochip100
lrwxrwxrwx 1 root root 0 20. Okt 09:07 gpiochip512 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip512
lrwxrwxrwx 1 root root 0 20. Okt 09:07 gpiochip566 -> ../../devices/platform/soc/soc:firmware/soc:firmware:expgpio/gpio/gpiochip566
--w------- 1 root root 4096 20. Okt 09:07 unexport
[/code]
I am not sure but it looks for me as if the symlinks for gpio24 and gpio25 are created at the start of my application (I am using exactly these two pins). This fails because of gpiochip0 is missing starting with kernel 6.5.7
Needs wiringPi an update? Or is it an upstream issue of the kernel? Any ideas?