Hello guys! I am trying to use GPIOs on A20-lime, but it says i can't write to
/sys/class/gpio/export:
root@roadie:/sys/class# echo 64 > /sys/class/gpio/export
-bash: echo: write error: Invalid argument
root@roadie:/sys/class#
I'm using latest official debian sd card image, except for i've upgraded it to jessie (cause i wanted to use CPAN with system perl). Can it be a problem? Maybe i need to load some kernel module or gpio driver or there is something else i dont know about?
Thx.
Did you try lower number GPIOs? Maybe there are defined fewer than 64 GPIOs in the FEX file, you can check it with something like
for i in `seq 64` ; do echo $i > /sys/class/gpio/export ; done
and look at the newly created directories to see what GPIOs are exportable.
Thank you very much! Seems like it was the reason =) Exporting values like 1 or 2 works fine.
Hi,
I have A20-Olinuxino-Micro Board. I am trying to use a GPIO port pin for LED.
I have converted the /boot/script.bin to /boot/script.fex. Then I found that there are 61 Gpio pins are used. But when I use the command
for i in `seq 61` ; do echo $i > /sys/class/gpio/export ; done
I am getting following error. -bash: echo: write error: Invalid argument error.
Also for individual port pins also, I am getting the same error.
How to enable all the pins declared in the script.fex file.
Please help with this?
Thanks