Ubuntu 22.04 mraa
Hello,
I'm having issues trying to get GPIO functionality on Ubuntu 22.04 working. I installed the pinctrl package and built & installed mraa from source, but running mraa-gpio list
gives me "no pins". The mraa examples also seem to error out not being able to find pins. Any solutions?
Comments
-
bumping.
-
In the past, I believe the correct way to do this was to use the UP fork of mraa. However, I just tried this with
sudo add-apt-repository ppa:up-division/mraa
and was notified that there is no Jammy release file for it. Which makes it sound like Ubuntu 22.04 isn't being supported? -
I tried building the up version of mraa for 22.04 and still can't detect pins. Is there an alternative to using mraa on 22.04 for pin/spi control?
-
@justinGE
install UP HAT pinctrl-upboard driver
https://github.com/up-division/pinctrl-upboardbuild and install mraa from up-rpi branch
https://github.com/up-division/mraa/tree/up-rpiGPIO mapping is the same in all upboards with new pinctrl-upboard driver, you can refer our wiki for GPIO number
https://github.com/up-board/up-community/wiki/40Pin-Header -
That worked, thanks! There is one more issue though. The board will now hang on shutdown/reboot after installing the up-extra package to enable user-space GPIO access.
-
@justinGE
could you take a screenshot to see if there any information to know hang in where?
Categories
- All Categories
- 63 Announcements & News
- 48 Product News - New Product/Product Change Notice/ End-of-life
- 96 Welcome Developers!
- 45 Unboxing & Project Sharing
- 22 Tech Updates
- 3.4K UP Products
- 15 UP 7000
- 1 UP Squared i12
- 11 UP Xtreme i12
- 13 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 23 UP Squared V2
- 65 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 56 UP Squared Pro
- 136 UP Xtreme
- 820 UP Squared
- 1.4K UP Board
- 74 UP Core Plus
- 217 UP Core
- 3 UP Xtreme Lite
- 40 UP AI Edge
- 264 Starter Kits & Peripheral