This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
comfilepi:compile_a_real-time_kernel:index [2023/05/12 10:41] COMFILE Technology [Deploy to the ComfilePi] |
comfilepi:compile_a_real-time_kernel:index [2023/11/22 08:57] (current) COMFILE Technology [Deploy to the ComfilePi] |
||
---|---|---|---|
Line 8: | Line 8: | ||
===== Kernel Versioning ===== | ===== Kernel Versioning ===== | ||
- | The Raspberry Pi Foundation maintains the kernel for Raspberry Pi-based products at https://github.com/raspberrypi/linux. The real-time kernel patches are maintained by a different group at https://cdn.kernel.org/pub/linux/kernel/projects/rt/. Compile errors and/or patch errors can arise if the 3 digit version number of the Raspberry Pi kernel and the real time patch do not match. The Raspberry Pi Foundation and the real-time patch maintainers do no coordinate their releases, so one must search the [[https://github.com/raspberrypi/linux/commits/rpi-5.10.y/Makefile|kernel's Makefile version history]] for a "Linux x.y.z" commit that matches the real-time kernel patch version, then use the "Merge remote-tracking..." commit that follows it. At the time of writing this, the latest such commit for the 5.10.y branch was here: | + | The Raspberry Pi Foundation maintains the kernel for Raspberry Pi-based products at https://github.com/raspberrypi/linux. The real-time kernel patches are maintained by a different group at https://cdn.kernel.org/pub/linux/kernel/projects/rt/. Compile errors and/or patch errors can arise if the 3 digit version number of the Raspberry Pi kernel and the real time patch do not match. The Raspberry Pi Foundation and the real-time patch maintainers do no coordinate their releases, so one must search the [[https://github.com/raspberrypi/linux/commits/rpi-6.1.y|kernel's commit history]] for a "Linux x.y.z" commit that matches the real-time kernel patch version, then use the "Merge remote-tracking..." commit that follows it. At the time of writing this, the latest such commit for the 5.10.y branch was here: |
{{ :comfilepi:compile_a_real-time_kernel:commit.png }} | {{ :comfilepi:compile_a_real-time_kernel:commit.png }} | ||
Line 99: | Line 99: | ||
scp rtkernel.tgz pi@192.168.0.5: | scp rtkernel.tgz pi@192.168.0.5: | ||
</code> | </code> | ||
+ | |||
+ | [[http://downloads.comfiletech.com/ComfilePi/realtime/rtkernel_6.1.26-rt8.tgz|Download rtkernel_6.1.26-rt8.tgz]] (MD5: cadb563fc3cc61e9a2a5fc571a08004a) | ||
On the ComfilePi: | On the ComfilePi: | ||
<code bash> | <code bash> | ||
- | # Unpack the files | + | # Install the kernel assets |
- | tar xzf rtkernel.tgz | + | sudo tar xzf rtkernel.tgz --directory / --keep-directory-symlink --no-same-owner |
- | + | ||
- | cd rtkernel/result | + | |
- | + | ||
- | # Copy files to the /boot directory | + | |
- | sudo cp fat32/zImage /boot/kernel7.img | + | |
- | sudo cp fat32/*.dtb /boot/ | + | |
- | sudo cp fat32/overlays/*.dtb* /boot/overlays/ | + | |
- | sudo cp fat32/overlays/README /boot/overlays/ | + | |
- | + | ||
- | # Copy files to the / directory | + | |
- | sudo cp -rd ext4/lib/* /lib | + | |
</code> | </code> | ||
Line 120: | Line 111: | ||
<code> | <code> | ||
$uname -a | $uname -a | ||
- | Linux raspberrypi 5.10.35-rt39-v7+ #1 SMP PREEMPT_RT Thu Jun 24 11:13:50 KST 2021 armv7l GNU/Linux | + | Linux raspberrypi 6.1.21-rt8-v8+ #1 SMP PREEMPT_RT Fri May 12 10:19:19 KST 2023 aarch64 GNU/Linux |
</code> | </code> | ||