Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Raspberry Pi questions re GPIO support in Debian

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
seamusdemora
Posts: 14
Joined: 2024-04-04 01:53
Has thanked: 3 times

Raspberry Pi questions re GPIO support in Debian

#1 Post by seamusdemora »

I think I'd like to try installing Debian on one of my Raspberry Pi. I've seen the documentation/installation instructions, and that all seems clear enough. What I'd like to get clarification on is with respect to how "GPIO programming" will work under Debian.

1. Raspbian has a "device tree", and this is used in the construction of a wide variety of "overlays" which expose both general and specialized GPIO functions. Does the Debian installation for Raspberry Pi have that device tree functionality and overlays available?

2. Raspbian (starting w/ bullseye IIRC) included the `libgpiod` library (the older 1.6 version). `libgpiod` included another package called `gpiod` which was a "container" for several user tools (gpioinfo, gpioset, etc). I see that Debian has the `libgpiod` package available. Is this package pre-installed in the Raspberry Pi images - or must it be installed after installation of the OS? I ask this question b/c I've heard a report suggesting that `libgpiod` was "broken" in the Debian RPi distribution.

Thanks for your help!
Last edited by seamusdemora on 2024-04-20 05:51, edited 1 time in total.

Linuxgaming1824
Posts: 109
Joined: 2024-04-16 18:30
Been thanked: 8 times

Re: Raspberry Pi questions

#2 Post by Linuxgaming1824 »

- Raspberry Pi Debian images -
https://raspi.debian.net/

- Debian RaspberryPI wiki -
https://wiki.debian.org/RaspberryPi

- Installing 64-bit Debian on a Raspberry Pi 4 -
https://david.wragg.org/blog/

I have no idea what the answers to your questions are, but it sounds like you should take a look at these pages first,
it sounds like a cool project anyways let us know what you find out

seamusdemora
Posts: 14
Joined: 2024-04-04 01:53
Has thanked: 3 times

Re: Raspberry Pi questions

#3 Post by seamusdemora »

I'm afraid you missed the purpose of my question. There are some reasonably clear procedures available on the Debian website that cover the mechanics of downloading an image file, and burning that file to an SD card to install Debian on an RPi. My questions all have to do with what kind of GPIO support for the RPi is provided under Debian. Most of the documentation I found here was dated; i.e. out-of-date. And none of it addressed GPIO support.

Aki
Global Moderator
Global Moderator
Posts: 3085
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Raspberry Pi questions re GPIO support in Debian

#4 Post by Aki »

Hello,
seamusdemora wrote: 2024-04-20 01:35 1. Raspbian has a "device tree", and this is used in the construction of a wide variety of "overlays" which expose both general and specialized GPIO functions. Does the Debian installation for Raspberry Pi have that device tree functionality and overlays available?
No, according to a previous discussion. I would suggest to install Raspbian (not Debian) if you need "device tree".
seamusdemora wrote: 2024-04-20 01:35 2. [..[ I see that Debian has the `libgpiod` package available. Is this package pre-installed in the Raspberry Pi images - or must it be installed after installation of the OS?
No, according to:
seamusdemora wrote: 2024-04-20 05:46 There are some reasonably clear procedures available on the Debian website that cover the mechanics of downloading an image file, and burning that file to an SD card to install Debian on an RPi.
As side note to the topic, a quick search lead me here:
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

seamusdemora
Posts: 14
Joined: 2024-04-04 01:53
Has thanked: 3 times

Re: Raspberry Pi questions re GPIO support in Debian

#5 Post by seamusdemora »

Aki wrote: 2024-04-20 06:15 Hello,
seamusdemora wrote: 2024-04-20 01:35 1. Raspbian has a "device tree", and this is used in the construction of a wide variety of "overlays" which expose both general and specialized GPIO functions. Does the Debian installation for Raspberry Pi have that device tree functionality and overlays available?
No, according to a previous discussion. Install Raspbian if you need them.
seamusdemora wrote: 2024-04-20 05:46 There are some reasonably clear procedures available on the Debian website that cover the mechanics of downloading an image file, and burning that file to an SD card to install Debian on an RPi.
As side note to the topic, a quick search lead me here:
That is all good information - Thank you! (Oh! note this thread that implies progress is being made toward DT/overlays/etc)

That just leaves my 2nd Question re libgpiod & GPIO support in general. Let me try re-phrasing that so it's clear:
a. Is libgpiod included in recent Debian Raspberry Pi images?
b. Does libgpiod "work" in recent releases/images? I've heard a report that it does not; that it's "installed but non-responsive". Maybe a switch/config to enable it?
c. Are there any other GPIO libraries (e.g. wiringPi) available under Debian on Raspberry Pi?

Aki
Global Moderator
Global Moderator
Posts: 3085
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Raspberry Pi questions re GPIO support in Debian

#6 Post by Aki »

Hello,
seamusdemora wrote: 2024-04-20 06:52 a. Is libgpiod included in recent Debian Raspberry Pi images?
No, I suppose, according to: You can check for yourself by downloading, flashing and viewing the contents of the image.

The package is available for download and installation from Debian repository (after the image is booted):
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply