Page 1 of 1

gpio in arch linux problems

Posted: Mon Mar 12, 2018 1:30 pm
by otniel
Hello!

I managed to install arch linux on a raspberry pi 3. The problem is i cannot use the GPIO. Whenever i try, for example, echo "18" > /sys/class/gpio/export (and other numbers) it says invalid argument. I am root when executing echo. I cannot find a solution to solve this. What could be the problem?

Re: gpio in arch linux problems

Posted: Mon Mar 19, 2018 3:28 pm
by bob8889
I'm no expert but I have this working on a RPi Zero W with this command using sudo:
echo "17" | sudo tee /sys/class/gpio/export
echo "out" | sudo tee /sys/class/gpio/gpio17/direction

Re: gpio in arch linux problems

Posted: Mon Mar 19, 2018 6:39 pm
by bob8889
Just noticed that I ran this as root as well:
echo "17" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio17/direction