rpi3b+ wiringPi issues since kernel 6.5.7

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

rpi3b+ wiringPi issues since kernel 6.5.7

Postby df8oe » Fri Oct 20, 2023 7:55 am

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?
df8oe
 
Posts: 67
Joined: Fri Oct 01, 2021 5:10 pm

Re: rpi3b+ wiringPi issues since kernel 6.5.7

Postby df8oe » Fri Oct 20, 2023 10:36 am

OK - this is an upstream issue related to wiringpi - not to the kernel - which needs interaction if someone uses GPIOs. I am not sure at the moment everything what wiringpi does is still available via libgpiog / pigpio now:
make_clickable_callback(MAGIC_URL_FULL, '
', 'https://github.com/raspberrypi/linux/issues/5668', '', ' class="postlink"')

Possible wiringpi can be fixed (the issue is the numbering of controllers beginning with "0")
df8oe
 
Posts: 67
Joined: Fri Oct 01, 2021 5:10 pm


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 31 guests