- LinuxCNC
- Installing LinuxCNC
- Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
- Beef
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 52
26 Jan 2025 16:47 #319895
by Beef
Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1) was created by Beef
I've tried both RIP and building into a .deb and installing, but both ways it appears that it doesn't recognize the kernel has PREEMPT_RT enabled.
I have kernel 6.12.9 (although latency-test displays 6.12.0 for some reason?) and went through the menu config to set it for fully pre-emptable kernel and build it.
I'm on Linux Mint 22.1 and I can run simulations just fine in both RIP and the installed versions, but I run a mesa card and require HOSTMOT2 functioning properly which is where the issue arises.
Running latency-test results in some crazy huge numbers and it specifies POSIX non-realtime in the terminal.
I'm not sure if there's an additional step that I've missed to ensure LCNC "sees" the kernel has the patch enabled - perhaps the string has changed? I tried searching the forum and only came across RPI results but not x86.
I have kernel 6.12.9 (although latency-test displays 6.12.0 for some reason?) and went through the menu config to set it for fully pre-emptable kernel and build it.
I'm on Linux Mint 22.1 and I can run simulations just fine in both RIP and the installed versions, but I run a mesa card and require HOSTMOT2 functioning properly which is where the issue arises.
Running latency-test results in some crazy huge numbers and it specifies POSIX non-realtime in the terminal.
I'm not sure if there's an additional step that I've missed to ensure LCNC "sees" the kernel has the patch enabled - perhaps the string has changed? I tried searching the forum and only came across RPI results but not x86.
Attachments:
Please Log in or Create an account to join the conversation.
- Beef
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 52
26 Jan 2025 16:51 - 26 Jan 2025 16:58 #319896
by Beef
Replied by Beef on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Editing the above message appears to break it so replying instead - running uname -r it appears I have a skill issue and it returns 6.12.0, which is what I clearly accidentally had built. There may be issues in 6.12.0 that were resolved by 6.12.9 that resolve this, so a quick rebuild (well, not quick it takes forever) and I'll report back.
Last edit: 26 Jan 2025 16:58 by Beef.
Please Log in or Create an account to join the conversation.
- cornholio
- Offline
- Platinum Member
Less
More
- Posts: 1174
- Thank you received: 391
26 Jan 2025 17:15 - 26 Jan 2025 17:26 #319897
by cornholio
Replied by cornholio on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
That's a known issue.
I've been building 6.12.11 kernels, for arm, but it needs a patch.
In case you aren't aware.
You'll also have to select Fully Preempt kernel, not low latency desktop, this option will only show up if you select enable expert under general.
[*] Configure standard kernel features (expert users)
(X) Fully Preemptible Kernel (Real-Time)
I'm giving it a go now, just to make sure I'm giving you the right info, if it works out I'll post a link to the debs. I'm building on Mint 21.3 Virginia.
I've been building 6.12.11 kernels, for arm, but it needs a patch.
In case you aren't aware.
You'll also have to select Fully Preempt kernel, not low latency desktop, this option will only show up if you select enable expert under general.
[*] Configure standard kernel features (expert users)
(X) Fully Preemptible Kernel (Real-Time)
I'm giving it a go now, just to make sure I'm giving you the right info, if it works out I'll post a link to the debs. I'm building on Mint 21.3 Virginia.
Last edit: 26 Jan 2025 17:26 by cornholio.
Please Log in or Create an account to join the conversation.
- Beef
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 52
26 Jan 2025 17:35 #319899
by Beef
Replied by Beef on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
I selected full pre-emptible
I documented all my steps here to get it to work, as i needed a couple workarounds on LM
iamtherealbeef.com/content/linuxcnc-on-linuxmint-22/
I documented all my steps here to get it to work, as i needed a couple workarounds on LM
iamtherealbeef.com/content/linuxcnc-on-linuxmint-22/
Please Log in or Create an account to join the conversation.
- cornholio
- Offline
- Platinum Member
Less
More
- Posts: 1174
- Thank you received: 391
26 Jan 2025 17:50 #319900
by cornholio
Replied by cornholio on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Attachments:
Please Log in or Create an account to join the conversation.
- cornholio
- Offline
- Platinum Member
Less
More
- Posts: 1174
- Thank you received: 391
26 Jan 2025 17:54 #319901
by cornholio
Replied by cornholio on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Attachments:
Please Log in or Create an account to join the conversation.
- cornholio
- Offline
- Platinum Member
Less
More
- Posts: 1174
- Thank you received: 391
26 Jan 2025 19:04 #319906
by cornholio
Replied by cornholio on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Kernel packages
drive.google.com/drive/folders/1MimfKsSD...FtRRV?usp=drive_link
drive.google.com/drive/folders/1MimfKsSD...FtRRV?usp=drive_link
Please Log in or Create an account to join the conversation.
- Beef
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 42
- Thank you received: 52
27 Jan 2025 00:32 #319921
by Beef
Replied by Beef on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Thanks, that patch file was exactly what I needed for it to work properly - I had rebuilt it at the same time and it worked without issues.
Please Log in or Create an account to join the conversation.
- cornholio
- Offline
- Platinum Member
Less
More
- Posts: 1174
- Thank you received: 391
27 Jan 2025 01:50 #319926
by cornholio
Replied by cornholio on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Good to hear.
Actually it’s made me realise I have to update my Mint boxes. So thanks to you.
Actually it’s made me realise I have to update my Mint boxes. So thanks to you.
The following user(s) said Thank You: Beef
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
Less
More
- Posts: 340
- Thank you received: 116
27 Jan 2025 10:24 #319942
by royka
Replied by royka on topic Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
The patch brings back the indicator (/sys/kernel/realtime) that LinuxCNC uses to check if the OS is realtime. This is a part of the realtime patches that didn't become mainline.
forum.linuxcnc.org/38-general-linuxcnc-q...6-12?start=10#315437
forum.linuxcnc.org/38-general-linuxcnc-q...6-12?start=10#315437
The following user(s) said Thank You: Beef, cornholio
Please Log in or Create an account to join the conversation.
- LinuxCNC
- Installing LinuxCNC
- Kernel 6.12 with PREEMPT_RT patches enabled - yet POSIX non-realtime (LM22.1)
Time to create page: 0.110 seconds