Following on from the previous posts with AK, this official Raspberry documentation gives some guidance on how to replace an existing kernel
https://www.raspberrypi.com/documentatio...ernel.html
Rather than overwrite the existing kernel, used the following:
PHP Code:
sudo mkdir /boot/firmware/so
sudo mkdir /boot/firmware/so/overlays-so
*
* the following files from a make
*
sudo cp arch/arm64/boot/dts/broadcom/*.dtb /boot/firmware/so/
sudo cp arch/arm64/boot/dts/overlays/*.dtb* /boot/firmware/so/overlays-so/
sudo cp arch/arm64/boot/dts/overlays/README /boot/firmware/so/overlays-so/
sudo cp arch/arm64/boot/Image.gz /boot/firmware/kernel-so.img
sudo nano /boot/firmware/config.txt * to add the following
os_prefix=so/
overlay_prefix=overlays-so/
kernel=/kernel-so.img
To copy the real time kernel to another instance, will need to tar the above make folders and files, and the folder
/usr/lib/modules/6.6.35-rt34-so+. Replace "6.6.35-rt34-so+" with the name of the RT kernel.