On 7/28/2017 11:07 AM, Robert Nelson wrote: > On Fri, Jul 28, 2017 at 10:55 AM, Robert Nelson <[email protected]> > wrote: >> >> so it was trying to load the uio firmware.. i bet it needs to call sudo..
The real-time code loading the HAL modules (including the PRU driver) should have root permissions. In the old days (and still with LinuxCNC if using an RTAI kernel), the HAL components are actually kernel modules and have to be loaded as root. > Charles, do you remember where the pru firmware call to "load" the firmware > is.. The PRU driver is using the prussdrv library: https://github.com/machinekit/machinekit/tree/master/src/hal/support/pru ...and does most of it's setup in pru_init(): https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_pru_generic/hal_pru_generic.c#L385 ...and setup_pru(): https://github.com/machinekit/machinekit/blob/master/src/hal/drivers/hal_pru_generic/hal_pru_generic.c#L447 -- 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.
