Page 1 of 1

AirPlayer ARM - using GPIO on Pi 4

Posted: Tue Aug 08, 2023 1:20 pm
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.

Re: AirPlayer ARM - using GPIO on Pi 4

Posted: Thu Aug 10, 2023 8:31 pm
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

Re: AirPlayer ARM - using GPIO on Pi 4

Posted: Fri Aug 11, 2023 5:19 am
by Ralph
Wasn't that one of the options during installation? I don't remember exactly.

Re: AirPlayer ARM - using GPIO on Pi 4

Posted: Fri Aug 11, 2023 9:41 am
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.