Like (many) others I'm trying to play with the GPIO on the Rock. Seems though that no matter what I do though I get the same response "Device or resource busy"
I'm running the Ubuntu 14.04 distro from the website.
Reading all over the web I can find that it seems I may need to enable the GPIO config in the kernel. No clue how to do that, anyone have a line by line tutorial on how to do this? Or, is there something else I should be trying? I've tried su'ing the led.sh file and running it under su as root.
output from led.sh
led.sh: line 4: echo: write error: Device or resource busy
source of led.sh (from wiki)
#!/bin/sh
# enable the gpio 172 -> green led
echo 172 > /sys/class/gpio/export
# set the direction to output
echo "out" > /sys/class/gpio/gpiochip172/direction
while true;
do
echo 0 > /sys/class/gpio/gpiochip172/value #led on
sleep 1
echo 1 > /sys/class/gpio/gpiochip172/value #led off
sleep 1
done
Thanks,
- Jeremy