Raspberry Pi 4, linux-rpi and GPIO

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

Raspberry Pi 4, linux-rpi and GPIO

Postby pim » Mon Nov 06, 2023 6:20 am

Hi.
After recent linux kernel upgrade ceased to work wiringpi:
[code]majordomus@pipla4 ~ $ gpio readall
Oops: Unable to determine board revision from /proc/cpuinfo
-> No "Hardware" line
-> You'd best google the error to find out why.[/code]

And the "Hardware" line is gone from the /proc/cpuinfo indeed.

[code]majordomus@pipla4 ~ $ uname -a
Linux pipla4 6.1.61-1-rpi-ARCH #1 SMP PREEMPT Thu Nov 2 12:51:39 MDT 2023 aarch64 GNU/Linux[/code]

[code]/dev/gpio*[/code] as expected by python-rpi-gpio doesn't exist neither.
[code]/sys/class/gpio/[/code] however is still here.

Cheers.
pim
 
Posts: 6
Joined: Thu Jun 01, 2023 7:40 am

Re: Raspberry Pi 4, linux-rpi and GPIO

Postby graysky » Mon Nov 06, 2023 11:57 am

Upstream removed it:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://github.com/raspberrypi/linux/commit/e641fd7a50987ad6b7ce1ab36189bc8817295e42', '', ' class="postlink"')

On my system:
% ls /dev/gpio*
/dev/gpiochip0 /dev/gpiochip1 /dev/gpiomem

If you found their change to be breaking, recommend that you open a ticket:make_clickable_callback(MAGIC_URL_FULL, ' ', 'https://github.com/raspberrypi/linux/issues/new?assignees=&labels=&projects=&template=bug_report.yml', '', ' class="postlink"')
graysky
Developer
 
Posts: 1731
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: Raspberry Pi 4, linux-rpi and GPIO

Postby pim » Mon Nov 06, 2023 12:53 pm

Thanks for info.
If it is official decision to phase out that line from /proc/cpuinfo, sooner or later will package maintainers adapt so I guess there is no need to highlight it further.
About the missing /dev/gpio - I was missing gpio group on my system. Funny it never caused any troubles before.
pim
 
Posts: 6
Joined: Thu Jun 01, 2023 7:40 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 4 guests