Reputation: 5627
I would like to activate the PREEMPTion features of my Linux Kernel. To do that I should download the right patch matching the version of the kernel I am using and that I compiled (as explained here). The version of the kernel I have is the Linux version 4.9.0 (obtained just typing uname -a
from the command line and double checked in /proc/version
.
In the linux kernel page (where is possible to download the patch for this purpose) I cannot find the exact matching version that I am using. Which one should I use?
Also, if you have some suggestion on how to do it properly it will be appreciated!
The other question I have is: can I continue to use the same application I have developed observing, when possible, the improvement or degradation of performance? And what about the driver I was developing? or third parts device-driver?
UPDATE:
I am using a Xilinx Zynq Ultrascale+ equipped with a quad core ARM 53. The board used is the zcu102 by Xilinx.
The source files of the kernel come from here and the file system is Linaro
Upvotes: 1
Views: 1182
Reputation: 10947
Here is the information about how to install PREEMPT_RT on ZCU102 using Petalinux 2019.1:
Download and install Petalinux 2019.1 from the Xilinx website
Download ZCU102 BSP 2019.1 from the Xilinx website
Create a project: petalinux-create -t project -s xilinx-zcu102-v2019.1-final.bsp
Unzip the PREEMPT_RT patch http://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19-rt1.patch.gz onto the project-spec/meta-user/recipes-kernel/linux/linux-xlnx/ directory
Edit the file project-spec/meta-user/recipes-kernel/linux/linux-xlnx_%.bbappend and append
SRC_URI_append = " file://patch-4.19-rt1.patch"
Make sure the priority for the meta-user layer is 7 in the project file project-spec/meta-user/conf/layer.conf
Configure th project: petalinux-config
Configure the kernel enabling full preemptive support: petalinux-config -c kernel
Build: petalinux-build
Generate the BOOT.BIN file: petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --u-boot images/linux/u-boot.elf
Upvotes: 1
Reputation: 1448
Upvotes: 1