GPIO access on UP4000

arnaudg
New Member Posts: 1 ✭
I'm trying to use the GPIOs for the UP4000 with Ubunto 20.04
I've installed the kernel 5.4.0 from PPA and the upboard-extras
I've created the GPIO, LED,... groups
But when I try to access the
cd /sys/class/gpio root@up01:/sys/class/gpio# echo 432 > export -bash: echo: write error: Invalid argument
If I use gpiodetect from pinctrl, I can well see the GPIO but I get errors doing accesses
arnaud@up01:/sys/class/gpio$ gpiodetect gpiochip0 [INT3452:00] (78 lines) gpiochip1 [INT3452:01] (77 lines) gpiochip2 [INT3452:02] (47 lines) gpiochip3 [INT3452:03] (43 lines) gpiochip4 [Raspberry Pi compatible UP GPIO] (28 lines) gpiochip6 [ftdi-cbus] (4 lines) arnaud@up01:/sys/class/gpio$ gpioget gpiochip4 0 gpioget: error reading GPIO values: Unknown error 517
The control of the LED is working well.
Is there some extra steps to do to get these working?
Answers
-
Hi Sir
After installed the pinctrl.
Please reference this website and try again.
https://github.com/up-board/up-community/wiki/40Pin-HeaderBest Regards,
Harry Chiu
Categories
- All Categories
- 105 Announcements & News
- 54 Product News - New Product/Product Change Notice/ End-of-life
- 185 Welcome Developers!
- 55 Unboxing & Project Sharing
- 49 Tech Updates
- 693 UP Products
- 11 UP 7000
- 1 UP Squared i12
- 10 UP Xtreme i12
- 11 UP Squared Pro 7000
- 1 UP Element i12 Edge
- 19 UP Squared V2
- 59 UP 4000
- 24 UP Xtreme i11
- 35 UP Squared 6000
- 60 UP Squared Pro
- 143 UP Xtreme
- 837 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 222 UP Core
- 3 UP Xtreme Lite
- 44 UP AI Edge
- 216 Starter Kits & Peripheral