google-coral / edgetpu

Coral issue tracker (and legacy Edge TPU API source)
https://coral.ai
Apache License 2.0
430 stars 125 forks source link

PREEMPT_RT Kernel Patch with Mendel OS? #796

Open nichite opened 1 year ago

nichite commented 1 year ago

Description

I'm hoping to run a C++ process on the Coral Dev Board Mini that I'd like to be inside a realtime thread. I was looking into installing the PREEMPT_RT kernel patch to facilitate this.

However, it looks like the version of the Linux kernel running on the latest version of Mendel OS is 4.19.125-mtk. From my understanding of the PREEMPT_RT documentation, to install the patch you need to match versions pretty precisely to successfully rebuild the kernel, but I don't see this kernel version supported: https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/ list:

[patch-4.19.115-rt50.patch.xz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.115-rt50.patch.xz)                       01-May-2020 20:06    163K
[patch-4.19.120-rt52.patch.gz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.120-rt52.patch.gz)                       06-May-2020 21:01    199K
[patch-4.19.120-rt52.patch.sign](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.120-rt52.patch.sign)                     06-May-2020 21:01     833
[patch-4.19.120-rt52.patch.xz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.120-rt52.patch.xz)                       06-May-2020 21:01    163K
[patch-4.19.124-rt53.patch.gz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.124-rt53.patch.gz)                       21-May-2020 20:46    199K
[patch-4.19.124-rt53.patch.sign](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.124-rt53.patch.sign)                     21-May-2020 20:46     833
[patch-4.19.124-rt53.patch.xz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.124-rt53.patch.xz)                       21-May-2020 20:46    163K
[patch-4.19.127-rt54.patch.gz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.127-rt54.patch.gz)                       08-Jun-2020 20:17    199K
[patch-4.19.127-rt54.patch.sign](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.127-rt54.patch.sign)                     08-Jun-2020 20:17     833
[patch-4.19.127-rt54.patch.xz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.127-rt54.patch.xz)                       08-Jun-2020 20:17    163K
[patch-4.19.127-rt55.patch.gz](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.127-rt55.patch.gz)                       22-Jun-2020 17:50    199K
[patch-4.19.127-rt55.patch.sign](https://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patch-4.19.127-rt55.patch.sign)                     22-Jun-2020 17:50     833

I see patches for 4.19.124 and 4.19.127 but not 4.19.125. Should I up/downgrade the Linux kernel or switch to an older version of Mendel OS for this? Has anyone had success getting the RT kernel patch applied, or should I switch to a different OS on the Dev Board Mini altogether? I was hoping to stay on Mendel OS to avoid any issues using the TPU.

Click to expand! ### Issue Type Support ### Operating System Mendel Linux ### Coral Device Dev Board Mini ### Other Devices _No response_ ### Programming Language C++ ### Relevant Log Output _No response_