Hello everybody,
I am stuck with machinekit and pru. I am running a single line .hal file:
loadrt prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic pru=0 halname=hpg
This returns:
msgd:0 stopped
rtapi:0 stopped
rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1 --usrmsglevel=1 --debug=1 --halsize=524288
rtapi_app command: /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0 --debug=1
stat: No such file or directory
prutest.hal:6: insmod failed, returned -1:
do_load_cmd: dlopen: prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.so: cannot open shared object file: No such file or directory
rpath=/usr/lib/linuxcnc/rt-preempt
Even though the file is actually there:
$ ls /usr/lib/linuxcnc/rt-preempt | grep pru
hal_pru.so
hal_pru_generic.so
hal_prudebug.so
pru_decamux.bin
pru_decamux.dbg
pru_generic.bin
pru_generic.dbg
This is my linuxcnc.log (export DEBUG=5):
May 12 14:19:23 beaglebone rtapi:0: do_load_cmd: dlopen: prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.so: cannot open shared object file:$
May 12 14:19:23 beaglebone rtapi:0: rpath=/usr/lib/linuxcnc/rt-preempt
May 12 14:19:23 beaglebone rtapi:0: 1:rtapi_app:4613:user do_load_cmd: dlopen: prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.so: cannot op$
May 12 14:19:23 beaglebone rtapi:0: 1:rtapi_app:4613:user rpath=/usr/lib/linuxcnc/rt-preempt
May 12 14:19:24 beaglebone msgd:0: rtapi_app exit detected - scheduled shutdown
May 12 14:19:26 beaglebone msgd:0: msgd shutting down
May 12 14:28:07 beaglebone rtapi:0: do_load_cmd: dlopen: prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.so: cannot open shared object file:$
May 12 14:28:07 beaglebone rtapi:0: rpath=/usr/lib/linuxcnc/rt-preempt
May 12 14:28:07 beaglebone rtapi:0: 1:rtapi_app:4766:user do_load_cmd: dlopen: prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.so: cannot op$
May 12 14:28:07 beaglebone rtapi:0: 1:rtapi_app:4766:user rpath=/usr/lib/linuxcnc/rt-preempt
May 12 14:28:08 beaglebone msgd:0: rtapi_app exit detected - scheduled shutdown
May 12 14:28:10 beaglebone msgd:0: msgd shutting down
$ uname -a
Linux beaglebone 4.19.120-bone-rt-r50 #1stretch PREEMPT RT Fri May 8 22:45:31 UTC 2020 armv7l GNU/Linux
Every help would be very much appreciated,
Regards,
Klemen