Quantcast
Viewing all articles
Browse latest Browse all 5346

Beginners • Encountering difficulties while installing the preempt-rt patch on Raspberry Pi Zero-W.

I am working on a project that requires running on an RTOS,.I need to apply the preempt-rt patch to my Linux system.I am using a Raspberry Pi Zero-W with the current Linux kernel version of "Linux pi 6.1.21-v8+ #1642" and the BCM2835 chip. Initially, I attempted to compile and patch the kernel source directly on the Raspberry Pi following some tutorials (https://blog.csdn.net/futuregazer_kind/ ... /132159066). However, this approach resulted in my SSH connection being severed. Since my Raspberry Pi is a headless board, I connect to it via SSH using Xshell for operations. Upon reconnection, there was no response, leading me to suspect issues like deadlock due to insufficient resources.

Subsequently, I came across a tutorial (https://lemariva.com/blog/2018/07/raspb ... nel-4-14-y) on cross-compiling and patching, which I implemented on my Ubuntu system. Despite completing the source code and patch compilation as per the tutorial, restarting the Raspberry Pi showed no change in the kernel. I am in need of assistance!

Possibly due to variations in versions and hardware from the tutorial, I encountered numerous issues. The source code I currently have is version 6.1.74-rt12. I've successfully completed the cross-compilation of the source code and also carried out the steps outlined in "Installing the Kernel Image, Modules & Device Tree Overlays." However, in the final step, setting "kernel=vmlinuz-4.14.52-rt34+" did not work. Changing it to "kernel=kernel.img" (where kernel.img is the newly compiled img file) also proved unsuccessful. Despite consulting multiple tutorials, none have provided a solution. I'm hoping for assistance from the community.

Statistics: Posted by cgy — Fri Jan 26, 2024 3:36 pm



Viewing all articles
Browse latest Browse all 5346

Trending Articles