[meta-raspberrypi][PATCH 0/5] Add support for a multi kernel Raspberry Pi machine


Andrei Gherzan
 

From: Andrei Gherzan <andrei.gherzan@...>

The new raspberrypi-armv7.conf aims at supporting all the armv7
Raspberry Pi boards.

This initial support was tested on:

- Raspberry Pi 4 Model B
- Raspberry Pi 3 Model B
- Raspberry Pi 0 2 WiFi

Tests:

- Boot
- WiFi
- BT
- Modules load

There is a known limitation of the fact that the core doesn't handle
image depmod for multiple kernels. A set of fixes were proposed for
that:

https://lists.openembedded.org/g/openembedded-core/message/170505
https://lists.openembedded.org/g/openembedded-core/message/170506
https://lists.openembedded.org/g/openembedded-core/message/170507
https://lists.openembedded.org/g/openembedded-core/message/170508

Without these (or similar patches) patches, an additional step is
needed on any board but Raspberry Pi 4: for example running `depmod -a`
at first boot.

Andrei Gherzan (5):
sdcard_image-rpi.bbclass: Move SDIMG_KERNELIMAGE definitions to their
machines
raspberrypi0-2w.conf: Include the RPi 0-2w dtb for all 32-bit machines
rpi-base.inc: Split IMAGE_BOOT_FILES for kernel image
Add support for a multi kernel Raspberry Pi machine
ci: Add raspberrypi-armv7 to the build matrix

.github/workflows/yocto-builds.yml | 1 +
classes/sdcard_image-rpi.bbclass | 5 ---
conf/machine/include/rpi-base.inc | 10 +++--
conf/machine/include/rpi-default-versions.inc | 1 +
conf/machine/raspberrypi-armv7.conf | 39 +++++++++++++++++++
conf/machine/raspberrypi.conf | 4 +-
conf/machine/raspberrypi0-2w.conf | 4 --
conf/machine/raspberrypi2.conf | 2 +-
conf/machine/raspberrypi3-64.conf | 7 ++--
docs/layer-contents.md | 16 ++++++++
recipes-kernel/linux/linux-raspberrypi-v7.inc | 13 +++++++
.../linux/linux-raspberrypi-v7_5.10.bb | 6 +++
.../linux/linux-raspberrypi-v7_5.15.bb | 6 +++
recipes-kernel/linux/linux-raspberrypi.inc | 1 +
.../linux/linux-raspberrypi_5.15.bb | 12 ++++++
15 files changed, 108 insertions(+), 19 deletions(-)
create mode 100644 conf/machine/raspberrypi-armv7.conf
create mode 100644 recipes-kernel/linux/linux-raspberrypi-v7.inc
create mode 100644 recipes-kernel/linux/linux-raspberrypi-v7_5.10.bb
create mode 100644 recipes-kernel/linux/linux-raspberrypi-v7_5.15.bb

--
2.25.1

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.