Rpi 3b+ 64bit GPIO

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

Rpi 3b+ 64bit GPIO

Postby jshakes213 » Mon Apr 08, 2019 5:52 am

I am running on the raspberry pi 3B+ archlinux arm64 and am required to run all gpio commands with sudo.
Doing some research it seems that the issue is that the GPIO service will use /dev/gpiomem if it exists, otherwise it will use /dev/mem. My pi does not have /dev/gpiomem

I believe the distinction is made so that everyone in gpio can see only the gpio registers without reading all of RAM?

Would this be a kernel issue?

I am using this as a wrapper

https://github.com/TheNextLVL/RPi.GPIO.64
jshakes213
 
Posts: 1
Joined: Mon Apr 08, 2019 5:47 am

Re: Rpi 3b+ 64bit GPIO

Postby lategoodbye » Sat Apr 13, 2019 10:40 am

Hi,

/dev/gpiomem is a hack in the vendor-tree of the RPF, which will never be mainlined (ArchLinux ARM uses the mainline kernel for Aarch64) and availability of /dev/mem is configurable because of security reasons.

Btw do you know https://git.kernel.org/pub/scm/libs/lib ... gpiod.git/ ?
lategoodbye
 
Posts: 124
Joined: Sat Dec 29, 2018 1:24 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 5 guests