We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

5 posts • Page 1 of 1
naumanramzan
Posts: 2
Joined: Sun Jul 16, 2023 1:53 pm

Add gpiomem device in fedora 37 aarch64

Sun Jul 16, 2023 1:55 pm

Hi I am trying to add a device which is '/dev/gpiomem' in Fedora IOT 37 aarch64. But I can only see '/dev/gpiochip0' and '/dev/gpiochip1' how can I add gpiomem device because the software I am installing is using this device in their code.
or how can I use '/dev/gpiochip0' or '/dev/gpiochip1' in c language.
Thank you

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 18476
Joined: Wed Dec 04, 2013 11:27 am

Re: Add gpiomem device in fedora 37 aarch64

Sun Jul 16, 2023 2:10 pm

You need to be building a kernel with the bcm2835-gpiomem driver, and the relevant device tree entry.
I suspect Fedora uses the mainline Linux kernel, and neither of those can be upstreamed as they are viewed as a security issue.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

kerry_s
Posts: 8464
Joined: Thu Jan 30, 2020 7:14 pm

Re: Add gpiomem device in fedora 37 aarch64

Sun Jul 16, 2023 2:18 pm

naumanramzan wrote:
Sun Jul 16, 2023 1:55 pm
Hi I am trying to add a device which is '/dev/gpiomem' in Fedora IOT 37 aarch64. But I can only see '/dev/gpiochip0' and '/dev/gpiochip1' how can I add gpiomem device because the software I am installing is using this device in their code.
or how can I use '/dev/gpiochip0' or '/dev/gpiochip1' in c language.
Thank you
suggest you use raspberry os, fedora is fairly crippled on pi devices.

naumanramzan
Posts: 2
Joined: Sun Jul 16, 2023 1:53 pm

Re: Add gpiomem device in fedora 37 aarch64

Mon Jul 17, 2023 6:10 am

6by9 wrote:
Sun Jul 16, 2023 2:10 pm
You need to be building a kernel with the bcm2835-gpiomem driver, and the relevant device tree entry.
I suspect Fedora uses the mainline Linux kernel, and neither of those can be upstreamed as they are viewed as a security issue.

@6by9 I am completely new to build linux kernel, can you please give me more details about this. Thank you in advance :)
Last edited by naumanramzan on Mon Jul 17, 2023 6:26 am, edited 1 time in total.

B.Goode
Posts: 18782
Joined: Mon Sep 01, 2014 4:03 pm

Re: Add gpiomem device in fedora 37 aarch64

Mon Jul 17, 2023 7:06 am

naumanramzan wrote:
Mon Jul 17, 2023 6:10 am
6by9 wrote:
Sun Jul 16, 2023 2:10 pm
You need to be building a kernel with the bcm2835-gpiomem driver, and the relevant device tree entry.
I suspect Fedora uses the mainline Linux kernel, and neither of those can be upstreamed as they are viewed as a security issue.

@6by9 I am completely new to build linux kernel, can you please give me more details about this. Thank you in advance :)

I am just a volunteer helper in these forums and don't speak for or on behalf of Raspberry Pi Ltd.

But it is clear that the user whose input you are requesting IS closely affiliated with Raspberry Pi, and is almost certainly a developer working on their own debian-linux-based Operating System, RasPiOS. So perhaps it is inappropriate to be asking for their detailed help to support your use of a third-party alternative.

The documentation that Raspberry Pi have supplied about the Linux Kernel might have some advice that can be applied to your situation? https://www.raspberrypi.com/documentati ... ernel.html
Beware of the Leopard

5 posts • Page 1 of 1

Return to "Pidora / Fedora"

AltStyle によって変換されたページ (->オリジナル) /