Using POSIX realtime
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 839
- Thank you received: 292
10 May 2025 10:51 #328138
by Hakan
Replied by Hakan on topic Using POSIX realtime
Intel I226 I see. I like those I226es. Then there is possibly the option to use the igc driver instead of the generic driver. You can always test that.
Let's continue with the ec_generic.
The output shows that it is back to the ec_generic module not loading.
Can you show the output of these three commands? It should manually load the ec_generic module.
Let's continue with the ec_generic.
The output shows that it is back to the ec_generic module not loading.
Can you show the output of these three commands? It should manually load the ec_generic module.
lsmod | grep ec_generic
sudo modprobe ec_generic
lsmod | grep ec_generic
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 3
10 May 2025 12:05 #328139
by Roger S
Replied by Roger S on topic Using POSIX realtime
here is the result oflsmod | grep ec_generic
sudo modprobe ec_generic
lsmod | grep ec_generic
sudo modprobe ec_generic
lsmod | grep ec_generic
ec_generic 16384 0
ec_master 397312 1 ec_generic
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec 188416 6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core 122880 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd 126976 15 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
ec_generic 16384 0
ec_master 397312 1 ec_generic
snd_hda_codec_generic 98304 1 snd_hda_codec_realtek
ledtrig_audio 16384 1 snd_hda_codec_generic
snd_hda_codec 188416 6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_sof_intel_hda
snd_hda_core 122880 9 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hda,snd_sof_intel_hda
snd 126976 15 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,snd_soc_core,snd_pcm
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 839
- Thank you received: 292
10 May 2025 12:27 #328140
by Hakan
Replied by Hakan on topic Using POSIX realtime
And now it works? What does "sudo dmesg" say?
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 3
10 May 2025 12:58 #328141
by Roger S
Replied by Roger S on topic Using POSIX realtime
Sorry Hakan, I hadn't looked at all, because I was busy searching for and reporting errors
many many thanks! I really appreciate your efforts. so just thank you again
What was the cause and do I need to do anything else now?
Master0
Phase: Idle
Active: no
Slaves: 5
Ethernet devices:
Main: 80:ee:73:fd:0f:8b (attached)
Link: UP
Tx frames: 409178
Tx bytes: 24554240
Rx frames: 409177
Rx bytes: 24554180
Tx errors: 0
Tx frame rate [1/s]: 123 123 125
Tx rate [KByte/s]: 7.2 7.2 7.2
Rx frame rate [1/s]: 123 123 125
Rx rate [KByte/s]: 7.2 7.2 7.2
Common:
Tx frames: 409178
Tx bytes: 24554240
Rx frames: 409177
Rx bytes: 24554180
Lost frames: 0
Tx frame rate [1/s]: 123 123 125
Tx rate [KByte/s]: 7.2 7.2 7.2
Rx frame rate [1/s]: 123 123 125
Rx rate [KByte/s]: 7.2 7.2 7.2
Loss rate [1/s]: 0 0 0
Frame loss [%]: 0.0 0.0 0.0
Distributed clocks:
Reference clock: Slave 0
DC reference time: 0
Application time: 0
2000-01-01 00:00:00.000000000
roger@roger:~$ ethercat slaves
0 0:0 PREOP + EK1100 EtherCAT-Koppler (2A E-Bus)
1 0:1 PREOP + EL1008 8K. Dig. Eingang 24V, 3ms
2 0:2 PREOP + EL1008 8K. Dig. Eingang 24V, 3ms
3 0:3 PREOP + EL2008 8K. Dig. Ausgang 24V, 0.5A
4 0:4 PREOP + L8EC(COE)
roger@roger:~$
many many thanks! I really appreciate your efforts. so just thank you again
What was the cause and do I need to do anything else now?
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 839
- Thank you received: 292
10 May 2025 13:15 #328143
by Hakan
Replied by Hakan on topic Using POSIX realtime
Wow! It works.I was ready to give up.
I don't know why it didn't work for you, exactly. More than there was a problem to load the ec_generic module using the ethercatctl script.
It will probably not work next time again.
I don't know of a permanent fix, but the two commands "sudo rmmod ec_generic" followed by "sudo modprobe ec_generic" will probably load the ec_generic module.
I don't know why it didn't work right away. But there is a fix.
I don't know why it didn't work for you, exactly. More than there was a problem to load the ec_generic module using the ethercatctl script.
It will probably not work next time again.
I don't know of a permanent fix, but the two commands "sudo rmmod ec_generic" followed by "sudo modprobe ec_generic" will probably load the ec_generic module.
I don't know why it didn't work right away. But there is a fix.
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 3
10 May 2025 13:29 - 10 May 2025 13:33 #328144
by Roger S
Replied by Roger S on topic Using POSIX realtime
I just tested it. When I restart the system, the link is down. with
lsmod | grep ec_generic
sudo modprobe ec_generic
lsmod | grep ec_generic
it works again
This is enough of a workaround for me. I can also do updates in the future with a clear conscience?
Last edit: 10 May 2025 13:33 by Roger S.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11389
- Thank you received: 3823
10 May 2025 19:29 #328173
by rodw
Replied by rodw on topic Using POSIX realtime
From the dmesg log and tainting the kernel, I think you have secure boot is enabled. Try disabling that in your BIOS.
Failing that I did cover very briefly how to enroll the dkms module into the kernel when you open a spoiler in my how to.
Installing a kernel module (DKMS in this case) under secure boot is denied unless specifically set as being safe. eg it taints the kernel
Failing that I did cover very briefly how to enroll the dkms module into the kernel when you open a spoiler in my how to.
Installing a kernel module (DKMS in this case) under secure boot is denied unless specifically set as being safe. eg it taints the kernel
The following user(s) said Thank You: Roger S
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 839
- Thank you received: 292
11 May 2025 08:05 #328189
by Hakan
Replied by Hakan on topic Using POSIX realtime
That could be the case, good to get an explanation to this.
Was thinking of the lack of error messages when ethercatctl tried to modprobe ec_generic,
but the error messages might be in /var/log/daemon.log and not in syslog (dmesg).
Also strange that the module can be loaded by hand using modprobe.
If that's caused by secure boot, then that's clear.
Roger can you please check for secure boot in BIOS.
And yes, no problem to update.
Hopefully it goes away with the secure boot flag.
Was thinking of the lack of error messages when ethercatctl tried to modprobe ec_generic,
but the error messages might be in /var/log/daemon.log and not in syslog (dmesg).
Also strange that the module can be loaded by hand using modprobe.
If that's caused by secure boot, then that's clear.
Roger can you please check for secure boot in BIOS.
And yes, no problem to update.
Hopefully it goes away with the secure boot flag.
Please Log in or Create an account to join the conversation.
- Roger S
- Offline
- Senior Member
-
Less
More
- Posts: 46
- Thank you received: 3
11 May 2025 13:02 #328198
by Roger S
Replied by Roger S on topic Using POSIX realtime
Hi everyone, I've already done that. I've reinstalled the PC three times and always encountered the same problems. I included Mok Management during the second installation. I've done that again this time.
and yet something seems to have gone wrong:
With the workaround everything works so far (I hope) and thanks again
roger@roger:~$ mokutil --sb-state
SecureBoot disabled
roger@roger:~$
and yet something seems to have gone wrong:
dpkg: Fehler beim Bearbeiten des Paketes linux-image-6.1.0-34-rt-amd64 (--config
ure):
»installiertes post-installation-Skript des Paketes linux-image-6.1.0-34-rt-amd
64«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von linux-image-rt-amd64:
linux-image-rt-amd64 hängt ab von linux-image-6.1.0-34-rt-amd64 (= 6.1.135-1);
aber:
Paket linux-image-6.1.0-34-rt-amd64 ist noch nicht konfiguriert.
dpkg: Fehler beim Bearbeiten des Paketes linux-image-rt-amd64 (--configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für initramfs-tools (0.142+deb12u1) werden verarbeitet ...
update-initramfs: Generating /boot/initrd.img-6.1.0-34-rt-amd64
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return c
ode 1
dpkg: Fehler beim Bearbeiten des Paketes initramfs-tools (--configure):
»installiertes post-installation-Skript des Paketes initramfs-tools«-Unterproze
ss gab den Fehlerwert 1 zurück
Fehler traten auf beim Bearbeiten von:
linux-image-6.1.0-34-rt-amd64
linux-image-rt-amd64
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
With the workaround everything works so far (I hope) and thanks again
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 839
- Thank you received: 292
11 May 2025 14:57 #328200
by Hakan
Replied by Hakan on topic Using POSIX realtime
That dkms error is an error in the debian distribution, they included a raspberry package. Just delete it.Well I thought the secure boot would be an explanation but now I don't know.
Happy you can use it, anyway.
sudo apt remove raspi-firmware
Happy you can use it, anyway.
The following user(s) said Thank You: Roger S
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds