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 this means - that the library is ok?

Regards
Klemen

On Fri, 12 May 2023 at 20:20, [email protected] <[email protected]> wrote:

> 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 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 --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/hal_pru_generic.so: cannot open shared
>> object file: No such file or directory
>> rpath=/usr/lib/linuxcnc/rt-preempt
>>
>> 2. loadrt prucode=/usr/lib/linuxcnc/rt-preempt/pru_generic.bin 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 --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.bin.so: cannot open shared object file: No such file or
>> directory
>>
>> Regards
>> Klemen
>>
>>
>>
>>
>> On Fri, 12 May 2023 at 17:25, Charles Steinkuehler <
>> [email protected]> wrote:
>>
>>> 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:
>>> > 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
>>> >
>>>
>>> --
>>> 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 a topic in the
> Google Groups "Machinekit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/machinekit/C5KrBQkH7Gw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/machinekit/71473c0e-3871-4ca0-ad67-4035ef16e2e7n%40googlegroups.com
> <https://groups.google.com/d/msgid/machinekit/71473c0e-3871-4ca0-ad67-4035ef16e2e7n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/CAAD%3DYAnBDhOFeiEpPG%3DHyA7dmdC%3D646CimeotsCkPBe77RtfdA%40mail.gmail.com.

Reply via email to