Hi,
I'm trying to create a new gpio driver for Orange PI5 due to the fact ARISC driver is not updated and no other existing driver found.
I'm not so sure I'm able to win on this task.. but, let's try.
I have a basic issue and searching on the web I did not found a solution.
I created a kind of empty C driver starting from
HAL skeleton.
I built it with HALCOMPILE and I got the file.so I called hal_op5_io.so. (I found the name should have max len..)
I placed the file into folder "usr/lib/linuxcnc/modules/".
When I call with "loadrt" my module:
Code:
loadrt hal_op5_io
addf hal_op5_io.write base-thread
I get an error that module is not found.
I thought it was an error caused by internal code somewhere, so I did another test:
copied all code from hal_parport and just changed file name and the init call, passing my name (hal_op5_io)
but I got the same error.
Code:
Found file(REL): ./cnc3040.hal
hal_op5_io: dlopen: /usr/lib/linuxcnc/modules/hal_op5_io.so: cannot open shared object file: No such file or directory
./cnc3040.hal:2: waitpid failed /usr/bin/rtapi_app hal_op5_io
./cnc3040.hal:2: /usr/bin/rtapi_app exited without becoming ready
./cnc3040.hal:2: insmod for hal_op5_io failed, returned -1
Shutting down and cleaning up LinuxCNC...
Note: Using POSIX realtime
LinuxCNC terminated with an error. You can find more information in the log:
/home/andrea/linuxcnc_debug.txt
and
/home/andrea/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
I can get the same identical error calling a non existing module, like calling "hal_mod_fake".
But the file .so exists in the folder!
Should I install somehow or add this module name somewhere else?
Thanks
Andrea