Unable to read/write GPIO pins

Hello all,
I'm currently working on a project using upsquared board in which I'm trying to build a rover with four motors but before trying with motor driver I tried to check if gpio pins are working by glowing an LED, I tried to enable gpio pins using mraalib using these commands:
sudo add-apt-repository ppa:mraa/mraa
sudo apt-get update
sudo apt-get install libmraa2 libmraa-dev libmraa-java python-mraa python3-mraa node-mraa mraa-tools
following what's in this link: https://github.com/eclipse/mraa
but everytime I tried blinking the LED it threw this error:
File "/usr/lib/python3.8/dist-packages/mraa.py", line 392, in init
_mraa.Gpio_swiginit(self, _mraa.new_Gpio(pin, owner, raw))
ValueError: Invalid GPIO pin specified
no matter how many different pins I tried
So, I tried to rectify this error and found I have to update the kernel from generic to upsquared kernel as for this discussion: https://forum.up-community.org/discussion/4585/gpio-on-up%C2%B2
and when I updated the kernel and reboot the board to check whether the kernel was updated or not, it got stuck in bios settings over and over again everytime I reboot so I clean installed Ubuntu OS in the board once again and when I tried installing mraalib for gpio it says package not found and I don't know how to proceed, I don't think I should update the kernel because it may crash the system again
Do anybody know how to overcome this problem, any suggestions are welcome.
Thanks in advance.
Comments
-
[SOLVED]
I was able to update the kernel using deb files according to up-community wiki and was able to control gpio pins
Tagged
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
- 592 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
- 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