- naumanramzan
- Posts: 2
- Joined: Sun Jul 16, 2023 1:53 pm
Add gpiomem device in fedora 37 aarch64
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
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
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.
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.
I'm not interested in doing contracts for bespoke functionality - please don't ask.
Re: Add gpiomem device in fedora 37 aarch64
suggest you use raspberry os, fedora is fairly crippled on pi devices.naumanramzan wrote: ↑Sun Jul 16, 2023 1:55 pmHi 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
- naumanramzan
- Posts: 2
- Joined: Sun Jul 16, 2023 1:53 pm
Re: Add gpiomem device in fedora 37 aarch64
6by9 wrote: ↑Sun Jul 16, 2023 2:10 pmYou 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.
Re: Add gpiomem device in fedora 37 aarch64
naumanramzan wrote: ↑Mon Jul 17, 2023 6:10 am6by9 wrote: ↑Sun Jul 16, 2023 2:10 pmYou 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
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion