# Kernel modules for uConsole/CM4

**URL:** <https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689>\
**Category:** uConsole\
**Created:** [October 18, 2024, 1:28pm UTC](https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689 "2024-10-18T13:28:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![logoff](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@logoff](https://forum.clockworkpi.com/u/logoff)\
**Post date:** [October 18, 2024, 1:28pm UTC](https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689/1 "2024-10-18T13:28:03Z")

</div>

Hi there,

i am not really new in this forum. i was reading it for some time after i bought my uConsole. But now i have some questions. so i created an account… 🫣

i plan to use different distros on my uConsole. At first i want to replace the CM4-Lite with another CM4 (8GB RAM / 32GB flashmemory).

But I’ve some questions about the neccessary drivers. Which drivers are needed for

- display
- keyboard
- keybacklight
- trackball  
Are there some ready to use modules in the mainline-kernel or in the Repos (Debian, SuSE, Gentoo, Crux, Slackware, Kali/Parrot)  
I am not afraid to configure and compile my own kernel, but if there are some ready to use dkms modules i will use it 😉

next question, because my CM4-Lite is broken, i will replace it with a more powerful CM4 with flashmemory. does the uConsole support such a module?

thanks and greetings from austria

---

<div class="post-metadata">

**Author:** ![Rex](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/rex/32/16852_2.png) [@Rex](https://forum.clockworkpi.com/u/Rex)\
**Post date:** [October 18, 2024, 1:57pm UTC](https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689/2 "2024-10-18T13:57:04Z")

</div>

The uConsole will work with a CM4 with eMMC. (flash memory) You will need a separate carrier board to flash the image to the storage, the uConsole can’t do it. Most of the drivers and overlays are not mainlined, so you’ll need to add them and recompile.  
Here’s what’s needed: panel, panel backlight, clockwork overlays  
There are some other improvements to upstreamed drivers made by the community that are not upstreamed but you may want to add.

---

<div class="post-metadata">

**Author:** ![logoff](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@logoff](https://forum.clockworkpi.com/u/logoff)\
**Post date:** [October 18, 2024, 2:12pm UTC](https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689/3 "2024-10-18T14:12:58Z")

</div>

thank you for this fast answer!  
good, so i will order my spare cm4 without eMMC (i hoped for faster speed)  
I looked on my disassembled uConsole? I see four pins from keyboard module - i thinks its USB?

do you have some links for the overlays?

Thanks!

---

<div class="post-metadata">

**Author:** ![Rex](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/rex/32/16852_2.png) [@Rex](https://forum.clockworkpi.com/u/Rex)\
**Post date:** [October 18, 2024, 2:31pm UTC](https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689/4 "2024-10-18T14:31:14Z")

</div>

The keyboard is just USB on the pogo pins, no drivers needed.  
Here’s a link to my [GitHub](https://github.com/ak-rex/ClockworkPi-linux) that has the drivers and overlays needed, you should be able to find them on the first 2 commits.  
You’re not missing much with the eMMC on the CM4 it runs at USB2 speeds like the SD card reader so there’s no speed benefits from having it.

---

<div class="post-metadata">

**Author:** ![Caljank](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/caljank/32/9263_2.png) [@Caljank](https://forum.clockworkpi.com/u/Caljank)\
**Post date:** [October 19, 2024, 1:25am UTC](https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689/5 "2024-10-19T01:25:05Z")

</div>

I started my console on a cm4 with emmc. I really like it. I tried it with a lite cm4 once; the emmc version is a bit snappier. The trade off is using an ioboard to load the os to the emmc. Simply changing sd cards for oses would be handy. The sd card on the console won’t work if you have an emmc board as the sd lanes are used for emmc. @Rex bookworm os is really good. Stay away from chromium browser it’s a resource hog.

---

<div class="post-metadata">

**Author:** ![u0d7i](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/u0d7i/32/7014_2.png) [@u0d7i](https://forum.clockworkpi.com/u/u0d7i)\
**Post date:** [October 20, 2024, 6:06pm UTC](https://forum.clockworkpi.com/t/kernel-modules-for-uconsole-cm4/14689/6 "2024-10-20T18:06:52Z")

</div>

Thanks ro @Rex 's repo we can do as simple as something that:

```auto
git clone https://github.com/ak-rex/ClockworkPi-linux --branch rpi-6.6.y --single-branch uc-rpi-6.6.y
cd uc-rpi-6.6.y
git remote add upstream https://github.com/raspberrypi/linux.git --track rpi-6.6.y
git remote -v
git fetch upstream
git merge upstream/rpi-6.6.y -m "Merge upstream"
git diff upstream/rpi-6.6.y > ../0001-clockwork.patch

```

To get the patch you can try applying to upstream yourself (it normally works with no big issues).
