From baacf80ed67d3f26eeebceb2de9342108f974078 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Sat, 9 Jul 2022 08:14:09 -0700 Subject: [PATCH] config-pin location has changed; provide path to script. The old 'config-pin' script is not compatible with the `config-pin` binary found in newer installations. Until the *.pin files are adapted, make sure to have the documentation point to the right place. --- hardware/BUMPS/bumps.pins | 3 ++- hardware/Pockegotion/README.md | 4 ++-- hardware/VGEN5/README.md | 14 +++++++++++--- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/hardware/BUMPS/bumps.pins b/hardware/BUMPS/bumps.pins index d6df2ebc..2cccb41a 100644 --- a/hardware/BUMPS/bumps.pins +++ b/hardware/BUMPS/bumps.pins @@ -1,4 +1,5 @@ -# Run with config-pin -f BUMPS.pins +# Run with /opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin -f bumps.pins +# # Step signals. P9.18 low # motor 1 (top left Pololu; BUMPS v0.1 label "Z") P9.17 low # motor 2 (bottom left Pololu; BUMPS v0.1 label "E") diff --git a/hardware/Pockegotion/README.md b/hardware/Pockegotion/README.md index 1b9d68fc..e313533f 100644 --- a/hardware/Pockegotion/README.md +++ b/hardware/Pockegotion/README.md @@ -10,7 +10,7 @@ will have a couple of opto-coupled inputs and PWM outputs. Pins are defined with the universal overlay, so can be loaded with ``` -config-pin -f pockegotion.pins +/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin -f pockegotion.pins ``` The 'cape' is pretty much experimental right now: @@ -19,4 +19,4 @@ The 'cape' is pretty much experimental right now: [Quadrigotion]: http://quadrigotion.org/ -[G+post]: https://plus.google.com/u/0/+HennerZeller/posts/DC3vYcE9zw8 \ No newline at end of file +[G+post]: https://plus.google.com/u/0/+HennerZeller/posts/DC3vYcE9zw8 diff --git a/hardware/VGEN5/README.md b/hardware/VGEN5/README.md index 9ca8be47..815b4122 100644 --- a/hardware/VGEN5/README.md +++ b/hardware/VGEN5/README.md @@ -17,13 +17,21 @@ To support the VGEN5 cape, BeagleG must be built using the correct hardware targ make BEAGLEG_HARDWARE_TARGET=VGEN5 ``` +## The config-pin utility + +There are two `config-pin` utilities in current installations. + + * The shell script `/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin` is the tool we're using here. + * `/usr/bin/config-pin` seems to be the latest one which has slightly different options (and the script needs to be adapted). + ## Overlay and I/O configuration -The config-pin utility can be used to load the overlay. +The config-pin utility can be used to load the overlay (might not be needed +anymore in recent installations, as it should be loaded by default) ``` # Load the cape-universal overlay -config-pin overlay cape-universal +/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin overlay cape-universal ``` At this point, the various devices are loaded and all the gpio have been @@ -38,7 +46,7 @@ The pin configuration can also be setup from a file such as ``` # Configure the I/O pins -config-pin -f vgen5.pins +/opt/source/bb.org-overlays/tools/beaglebone-universal-io/config-pin -f vgen5.pins ``` ## Machine control