gpio problem - device or resource busy

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to get the pong demo running.

I'll compiled everything okay, and I'm now trying to run the app on my stk1000.

But the code fails with ...

could not open /dev/gpio0, exiting with errno 2

I've searched the forum, and have now removed gpio_leds and added gpio_dev to the linux config.

Now when I try to create the gpio stuff, I get the following error

-sh-3.2# cd /config/gpio/
-sh-3.2# ls
-sh-3.2# mkdir leds
-sh-3.2# cd leds
-sh-3.2# ls
enabled   gpio_id   oe_mask   pin_mask
-sh-3.2# echo 0xff > pin_mask
-sh-3.2# echo 0xff > oe_mask
-sh-3.2# echo 1 > gpio_id
-sh-3.2# echo 1 > enabled
-sh: echo: write error: Device or resource busy

Can anyone suggest a solution ?

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fixed. :D

I also had to remove the mouse_gpio setting in the linux config !! Doh !!