Using POSIX realtime
- Roger S
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 2
03 May 2025 16:30 #327607
by Roger S
Replied by Roger S on topic Using POSIX realtime
Thank you very much Hakan, I have attached the result as a file
Attachments:
Please Log in or Create an account to join the conversation.
- Hakan
- Away
- Platinum Member
-
Less
More
- Posts: 668
- Thank you received: 216
03 May 2025 18:01 #327616
by Hakan
Replied by Hakan on topic Using POSIX realtime
It's on the right track but I wonder how to pin-point exact reason and solution.
I have seen spelling mistakes cause this, but yours seems fine.
Can be the old network driver not unloading.
It's along those lines, the master can not get control over the network interface.
Can you set debug "ethercat debug 1", restart the ethercat server and show the dmesg again?
I have seen spelling mistakes cause this, but yours seems fine.
Can be the old network driver not unloading.
It's along those lines, the master can not get control over the network interface.
Can you set debug "ethercat debug 1", restart the ethercat server and show the dmesg again?
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 2
03 May 2025 18:18 #327621
by Roger S
Replied by Roger S on topic Using POSIX realtime
I can't enable debug mode. Could this be part of the problem?
roger@roger:~$ echo 1 | sudo tee /sys/module/ethercat/parameters/debug
[sudo] Passwort für roger:
tee: /sys/module/ethercat/parameters/debug: Datei oder Verzeichnis nicht gefunden
1
roger@roger:~$ sudo modprobe -r ethercat
modprobe: FATAL: Module ethercat not found.
roger@roger:~$ sudo systemctl stop ethercat
roger@roger:~$ sudo modprobe -r ethercat
modprobe: FATAL: Module ethercat not found.
roger@roger:~$ echo 1 | sudo tee /sys/module/ethercat/parameters/debug
[sudo] Passwort für roger:
tee: /sys/module/ethercat/parameters/debug: Datei oder Verzeichnis nicht gefunden
1
roger@roger:~$ sudo modprobe -r ethercat
modprobe: FATAL: Module ethercat not found.
roger@roger:~$ sudo systemctl stop ethercat
roger@roger:~$ sudo modprobe -r ethercat
modprobe: FATAL: Module ethercat not found.
Please Log in or Create an account to join the conversation.
- Hakan
- Away
- Platinum Member
-
Less
More
- Posts: 668
- Thank you received: 216
03 May 2025 21:08 #327635
by Hakan
Replied by Hakan on topic Using POSIX realtime
Just type the command "ethercat debug 1"
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 2
04 May 2025 12:41 #327673
by Roger S
Replied by Roger S on topic Using POSIX realtime
I tried again and hope it is now correct
Attachments:
Please Log in or Create an account to join the conversation.
- Hakan
- Away
- Platinum Member
-
Less
More
- Posts: 668
- Thank you received: 216
04 May 2025 13:02 #327675
by Hakan
Replied by Hakan on topic Using POSIX realtime
Yes debug is switched on. But restart the master "sudo service ethercat restart" so one can see messages from the startup of the server and hopefully figure out why it doesn't take control over the network interface.
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 2
04 May 2025 14:54 #327680
by Roger S
Replied by Roger S on topic Using POSIX realtime
I did the following:
ethercat debug 1
sudo service ethercat restart
sudo dmesg
The log file says the following:
[ 5.747038] ec_master: loading out-of-tree module taints kernel.
[ 5.748211] ec_master: module verification failed: signature and/or required key missing - tainting kernel
[ 5.765973] EtherCAT: Master driver 1.6.4 1.6.4.g703b611-1+17.1
[ 5.766146] EtherCAT: 1 master waiting for devices.
is that the problem?
ethercat debug 1
sudo service ethercat restart
sudo dmesg
The log file says the following:
[ 5.747038] ec_master: loading out-of-tree module taints kernel.
[ 5.748211] ec_master: module verification failed: signature and/or required key missing - tainting kernel
[ 5.765973] EtherCAT: Master driver 1.6.4 1.6.4.g703b611-1+17.1
[ 5.766146] EtherCAT: 1 master waiting for devices.
is that the problem?
Attachments:
Please Log in or Create an account to join the conversation.
- Hakan
- Away
- Platinum Member
-
Less
More
- Posts: 668
- Thank you received: 216
04 May 2025 15:16 - 04 May 2025 15:20 #327683
by Hakan
Replied by Hakan on topic Using POSIX realtime
Mine looks like
so my installation goes on and loads the ec_generic module from igh ethercat.
And thinking of your "tainted kernel" message, do you actually have the ethercat network drivers installed?
I search for them here and find them as below
[ 3.850145] EtherCAT: 1 master waiting for devices.
[ 3.868627] ec_generic: EtherCAT master generic Ethernet device module 1.6.3 1.6.3.g805e407-1+15.3
[ 3.868649] EtherCAT: Accepting C4:62:37:06:66:54 as main device for master 0.
[ 3.868658] ec_generic: Binding socket to interface 4 (enp2s0).
[ 3.892744] EtherCAT 0: Starting EtherCAT-IDLE thread.
And thinking of your "tainted kernel" message, do you actually have the ethercat network drivers installed?
I search for them here and find them as below
debian@plasma:~$ find / -type f -name ec_gener\* -ls 2>/dev/null
14316846 20 -rw-r--r-- 1 root root 20333 apr 3 09:42 /usr/lib/modules/6.1.0-32-rt-amd64/updates/dkms/ec_generic.ko
20982238 24 -rw-r--r-- 1 root root 24213 apr 16 12:24 /var/lib/dkms/ethercat-dkms/1.6.3/6.12.0-rc7-rt8/x86_64/module/ec_generic.ko
21235711 24 -rw-r--r-- 1 root root 24397 apr 17 08:30 /var/lib/dkms/ethercat-dkms/1.6.3/6.14.0-rt8/x86_64/module/ec_generic.ko
20982170 20 -rw-r--r-- 1 root root 20333 apr 3 09:42 /var/lib/dkms/ethercat-dkms/1.6.3/6.1.0-32-rt-amd64/x86_64/module/ec_generic.ko
Last edit: 04 May 2025 15:20 by Hakan. Reason: Wider search for ec_generic
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Junior Member
-
Less
More
- Posts: 32
- Thank you received: 2
04 May 2025 15:28 #327684
by Roger S
Replied by Roger S on topic Using POSIX realtime
I performed the installation according to the instructions from rodw
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
Please Log in or Create an account to join the conversation.
- Hakan
- Away
- Platinum Member
-
Less
More
- Posts: 668
- Thank you received: 216
04 May 2025 16:05 #327691
by Hakan
Replied by Hakan on topic Using POSIX realtime
Search for the ec_generic.so files like I did.
Please Log in or Create an account to join the conversation.
Time to create page: 0.090 seconds