Charles was right, I was missing the name :)
This now loads the pru:
loadrt hal_pru_generic prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.bin
pru=0 halname=hpg
Thank you all for your help and fast response
Regards
Klemen
On Fri, 12 May 2023 at 21:47, John Allwine wrote:
> Maybe symlinking
Maybe symlinking the other file would work?
sudo ln -s /usr/lib/linuxcnc/rt-preempt/hal_pru_generic.so
/usr/lib/linuxcnc/rt-preempt/pru_generic.so
Also, maybe specify the specific file for your prucode, which includes the
.bin?
loadrt prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.bin pru=0
You are missing the name of the HAL driver. The loadrt command expects
a driver name, then the arguments. The error in your first command
shows the HAL system trying to load the HAL driver named:
"prucode=/usr/lib/linuxcnc/rt-preempt/hal_pru_generic"
...you need something like:
loadrt
Yes, it looks like that library is ok.
I don't know how up-to-date these paths/filenames are but have you tried
looking in the various places described here:
https://github.com/machinekit/machinekit/blob/master/scripts/linuxcnc.in#L210
Machinekit terminated with an error. For simple cases
This is what i get:
$ ldd /usr/lib/linuxcnc/rt-preempt/hal_pru_generic.so
linux-vdso.so.1 (0xbeb23000)
libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6f2b000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e3d000)
/lib/ld-linux-armhf.so.3 (0xb6f71000)
But i am not sure what
Try running this command to see if a dependent library is missing:
$ ldd /usr/lib/linuxcnc/rt-preempt/hal_pru_generic.so
On Friday, May 12, 2023 at 12:06:20 PM UTC-6 fogl wrote:
> Thank you for your reply,
>
> I tried both options, but with no luck:
> 1. loadrt
Thank you for your reply,
I tried both options, but with no luck:
1. loadrt prucode=/usr/lib/linuxcnc/rt-preempt/hal_pru_generic pru=0
halname=hpg
returns
msgd:0 stopped
rtapi:0 stopped
rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0
--rtmsglevel=1 --usrmsglevel=1 --debug=1
Your output indicates dlopen is looking for "pru_generic.so" but your
filesystem only has "hal_pru_generic.so".
You need to fix the script(s) trying to load the PRU HAL module or make
a symlink or something so the file dlopen is looking for actually exists.
On 5/12/2023 9:38 AM, fogl wrote:
Is it just a matter of adding the .bin to the file name? Something like
this:
loadrt prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.bin pru=0
halname=hpg
On Fri, May 12, 2023 at 8:38 AM fogl wrote:
> Hello everybody,
>
> I am stuck with machinekit and pru. I am running a single line .hal
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
10 matches
Mail list logo