I created a circuit with button connected to GPIO.
I try to read from GPIOs on Ixora using sysfs (the pins on the X27):
Example for GPIO 1:
# echo 1 > /sys/class/gpio/export # echo "in" > /sys/class/gpio/gpio1/direction # cat /sys/class/gpio/gpio1/value // always returns 1
The problem is it always returns 1 regardless the position of the button (if it is pressed or not).
I tried with another GPIO pins - some pins return permanently 0, some permanently 1.
Example for GPIO 2:
# echo 2 > /sys/class/gpio/export # echo "in" > /sys/class/gpio/gpio2/direction # cat /sys/class/gpio/gpio2/value // always returns 0
The circuit and the button are ok - it works fine on another device (e.g. Raspberry).
I should mention I replaced the default preinstalled Linux with JetPack (Ubuntu) - (according to these instructions: http://developer.toradex.com/knowledge-base/installing-nvidia-jetpack-with-l4t-on-apalis-tk1)
How to get the GPIOs work? Did I miss something?