How to operate GPIO on and off in sysfs.Please help me

NVStopNVStop New Member Posts: 1

I have an UP2 Intel N4200 evaluation board.I use Ubilinux sysfs shell can operate GPIO on and off,reference 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



Sign In or Register to comment.