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

> -----Original Message-----
> From: machinekit@googlegroups.com [mailto:machinekit@googlegroups.com] On 
> Behalf Of Charles Steinkuehler
> Sent: April-21-21 4:57 AM
> To: John Dammeyer; machinekit@googlegroups.com
> Subject: Re: [Machinekit] BBB Machinekit setup.sh differences
> 
> 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
> char...@steinkuehler.net
> 
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/machinekit/1797068e-ac3b-5644-57dd-
> c010f03d0698%40steinkuehler.net.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/035b01d736ca%24b36cbaa0%241a462fe0%24%40autoartisans.com.

Reply via email to