RPI CM5 support with stock raspberry pi os

Hello! I was asked on reddit to write a small post here about my small project, maybe someone would find it useful.

Recently got a uConsole with a CM5 board. While looking into available OS options, it turned out that neither ClockworkPi’s nor stock Pi OS supports the device out of the box — so I decided to make a small project based on the stock image + DKMS for the drivers that aren’t included. And here it is.

The idea is to keep the kernel stock and updatable, with hardware support living in out-of-tree DKMS modules + device-tree overlays instead of a custom kernel. Nothing here is tied to Raspberry Pi OS specifically — it builds against the stock Raspberry Pi kernel, so the same approach should work on other Pi distros (Ubuntu, Debian, etc.). I’ve tested it on Raspberry Pi OS (Trixie); on other distros the installer would need small tweaks, since it currently assumes apt and RPi OS package/paths.

How to use it:

  1. Flash the latest Raspberry Pi OS with the Imager tool (set hostname, user/password and Wi-Fi in the Imager settings)

  2. SSH into the device

  3. Copy the project over (scp -r) and run ./install.sh

After a reboot you get a fully working device: display, backlight, keyboard/trackball, audio (with headphone auto-mute), volume control, battery reporting, and the power button.

Also it was tested that updating rex kernel to stock one + installing the drivers works too, so you don’t have to reflash your device.

Project: GitHub - yota9/uconsole-cm5: DKMS drivers for stock rpi OS support on clockwork uConsole with rpi CM5 · GitHub

Thank you!

6 Likes

Used this last night on a fresh uconsole build. Went extremely smooth. Thank you for your work!

1 Like

Will this work on CM4 as well?

>> Will this work on CM4 as well?

No, currently unfortunately not. The overlay files of CM5 are incompatible with CM4, and I don’t have CM4 board to write and test them. Maybe someone can do it, pull requests are velcomed :slight_smile:

Good news, recently PR was added to support ubuntu 26.04 with kernel 7.0 support!

Where? It’s not on Rex’s image site.

What do you mean? It has nothing to do with Rex’s image site, it is separate project, github link in first post

OK, my bad. How would I go about running Ubuntu 26.04 on uConsole? The RPi Imager doesn’t allow you to enter WiFi info when flashing Ubuntu.

No problem :slight_smile: Well I might assume you can try to use usb ethernet then :slight_smile: Or you might connect HDMI cable and usb keyboard for example, I assume it shall work without problems. Or as I know using /boot/firmware/user-data you might try to execute script right on boot placing it on SD card.

USB on the device will not work until the overlays and stuff are added.

@Rex I’ve asked the guy who’s made ubuntu support PR, he said he used usb keyboard + hdmi and it worked out for him.

Anyway it is still possible to make script autorun using boot features, although changes in script might be needed :slight_smile: PRs are always welcomed.

The USB ports on a stock uConsole need to be activated by the PMU using and overlay to work, that’s why with a stock RPi image the USB don’t work.

Making it auto setup everything should be trivial.