On my Beaglebone Black, I have two config-pin executables. One is a 
compiled executable from the bb-cape-overlays package, the other is a bash 
script in /opt/source/bb.org-overlays:

$ which config-pin
/usr/bin/config-pin

$ dpkg -S /usr/bin/config-pin
bb-cape-overlays: /usr/bin/config-pin

$ find / -name config-pin 2> /dev/null
/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin
/usr/bin/config-pin

I have a script that configures specific pins using config-pin in the 
format:
config-pin P8.8 in-
Which sets pin P8.8 to an input configured as a pull down.

The bash script seems to be the one that accepts that format, the other 
does not and errors with:
ERROR: open() for /sys/devices/platform/ocp/ocp:P8_8_pinmux/state failed, 
No such file or directory

The compiled version is the default on my Beaglebone and I'd like to know 
more about it. For my script to work, I need to use the other one right 
now. I can certainly update the script if the compiled config-pin is a 
newer version and recommended practice is to use it, but I can't seem to 
make it work right. Any information is appreciated!

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/535156de-dbaa-4088-b00b-b4dc141b0daan%40googlegroups.com.

Reply via email to