Jump to content

Recommended Posts

Posted

Linux 6.12 mainlined PREEMPT_RT, real-time preemption. As far as I understand, one no longer needs to muck about with patches, the kernel can simply be compiled for real-time use with normal compiler flags on any common architecture.

This makes Linux suitable for tasks with precise latency requirements, of which there is a lot of in the embedded space.

 

Has anyone tried this on Armbian 25.2 now that it uses the 6.12 kernel? Does it work? How would one compile Armbian with it?

Posted
On 3/25/2025 at 2:15 PM, grixm said:

As far as I understand, one no longer needs to muck about with patches, the kernel can simply be compiled for real-time use with normal compiler flags on any common architecture.

 

Correct, but I also haven't tried it yet.

 

On 3/25/2025 at 2:15 PM, grixm said:

How would one compile Armbian with it?

 

https://docs.armbian.com/Developer-Guide_Build-Preparation/

Once you get it running, choose this:

 

image.png

 

and enable what needs to be enabled (there must be guides around the internet and AI also usually knows). Make sure to freeze this custom kernel, so update won't be replacing it later.

Posted (edited)

Thanks!
Indeed I was able to compile it with a custom kernel, the preemption method option was in the system settings in the menu, and for good measure I also changed the system time slice resolution from 250Hz to 1000Hz in the power settings.


WindowsTerminal_4SEZ4MYji8.png.09eb5d83136b4d04f52854f9d54be1dd.png


It boots and seems stable so far, but I need to test more. 

 

And yes, also thanks for the tip regarding freezing the updates. Because after an "apt upgrade" it was indeed overwritten by a non-RT kernel.
However I have one question regarding this, @Igor. How can I build Armbian for the latest possible version, since I'm not able to update it after building? When building, I checkout out branch v25.02, but it resulted in building 25.2.1, not 25.2.3 which is the latest. Small difference but still...

Edited by grixm
Posted
5 hours ago, grixm said:

How can I build Armbian for the latest possible version


Always use main branch, older branches are here for reference and to build with sources at the state of initial build. We had several bug fix builds after point release, but they were made from main branch ... as we don't backport commits to frozen branch. Not enough people ...

 

OS version is not determined by build framework, but externally. https://github.com/armbian/os/blob/main/stable.json Which version is bumped when any new Armbian package is sent to the repository. You can also set version with a parameter IMAGE_VERSION=25.2.3 ...

In theory, if we would have "endless" computing / storage resources, we could make RT kernels for all variants. Currently, this is a bit insane :) as there are too many kernels. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines