Using POSIX realtime

More
1 year 5 months ago #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.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #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.

More
1 year 5 months ago #327673 by Roger S
Replied by Roger S on topic Using POSIX realtime
I tried again and hope it is now correct

File Attachment:

File Name: dmesg_2025-05-04.txt
File Size:54.28 KB

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #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.

More
1 year 5 months ago #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?

File Attachment:

File Name: dmesg_2025...04-2.txt
File Size:54.22 KB

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #327683 by Hakan
Replied by Hakan on topic Using POSIX realtime
Mine looks like
Code:
[    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.
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
Code:
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: 1 year 5 months ago by Hakan. Reason: Wider search for ec_generic

Please Log in or Create an account to join the conversation.

Time to create page: 0.224 seconds
Powered by Kunena Forum