UP Squared with Ubuntu RPi.GPIO not working

Hey everyone,
I have an UP Squared with Ubuntu 18.04.
I want to run python code that worked on a raspberry pi, but on the UP Squared i get the following error message.
I thought that the UP Squared used the same GPIO pins as the raspberry pi, how does it come that this package is not working on my UP Squared?
Anybody any ideas to fix this?
Thanks in advance.
Best Answers
-
Have you installed the Kernel for UP as described in our Wiki?
https://wiki.up-community.org/Ubuntu_18.04Are you running the application as root?
-
After a few tries we managed to read the pins.
The kernel version is important it needs to be 5.0.0.
And you have to run the code as root.
We did use MRAA instead of RPi.GPIO.
Thanks DCleri for the help!
Answers
-
Hey DCleri thanks for your answer.
Our kernel version is: 5.3.0, in the wiki it is 5.0.0.
When we try to change the kernel we get the following message:
So we are not fond of going through with this, because we are afraid to damage our system.
Are there other options or is this the only way?
Is it ok to remove the kernel? -
We took the risk to change the kernel, but it didn't make a difference.
Still the same error.
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
- 590 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
- 48 UP Squared Pro
- 140 UP Xtreme
- 826 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