Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi 5 #165

Open
ebaauw opened this issue Nov 8, 2023 · 8 comments
Open

Raspberry Pi 5 #165

ebaauw opened this issue Nov 8, 2023 · 8 comments

Comments

@ebaauw
Copy link
Owner

ebaauw commented Nov 8, 2023

The Raspberry Pi 5 uses the BCM2712 SoC package and the RP1 southbridge to control the GPIO pins. This hardware setup is very different from the Pi 4B (and from other Pi models). Unfortunately it is not yet (?) supported by pigpio, see joan2937/pigpio#589.

Consequently, currently Homebridge RPi cannot manage a Pi 5 remotely and cannot control the GPIO pins for a local Pi5.

@ebaauw ebaauw pinned this issue Nov 8, 2023
@JinShil
Copy link

JinShil commented Nov 8, 2023

Consider using rgpio: https://abyz.me.uk/lg/rgpiod.html

@ebaauw
Copy link
Owner Author

ebaauw commented Nov 8, 2023

Does that support the Pi 5?

Does it come pre-installed with Raspberry Pi OS, or can it be installed through apt? I don't want a dependency on some programme that users need to compile themselves.

@JinShil
Copy link

JinShil commented Nov 8, 2023

It does not yet appear to be in either the Debian repository or the Raspberry Pi repository, so I think users will need to build it and install it themselves using make. There is a discussion on the Raspberry Pi Bookworm Beta forums about replacing pigpio with rgpio, but it doesn't appear to have happened yet, and can't say whether or not it will.

ebaauw added a commit that referenced this issue Nov 11, 2023
- Move powerLed and usbPower determination here (from hb-lib-tools);
- Add support for fan on Pi 5;
- Suppress GPIO devices on Pi 5, see #165.
@jumuro-dev
Copy link

rgpiod is now installed via apt install rgpiod.
I would like to understand when the plugin is updated to support this.

@ebaauw
Copy link
Owner Author

ebaauw commented Feb 16, 2025

rgpiod is now installed via apt install rgpiod.

Not on my systems running bullseye:

$ sudo apt install rgpiod
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package rgpiod

Did you configure an additional source for apt?

@jumuro-dev
Copy link

jumuro-dev commented Feb 17, 2025

grep -rhE "^deb |^deb-src " /etc/apt/sources.list /etc/apt/sources.list.d/

deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb [signed-by=/usr/share/keyrings/homebridge.gpg] https://repo.homebridge.io stable main
deb http://archive.raspberrypi.com/debian/ bookworm main
deb [signed-by=/etc/apt/keyrings/ookla_speedtest-cli-archive-keyring.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ bookworm main
deb-src [signed-by=/etc/apt/keyrings/ookla_speedtest-cli-archive-keyring.gpg] https://packagecloud.io/ookla/speedtest-cli/debian/ bookworm main

@jumuro-dev
Copy link

Is there a chance that the GPIO issue for RP5 will be resolved in the near future?
Is it worth hoping for?

@ebaauw
Copy link
Owner Author

ebaauw commented Mar 1, 2025

I’m doing my home automation as a hobby, next to my day-time job. I don’t keep a planning for it. I prioritise features that I need myself, and features that spark my interest. I’m still running production on the Raspberry Pi 4, so I don’t have an urgent need for GPIO support on the Raspberry Pi 5. Intellectually, supporting rgpio is just doing the same in a slightly different way; kinda boring.

I would prefer to migrate Homebridge RPi from using pigpio to using lg (rgpiod), but that requires lg to be available on older Raspberry Pi models and OSes. Instructing people to download, compile, and install lg themselves will result in more requests for support than I’ll be able to handle.

The alternative is to support both lg and pigpio in parallel, using some mechanism to indicate which one to use for which host (probably the daemon’s port number). While providing similar features, the interfaces provided by each are very different, effectively doubling my effort to develop and maintain these.

Even on bookworm, lg support seems only partial. While rgpiod can be installed using apt, rgs cannot. Lacking that, I would need to enhance the rpi command-line tool to support troubleshooting the connection to rgpiod. More boring work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants