@andreluiz109 :
I did a small patch to the build system, to force it to not take the latest linux kernel, but a specific one. Perhaps there was an option in the armbian build system to specify this but I did not immediately find it.
The reason why this is important, is that the linux RT patches are only applicable to a very specific kernel version. (e:g: the 4.18.8-RT 9 patch MUST be applied to the linux kernel 4.18.8 tag).
That's why I did the following patch to the armbian build system (armbian build-system tag 9531d1bc7ecd0f468e29e402ba00cbc7b7dd683f) :
diff --git a/config/sources/sunxi_common.inc b/config/sources/sunxi_common.inc
index 4fc872f..aae8829 100644
--- a/config/sources/sunxi_common.inc
+++ b/config/sources/sunxi_common.inc
@@ -24,7 +24,8 @@ case $BRANCH in
next)
KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
- KERNELBRANCH='branch:linux-4.14.y'
+ #KERNELBRANCH='branch:linux-4.14.y'
+ KERNELBRANCH='tag:v4.14.8'
KERNELDIR=$MAINLINE_KERNEL_DIR
GOVERNOR=ondemand
The easiest way to apply this patch is .. to edit sunxi_common.inc, comment the kernel branch and force it to a fixed version.
This patch has nothing to do with the actual linux RT patch, which you can just place in the correct directory, and armbian will apply it for you.
Anyway, I'd recommend the following approach if you want to build the kernel yourself:
- First see that you can build -a- armbian kernel (you should find enough documentation online for this)
- Then try and build a specific linux kernel version (e.g. the 4.18.8 if you want to reproduce my build)
- Then build it while applying the 4.18.8-RT 9 patch (by putting the patch file in userpatches/kernel/sunxi-next/patch-4.14.8-rt9.patch), and applying the correct config setings when prompted
Note that if you have never built a kernel before, this can be a bit daunting, but you'll get there eventually. Alternatively, you can just take the precompiled image from my blog's site (SD card image), and work from there.
Good luck!