Hi,
doing ldd lcec.so
linux-gate.so.1 (0xb7783000)
liblinuxcnchal.so.0 => /usr/lib/liblinuxcnchal.so.0 (0xb7746000)
libethercat.so.1 => /usr/lib/i386-linux-gnu/libethercat.so.1 (0xb773b000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb76e4000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb752d000)
librt.so.1 => /lib/i386-linux-gnu/librt.so.1 (0xb7524000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7507000)
/lib/ld-linux.so.2 (0xb7785000)
I installed ethercat, using dpkg with
github.com/sittner/ec-debianize
as I am using debian as it is the OS suggested for linuxcnc. I did try the etherlab installation, building it, without much success as it does not document the file system architecture for debian, during the installation process.
So far I have managed to
-install debian Strech with latest RT prempt kernel : Linux plotter 4.9.0-8-rt-686-pae #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u5 (2018-09-30) i686 GNU/Linux
-install linuxcnc, either 2.7.14 or 2.8.x
-install ethercat using sittner ec-debianize depot (
github.com/sittner/ec-debianize
). After building and installing, Ethercat master and ethercat slaves command work fine
-build and install linuxcnc-ethercat from
github.com/sittner/linuxcnc-ethercat
(make then sudo make install, or sudo make clean, make then sudo make install if I switch the linuxcnc version to update the kernel)
My problems are:
-when I try to run Linuxcnc 2.7.14 I have a permission denied on Ethercat0 as shown in
LINUXCNC - 2.7.14
Machine configuration directory is '/home/plotter/linuxcnc/configs/LAMGUI'
Machine configuration file is 'lam.ini'
Starting LinuxCNC...
Found file(REL): ./lam-v1.hal
Note: Using POSIX realtime
Failed to open /dev/EtherCAT0: Permission denied
LCEC: requesting master 0 (index 0) failed
lcec: rtapi_app_main: Invalid argument (-22)
./lam-v1.hal:2: waitpid failed /usr/bin/rtapi_app lcec
./lam-v1.hal:2: /usr/bin/rtapi_app exited without becoming ready
./lam-v1.hal:2: insmod for lcec 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/plotter/linuxcnc_debug.txt
and
/home/plotter/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
-when I build linuxcnc 2.8.x then install it I got
-LINUXCNC - 2.8.0~pre1
Machine configuration directory is '/home/plotter/linuxcnc/configs/LAMGUI'
Machine configuration file is 'lam.ini'
Starting LinuxCNC...
Found file(REL): ./lam-v1.hal
Note: Using POSIX realtime
lcec: dlopen: /usr/lib/linuxcnc/modules/lcec.so: undefined symbol: rtapi_mutex_get
./lam-v1.hal:2: waitpid failed /usr/bin/rtapi_app lcec
./lam-v1.hal:2: /usr/bin/rtapi_app exited without becoming ready
./lam-v1.hal:2: insmod for lcec 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/plotter/linuxcnc_debug.txt
and
/home/plotter/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
Any advice about how to make either 2.7 or 2.8 working with the ethercat and linuxcnc ethercat driver?
Cheers,
Nicolas