remusmp / rpi-rt-kernel

56 stars 34 forks source link

Update kernel version to fix the build #1

Closed PeterMalkin closed 2 years ago

PeterMalkin commented 2 years ago

Thank you.

As an aside, you may also find this repo useful: https://github.com/google/aiyprojects-raspbian-tools It launches qemu and attempts to build the sdcard image natively, instead of cross compiling. It does not build the kernel today. But maybe I spend some time later to add it.

remusmp commented 2 years ago

Thank you.

As an aside, you may also find this repo useful: https://github.com/google/aiyprojects-raspbian-tools It launches qemu and attempts to build the sdcard image natively, instead of cross compiling. It does not build the kernel today. But maybe I spend some time later to add it.

Thanks! Just some details and I will add them to the readme file too. I am actually following the official guide from raspbian for cross compiling the kernel and then installing it into the official raspbian lite image: https://www.raspberrypi.com/documentation/computers/linux_kernel.html

Regarding the rt patch version: I see that older versions are moved to the older subfolder (e.g. https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/5.10/older/) once a new patch is released. So I am thinking adding some arguments to the build:

  1. Kernel version (should default to latest if missing)
  2. RT patch version (should default to latest if missing)

I will implement those arguments soon otherwise the build will eventually fail again.

PeterMalkin commented 2 years ago

Thank you!

Also, raspberry pi zero W is armv6, and requires a different toolchain. I think I have it working here, not sure if it is useful for you though: https://github.com/PeterMalkin/rpi-rt-kernel/tree/rpi-zero