On 8/2/2016 8:15 AM, matthew venn wrote: > Thanks Charles. > > The configuration is here: https://github.com/mattvenn/machinekit-bipod > > the supervisor conf is bipod.conf, it starts the start.sh shell script, > which tries to sort out the environment before starting the linuxcnc > process, which in turn uses bipod.py for the DISPLAY. > > I have now got this to work once, and I have a clue. If I start the process > via supervisor, it looks fine but it can't read or write any of the gpios. > If I kill it and start from the command line then I get this message: > > Starting again, the message goes away and everything is fine. If I then run > it from supervisor, everything works as expected. > > Still digging...
What is the error message you get? Just a guess, but based on the behavior you describe I expect a problem with the one-time setup (loading the universal overlay and/or seting up the output GPIO pins). You should be able to easily verify if the universal overlay is loaded after the first run via supervisord: cat /sys/devices/bone_capemgr.*/slots ...and make sure the output pins are really outputs: config-pin -q p9.13 config-pin -q p9.15 ... I think this line may be causing you problems: https://github.com/mattvenn/machinekit-bipod/blob/master/setup.sh#L73 The default location for config-pin is /usr/local/bin/config-pin, which may not be in your supervisord supplied path. -- Charles Steinkuehler [email protected] -- 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 [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
