PCI-e NVME on Raspberry Pi CM4
-
Using the newest firmware from RPi and after updating the kernel to the following:
CONFIG_BLK_DEV_NVME=y
CONFIG_NVMEM_RMEM=m
The CM4 is now able to boot directly from PCI-e NVME devices. This will be very helpful for small handheld device development going forward. I would recommend these updates and am glad to test out any new releases that make use of them to confirm that it is in working order.
Since RetroPie is built on RPOS, maybe this is simply a question of using a newer build.
-
RetroPie uses the default OS (RaspiOS) kernel packages. We only offer some input (gamepad) related modules that are built with
dkms
, but we don't compile/configure the kernel itself.If these kernel options are not present in the package provided by the distribution, you should request their inclusion to the RPT team that creates the packages.
EDIT: the options may be already enabled on the next LTS kernel version (5.15.y) , you can check the at https://github.com/raspberrypi/linux/
-
@mitu It is already active in the current RPOS kernel, so I guess it's just a matter of figuring out how to put together a build that works well on Bullseye. I'll look into it. Thanks!
-
@hotcribbage RetroPie doesn't yet support Bullseye, but it will at some point.
-
I am updating the topic to share that I actually was able to update the core Buster image to the latest kernel and both of these settings are in place. For any users that want to try NVME boot over PCI-e, I cloned the boot and root folders over to my NVME drive after doing a full update on eMMC (SD works just as well).
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.