Is it possible to use GPIOs on Raspberry Pi with aarch64?

This is for ARMv8 based devices

Is it possible to use GPIOs on Raspberry Pi with aarch64?

Postby jesusofsuburbia » Wed Apr 11, 2018 1:02 pm

Hi everyone,

we're playing around with a Raspberry Pi 3 using aarch64 and wanted to use the GPIOs.

$this->bbcode_second_pass_code('', 'uname -a
Linux pi64 4.16.1-1-ARCH #1 SMP Sun Apr 8 18:35:06 MDT 2018 aarch64 GNU/Linux')

But when I try to access a GPIO, I get an error:
$this->bbcode_second_pass_code('', 'echo 4 > /sys/class/gpio/export
bash: echo: write error: Invalid argument')

What am I doing wrong? Has anyone successfully used GPIO with an aarch64 kernel?

Thanks for any help!
Last edited by jesusofsuburbia on Fri Apr 13, 2018 10:09 am, edited 1 time in total.
jesusofsuburbia
 
Posts: 2
Joined: Wed Apr 11, 2018 12:56 pm

Re: Is it possible to use GPIOs on Raspberry Pi with aarch64

Postby jesusofsuburbia » Fri Apr 13, 2018 10:08 am

Hmm, seems that the pi64 distribution has GPIO working on RPi + aarch64:
https://github.com/bamarni/pi64/issues/35

I wonder what the problem is?
The deprecation of sysfs-gpio in favor of the GPIO character device API?

Any help would is appreciated!
jesusofsuburbia
 
Posts: 2
Joined: Wed Apr 11, 2018 12:56 pm


Return to ARMv8 Devices

Who is online

Users browsing this forum: Google [Bot] and 22 guests