Skip to content

Add support for multi kernel Raspberry Pi machines

Andrei Gherzan yocto 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v15 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7sdcard_image-rpi.bbclass: Move SDIMG_KERNELIMAGE definitions to their machinesclasses/sdcard_image-rpi.bbclass conf/machine/raspberrypi.conf conf/machine/raspberrypi2.conf +1 more+6 -120 replies
2/7raspberrypi0-2w.conf: Include the RPi 0-2w dtb for all 32-bit machinesconf/machine/include/rpi-base.inc conf/machine/raspberrypi0-2w.conf+1 -40 replies
3/7rpi-base.inc: Split IMAGE_BOOT_FILES for kernel imageconf/machine/include/rpi-base.inc+6 -30 replies
4/7Add support for a ARMv7 machine supporting multiple Raspberry Pi boardsconf/machine/include/rpi-default-versions.inc conf/machine/raspberrypi-armv7.conf docs/layer-contents.md +5 more+94 -00 replies
5/7ci: Add raspberrypi-armv7 to the build matrix.github/workflows/yocto-builds.yml+1 -00 replies
6/7Add support for a ARMv8 machine supporting multiple Raspberry Pi boardsconf/machine/raspberrypi-armv8.conf docs/layer-contents.md recipes-kernel/linux/linux-raspberrypi.inc+50 -00 replies
7/7ci: Add raspberrypi-armv8 to the build matrix.github/workflows/yocto-builds.yml+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [meta-raspberrypi][PATCH v2 0/7] Add support for multi kernel Raspberry Pi machines

From: Andrei Gherzan <[email protected]>

PATCH v2:

* the patches (depmod fixes) below were merged in oe-core/master (FYI)
* added support for a similar (but simpler) armv8 machine - with CI

PATCH v1:

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 (7):
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 ARMv7 machine supporting multiple Raspberry Pi
boards
ci: Add raspberrypi-armv7 to the build matrix
Add support for a ARMv8 machine supporting multiple Raspberry Pi
boards
ci: Add raspberrypi-armv8 to the build matrix

 .github/workflows/yocto-builds.yml            |  2 +
 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-armv8.conf           | 43 +++++++++++++++++++
 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                        | 22 ++++++++++
 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    |  2 +
 .../linux/linux-raspberrypi_5.15.bb           | 12 ++++++
 16 files changed, 159 insertions(+), 19 deletions(-)
 create mode 100644 conf/machine/raspberrypi-armv7.conf
 create mode 100644 conf/machine/raspberrypi-armv8.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
Signature · 1 line
2.25.1