On 12/14/2017 2:02 PM, [email protected] wrote: > Thanks Bas! I've attached a more verbose log. It looks like it's something > PRU related. > > Dec 14 19:59:25 pocketnc rtapi:0: 4:rtapi_app:2498:user halg_xinitfv:90 HAL: > initializing component 'hal_pru_generic' type=1 arg1=0 arg2=0/0x0 > Dec 14 19:59:25 pocketnc rtapi:0: 4:rtapi_app:2498:user hpg: module > 'uio_pruss' already loaded > Dec 14 19:59:25 pocketnc rtapi:0: 1:rtapi_app:2498:user hpg: ERROR: failed to > initialize PRU > Dec 14 19:59:25 pocketnc rtapi:0: 4:rtapi_app:2498:user halg_exit:293 HAL: > removing component 686 'hal_pru_generic'
Based on the error messages, the code is failing when trying to open the prussdrv library, which by default is going to look for /dev/uio0. Make sure the device file /dev/uio0 exists on your system and that it is the PRU device. These files may have moved around with the newer kernel, you may not actually have the overlay properly loaded, or your kernel may be providing the remoteproc version of the PRU driver instead of the uio driver. From my 3.8 kernel, the files you're looking for are: machinekit@beaglebone:~$ ls -l /dev/uio* crw-rw---- 1 root users 245, 0 Oct 17 10:32 /dev/uio0 crw-rw---- 1 root users 245, 1 Oct 17 10:32 /dev/uio1 crw-rw---- 1 root users 245, 2 Oct 17 10:32 /dev/uio2 crw-rw---- 1 root users 245, 3 Oct 17 10:32 /dev/uio3 crw-rw---- 1 root users 245, 4 Oct 17 10:32 /dev/uio4 crw-rw---- 1 root users 245, 5 Oct 17 10:32 /dev/uio5 crw-rw---- 1 root users 245, 6 Oct 17 10:32 /dev/uio6 crw-rw---- 1 root users 245, 7 Oct 17 10:32 /dev/uio7 machinekit@beaglebone:~$ for DIR in /sys/class/uio/uio* ; do echo -n "$DIR: " ; cat $DIR/name; done /sys/class/uio/uio0: pruss_evt0 /sys/class/uio/uio1: pruss_evt1 /sys/class/uio/uio2: pruss_evt2 /sys/class/uio/uio3: pruss_evt3 /sys/class/uio/uio4: pruss_evt4 /sys/class/uio/uio5: pruss_evt5 /sys/class/uio/uio6: pruss_evt6 /sys/class/uio/uio7: pruss_evt7 -- 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.
