Hi Robert Thanks for the link for the config-pins which I have working. Ouch on the startup - I'm from the small uC embedded world - so I'm learning about these things.udev sounds like its some infrastructure.
I found this link for accessing IO. https://unix.stackexchange.com/questions/392826/auto-run-the-programs-when-the-system-turns-ondebian Since it sounds like you have been thinking about it - and how it relates to the PRU - are the init.d running as root.? thanks On Mon, Jul 30, 2018 at 6:18 PM Robert Nelson <[email protected]> wrote: > On Mon, Jul 30, 2018 at 8:13 PM, Neil Hancock <[email protected]> > wrote: > > Hi all > > I'm compiling a fairly simple program that accesses the PRU0 shared ram > > When I run it with sudo it has no problems. > > I'm guessing it access a privileged space but not sure the ways round the > > segmentation fault. > > Any suggestions appreciated. > > We haven't figured out the udev rules yet for the pru, so sadly still > root only.. > > > > > Neil > > > > I want to run it from start up, which I think at its simplest means > adding > > something to cloud9/auotrun - > > Drew has a good startup example here: > > > https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/test/notes/run_config-pin_during_startup.md > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > > -- > 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/CAOCHtYg8V56Yf%2BCUJNfGKO0krjXqu0HE4y%3DN0CXmsvS6W7nDBw%40mail.gmail.com > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CAE_cRSdY12MGvsc_kZu-JkgZPyuCP%2B-JDLjD0tg0TiAEdBaxFg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
