AirPlayer ARM - using GPIO on Pi 4

Support for connecting hardware to the Raspberry Pi GPIO

Moderators: russ, Ralph

Post Reply
Message
Author
jhankinson
Posts: 3
Joined: Mon Aug 07, 2023 7:14 pm

AirPlayer ARM - using GPIO on Pi 4

#1 Post by jhankinson »

Just wondering if anyone has worked through a similar issue. I've got AirPlayer ARM running on a RPi 4. As I understand it, as the video is via HDMI, I should be able to utilize the GPIO of the Pi to connect to a rotary encoder. I put a current version of the raspberry pi linux distribution on the microsd card. Downloaded and installed AirPlayer. Set it to autostart as per the instructions. Here is where things start to go sideways. As per the wiki, you need to run bootloader as root in order to use GPIO.
So when I sudo ./Bootloader from the AirPlayer directory, it runs...but gives an error message (and the encoder doesn't work).

I have installed AirPlayer into the default account that the pi setup program configures for me when I first ran the stock distribution. Should I have instead configured the Pi to boot as root and downloaded and installed AirPlayer into the root account?

Either way, I'm having trouble getting GPIO to work with AirPlayer ARM on an RP 4. If anyone has any suggestions, that would be greatly appreciated.

jhankinson
Posts: 3
Joined: Mon Aug 07, 2023 7:14 pm

Re: AirPlayer ARM - using GPIO on Pi 4

#2 Post by jhankinson »

Bit more information - I think my problem one that at least one other person has had. If I disable autostart and run Bootloader as root - GPIO works (as they say it does).
The issue is more that if I enable autostart when setting up AirPlayer, Bootloader is run as a user program and not root and thus GPIO is disabled.

Thus my issue is trying to automatically load Bootloader when the raspberry pi boots. Any thoughts?
Thanks so much for any help anyone can offer.
James

User avatar
Ralph
Posts: 7652
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: AirPlayer ARM - using GPIO on Pi 4

#3 Post by Ralph »

Wasn't that one of the options during installation? I don't remember exactly.

jhankinson
Posts: 3
Joined: Mon Aug 07, 2023 7:14 pm

Re: AirPlayer ARM - using GPIO on Pi 4

#4 Post by jhankinson »

Hi Ralph,
Thanks for replying. There is an option to enable autostart. This works, but does not seem to run bootloader as root. That is really the heart of my issue.

Post Reply