BBB Machinekit setup.sh differences

75 views
Skip to first unread message

John Dammeyer

unread,
Apr 20, 2021, 1:12:31 PM4/20/21
to machi...@googlegroups.com
I was looking at what is in my mill setup.sh and what is in a setup.sh Frederic Ribble sent me for his lathe on the BBB. Notice one uses P8.12 and the other P8_12

P8.12 out # gpio1.12 X_Step

P8_12 out # X Step / DB25.2

I suspect either will work but is there a preferred method? Searching with "BBB setup.sh machinekit" doesn't provide any hits that make sense. Like this one was 2018. Is it too old or too new?
https://github.com/machinekit/machinekit/issues/1310

Should I care?

Thanks
John


"ELS! Nothing else works as well for your Lathe"
Automation Artisans Inc.
www dot autoartisans dot com


Charles Steinkuehler

unread,
Apr 21, 2021, 7:57:21 AM4/21/21
to John Dammeyer, machi...@googlegroups.com
On 4/20/2021 12:12 PM, John Dammeyer wrote:
> I was looking at what is in my mill setup.sh and what is in a setup.sh Frederic Ribble sent me for his lathe on the BBB. Notice one uses P8.12 and the other P8_12
>
> P8.12 out # gpio1.12 X_Step
>
> P8_12 out # X Step / DB25.2
>
> I suspect either will work but is there a preferred method? Searching with "BBB setup.sh machinekit" doesn't provide any hits that make sense. Like this one was 2018. Is it too old or too new?
> https://github.com/machinekit/machinekit/issues/1310
>
> Should I care?

The issue is whether you're running the shell script version of
config-pin, or the newer compiled version. The shell script was written
to be pretty forgiving of pin number syntax and will accept a 2 or 3
digit numeric value, optionally prefixed by "p" or "P", and with an
optional separator (any non-numeric character) between the first digit
and any remaining digits. Two digit values are assumed to have an
implicit zero in the pin number (eg: 82 -> P8_02).

I believe the compiled version of config-pin is somewhat more picky
about naming conventions, but I haven't used it much.

--
Charles Steinkuehler
cha...@steinkuehler.net

John Dammeyer

unread,
Apr 21, 2021, 12:23:58 PM4/21/21
to Charles Steinkuehler, machi...@googlegroups.com
Thank you. The HAL file does a
loadusr -w ./setup.sh

So I'm going to guess standard linux text based shell script
sudo $(which config-pin) -f - <<- EOF
P8.07 out # gpio2.2 DB25-1 Enable System
...

When I tried
sudo $(which config-pin) P8.07 out

manually from the terminal it didn't work with "cannot read file P8.07". It wasn't until I got this email that I realized I'd done a puTTY into the wrong beagle and tried it on one that wasn't running machinekit.

John
> --
> website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
> ---
> You received this message because you are subscribed to the Google Groups "Machinekit" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/1797068e-ac3b-5644-57dd-
> c010f03d0698%40steinkuehler.net.

Reply all
Reply to author
Forward
0 new messages