I want to control LED5 (GPIO2_IO01 for green, GPIO2_IO02 for red) of Ixora carrier board with Apalis IMX6. I try with the terminal with the following command :
root@apalis-imx6:~# echo 33 > /sys/class/gpio/export
root@apalis-imx6:~# echo “out” > /sys/class/gpio/gpio33/direction
root@apalis-imx6:~# echo 1 > /sys/class/gpio/gpio33/value
root@apalis-imx6:~# cat /sys/class/gpio/gpio33/value
But this doesn’t work. If I change the pin description to GPIO with the “Toradex GPIO Config”, it works but this settings is discarded on next boot. How can I reconfigure theses pins ?