I didn't find much info in the forum on how to correctly apply RT patch to the Armbian (Orange Pi Zero Plus H5 board).
Here is how I did:
Built Armbian as follows:
1) I downloaded patch-5.4.22-rt13.patch from https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.4/ and placed into ~/build/userpatches/kernel/sunxi-current ( I saw from the logs that this is the folder for the builder to search for user patches in my case)
2) Started ./compile.sh --> FULL OS image for flashing --> Show a kernel configuration menu before compilation --> orangepizeroplus (H5) as target board --> current (recommended , which is 5.4.23 as of today) --> bionic (18.04 LTS) --> standard image with console interface.
So it seems the patch is included in the compilation.
4) In the kernel configuration screen I amended settings for low-latency kernel ( I chose the third item in the list which seems is full preemptive mode)
Armbian build finishes without errors.
The board starts fine, it shows Armbian 5.4.23-rt13 as the kernel version.
uname -a shows that the kernel is in fact in the SMP PREEMPT mode.
Now the problem is that any cyclictest with any configuration shows much worse AVG latency times compared to the system with standard Armbian 5.4.23 kernel. In most cases AVG latency times exceed 1000us , therefore its far-far away from the times I see in the forum for other systems using even the H3 chipset (sub 50us AVG latency tims is not that uncommon).
What I did wrong, or what necessary/mandatory steps have I missed for having sub 50us AVG latency system?
Question
kristsm
Hi!
I didn't find much info in the forum on how to correctly apply RT patch to the Armbian (Orange Pi Zero Plus H5 board).
Here is how I did:
Built Armbian as follows:
1) I downloaded patch-5.4.22-rt13.patch from https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.4/ and placed into ~/build/userpatches/kernel/sunxi-current ( I saw from the logs that this is the folder for the builder to search for user patches in my case)
2) Started ./compile.sh --> FULL OS image for flashing --> Show a kernel configuration menu before compilation --> orangepizeroplus (H5) as target board --> current (recommended , which is 5.4.23 as of today) --> bionic (18.04 LTS) --> standard image with console interface.
3) Build log shows: "[ o.k. ] * [c] patch-5.4.22-rt13.patch"
So it seems the patch is included in the compilation.
4) In the kernel configuration screen I amended settings for low-latency kernel ( I chose the third item in the list which seems is full preemptive mode)
Armbian build finishes without errors.
The board starts fine, it shows Armbian 5.4.23-rt13 as the kernel version.
uname -a shows that the kernel is in fact in the SMP PREEMPT mode.
Now the problem is that any cyclictest with any configuration shows much worse AVG latency times compared to the system with standard Armbian 5.4.23 kernel. In most cases AVG latency times exceed 1000us , therefore its far-far away from the times I see in the forum for other systems using even the H3 chipset (sub 50us AVG latency tims is not that uncommon).
What I did wrong, or what necessary/mandatory steps have I missed for having sub 50us AVG latency system?
Thanks for any help in advance!
Krists
misstyped
Link to comment
Share on other sites
14 answers to this question
Recommended Posts