I did this for the x86 architecture. And I've already assembled the core using your Arabian technology.

But building the realtime Xenomai kernel requires pre-patching from a third-party project Adeos (Adaptive Domain Environment for Operating Systems). Patch files for different architectures can be found here: Index of /downloads/ipipe/v4.x

Is it possible to build a realtime kernel using Arabian?

P.S. I apologize for my poor English.

Share this post

Link to post

Share on other sites

If adding and perhaps adjusting a patch is everything, then yes. You add a patch to useruserpatches/kernel/sunxi-next/ and recompile (NEXT) kernel branch. But since patches are not for a recent kernel (4.14.y) you will have some work to adopt them.

Share this post

Link to post

Share on other sites

But since patches are not for a recent kernel (4.14.y) you will have some work to adopt﻿ them.﻿﻿

Yes, ipipe patches are prepared (by Xenomai) only for a limited number of kernel versions (4.1.18, 4.9.51). But is it possible, in principle, to adapt and apply a patch of another version of the kernel, without knowing its inner meaning.

Patches Adeos (ipipe) is very voluminous and comprehensive, this is a challenging individual project. Does not seem to be any opportunity in the technology Armbian to assemble for an arbitrary kernel version, not only 4.14? How it is done, for example, in BuildRoot.

Thanks.

Share this post

Link to post

Share on other sites

If adding and perhaps adjusting a patch is everything, then yes. You add a patch to useruserpatches/kernel/sunxi-next/ and recompile (NEXT) kernel branch. But since patches are not for a recent kernel (4.14.y) you will have some work to adopt﻿ them.﻿﻿﻿

Another option would be to contact the authors of Xenomai (I have contact with them) and ask them to prepare a patch ipipe for the 4.14.y kernel. What 'y' exactly?

The University of the Netherlands (Radboud University) provides (Raspberry Pi image for the Pi zero,1,2,3 with Xenomai 3.0.5 on Raspbian linux 4.1.y Debian 8 jessie) Xenomai hard realtime image with a Rapsbery Pi image for use in its extensive real-time Linux, Design of Embedded Systems and Robot Lab training programs. This means that this is a solvable problem. I would like to have a similar image for more preferred SoCs such as Orange Pi.

Share this post

Link to post

Share on other sites

4.14 patch is development. I built a couple images that way , never got to the point of testing them out because real world problems didn't give me the time to use my experimental solution. Proceeding as Igor suggested this is actually relatively simple with the mainline LTS kernels.

Share this post

Link to post

Share on other sites

4.14 patch is development. I built a couple images that way , never got to the point of testing them out because real world problems didn't give me the time to use my experimental solution. Proceeding as Igor suggested this is actually relatively simple with the mainline LTS kernels. ﻿

This is a well-known PREEMPT_RT kernel patch. It does not provide hard realtime since QNX, VxWorks or Xenomai.