meta-raspberrypi icon indicating copy to clipboard operation
meta-raspberrypi copied to clipboard

scarthgap branch needs kernel rev bump to handle Compute Module 5

Open rmerrill-fw opened this issue 10 months ago • 1 comments

Hi,

For the past month or two I've been trying to get our yocto build to run on the CM5. I encountered two issues with this:

  1. On the 'full' version of the CM5 with eMMC, the kernel either panics or the eMMC device simply does not show up (issue #1411 looks similar to what I saw--I debugged further and there simply were no mmcblkX devices present). I have only tested with a single unit so I don't know if this is true for all of them or if it's tied to a particular eMMC part and maybe some variants of the CM5 work fine.
  2. The dtb files for the "lite" version of the CM5 (no eMMC) appear to be missing--these are bcm2712-rpi-cm5l-cm5io and bcm2712-rpi-cm5l-cm4io

It seems like I have fixed both issues by changing to a newer kernel. I'm not sure what this repo's policies are when it comes to bumping kernel versions, but as scarthgap is the latest LTS release, it would likely be a boon to many to be able to use it with the CM5.

Here's the diff:

index b4d9953..7aaf3bc 100644
--- a/recipes-kernel/linux/linux-raspberrypi_6.6.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_6.6.bb
@@ -1,8 +1,8 @@
-LINUX_VERSION ?= "6.6.22"
+LINUX_VERSION ?= "6.6.74"
 LINUX_RPI_BRANCH ?= "rpi-6.6.y"
 LINUX_RPI_KMETA_BRANCH ?= "yocto-6.6"

-SRCREV_machine = "c04af98514c26014a4f29ec87b3ece95626059bd"
+SRCREV_machine = "a18d9ced4965462cb7b3b4252ada440395105308"
 SRCREV_meta = "6a24861d6504575a4a9f92366285332d47c7e111"

 KMETA = "kernel-meta"

I have not done much testing nor do I know which would be the best kernel version to bump to--I simply went for the newest "stable" tag on the kernel repo in the 6.6.y line.

rmerrill-fw avatar Feb 05 '25 17:02 rmerrill-fw

As of commit e124d82 this appears to be fixed. Thank you!

rmerrill-fw avatar Mar 15 '25 18:03 rmerrill-fw