How to operate GPIO on and off in sysfs.Please help me
I have an UP2 Intel N4200 evaluation board.I use Ubilinux sysfs shell can operate GPIO on and off，reference https://wiki.up-community.org/Pinout_UP2.But after I installed Ubuntu 18.04, in the same way, no error was reported on the shell command, but in fact GPIO did not work.
[[email protected]:/sys/class/gpio# echo 432 > export [email protected]:/sys/class/gpio# cd gpio432 [email protected]:/sys/class/gpio/gpio432# echo "out" > direction [email protected]:/sys/class/gpio/gpio432# cat value 0 [email protected]:/sys/class/gpio/gpio432# cat value 1 [email protected]:/sys/class/gpio/gpio432# echo 1 > value [email protected]:/sys/class/gpio/gpio432# cat /sys/kernel/debug/gpio gpiochip3: GPIOs 267-309, parent: platform/INT3452:03, INT3452:03: gpiochip2: GPIOs 310-356, parent: platform/INT3452:02, INT3452:02: gpiochip1: GPIOs 357-433, parent: platform/INT3452:01, INT3452:01: gpio-432 ( |sysfs ) out hi gpiochip0: GPIOs 434-511, parent: platform/INT3452:00, INT3452:00: [email protected]:/sys/class/gpio/gpio432#
I really can’t find the problem point, how to operate GPIO on and off in sysfs.Please help me,Thank you
from the formatting of your message I cannot really understand the problem.
Can you please attach a log file or use the correct spacing/carriage return?
If you have installed the kernel correctly from our wiki page: https://wiki.up-community.org/Ubuntu_18.04
After reboot please verify the system has booted correctly with that kernel: uname -a
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 548 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 10 UP Squared V2
- 25 UP 4000
- 24 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral