Venus OS Raspberry Pi linux build configuration

When Victron builds the linux kernel for Venus OS Raspberry Pi distribution how is the configuration step done. I will be building an external kernel module and need to build the kernel and would like to replicate the kernel config. Alternatively, for a given kernel build do you have the Module.symvers file available and/or the .config file?

Do you want to build it on the rpi or cross compile it? And which rpi?

I’m cross compiling for rpi 4. I’ll be building a module for the 6.12.25 kernel. I have built modules for the older 5.10.110 kernel about 4 years ago and may need to rebuild for that older kernel as well.

The rpi4 uses this meta-victronenergy/meta-bsp/recipes-kernel/linux/linux-raspberrypi_5.10.110-rpi-venus-8.bb at master · victronenergy/meta-victronenergy · GitHub.
Note: there are some patches in there to make the compiler happy.

Which gets its sources from GitHub - victronenergy/linux at rpi-venus-5.10.110 · GitHub.

An SDK is available here, Index of /feeds/venus/release/sdk, you need the arm version for a rpi4 and a linux host, or virtual, or perhaps Windows can run that nowadays.

Thanks, I’ll check out those links you posted.

I was able to build for raspberrypi 4 and have the .config for the 5.10.110 kernel. What I can’t figure out is how the build process picks the linux-raspberrypi_5.10.110-rpi-venus-8.bb recipe over any of the other kernel versions. I built with the command: make raspberrypi4-venus-image. Ideally I would like to have the build create the 6.12.25 kernel.

It is this line meta-victronenergy/meta-bsp/conf/machine/include/rpi-legacy.inc at master · victronenergy/meta-victronenergy · GitHub doing that.

1 Like