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
- 303 All Categories
- 104 Announcements & News
- 52 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 53 Unboxing & Project Sharing
- 24 Tech Updates
- 595 UP Products
- 6 UP Xtreme i12
- 1 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 13 UP Squared V2
- 41 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 49 UP Squared Pro
- 140 UP Xtreme
- 828 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 215 Starter Kits & Peripheral