AAEONAEU-SW / meta-up-board

Yocto BSP meta layer for the UP Board
https://up-community.org
27 stars 20 forks source link

Problem in accessing GPIO pins #3

Closed moshah closed 7 years ago

moshah commented 7 years ago

Hi,

I am getting an issue in accessing the GPIO pins, when I am trying to create a GPIO pin access via command line I am getting below mentioned errors:- root@up-board:~# echo 26 > /sys/class/gpio/export -sh: echo: write error: Invalid argument

Below is the kernel debug output

root@up-board:~# cat /sys/kernel/debug/gpio GPIOs 318-372, platform/INT33FF:03, INT33FF:03:

GPIOs 373-396, platform/INT33FF:02, INT33FF:02:

GPIOs 397-455, platform/INT33FF:01, INT33FF:01:

GPIOs 456-511, platform/INT33FF:00, INT33FF:00:

I am using kernel version: uname -a Linux up-board 4.4.26-rt19-yocto-preempt-rt #1 SMP PREEMPT RT Wed Apr 19 09:52:51 CEST 2017 x86_64 x86_64 x86_64 GNU/Linux

What is the solution for this kindly help me out regarding this, Thanks in advance.