I have tailored a script to build an Ubuntu image for the uConsole, CM4 variant. I made it using the kernel provided by @ak-rex, which already does incorporate the drivers for it.
But theorically you just need to compile a kernel with the drivers provided by Clockworkpi, or use ak-rex kernel, if it suits your distro. Then you install the kernel packages in a distro that already supports CM4.
You can check the build script to get an idea of how to do so.
Perhaps you gpio package is outdated. Generate a new one with the script provided in this thread.
Try to disable swap and zram if enabled, your SD card may be trashing.
Try a different desktop environment than Unity. Supposedly lightweight environments as LXDE, XFCE4, etc can help. Personally, I use Gnome.
Try to recompile the kernel. The kernel provided in the distro is compiled with the default settings of ak-rex. I found some tweaks could be done, as:
enable CPU frequency ladder
enable light power comsumption (for GPU, CPU, PCI, …)
enable suspend to disk
optimice work queue for low power devices (is a menuconfig option)
etc.
I will release, soon, another version, of the same Ubuntu 22.04, with an updated kernel, and with the gpio package installed, this time configured aiming to enhance battery duration (which are my personal needs).
Also I have ordered a device that can operate as SDR and I hope I could compile some utilities for my distro.
Did anyone successfully build it? I used a GitHub project. The root user ran ./create_image.sh UBUNTU and ./create_image.sh ARMBIAN_NOBLE , but no image was successfully built.
I am currently using it, loving it and flexing it to my classmate. Though compared to the stock OS and Debian Bookworm, it is a little bit heavy and can be laggy sometimes, in most cases, it performs well.
I have bought 3 different SD cards for different distros and man, I have one for retro gaming, one for school work and one for experiments. I love this community!!!
I guess in Christmas holiday I’ll try and see if I am able to build one of these linux distro myself.
The link with the original Ubuntu image that the script works on has expired. I updated it in the script 4 days ago (you tried 11 days ago at least, when the download link of the ubuntu image that the script works on, was broken).
Just run git pull while being on the folder with my scripts and run them again.
FYI, just the Ubuntu image build works (not Debian nor Armbian). When in theory, just installing the kernel would make any image work in the uConsole, I had not time to test it properly, nor I am interested in other image than Ubuntu.
You’re welcome to venture in using my script to create the other images, and submit PR.
New build with Ubuntu 22.04.5 image. Also, a low power profile kernel.
Users that already has flashed the first image does not has to do anything, as the branch is the same 22.04. It is just for new users to start with a more updated install.
For everyone: I have compiled a low power profile kernel, whose sources and binary .deb files are in the release link. You all can install them, if you want to have a low power kernel, that fits better for the uConsole (as it is a portable device, it makes some little sacrifices but it makes the battery last longer).
You can just download the kernel .deb files and install them using: sudo dpkg -i linux-*.deb
Enjoy the image, remember that you can build your own, try to use my script for building other image than Ubuntu (you may find it does not work, but you can try to fix it!), try to build a kernel suitable for 24.04 with the uConsole drivers, … for the moment, I myself can conform with Ubuntu 22.04, as I was not intending to maintain any image, just I am willing to share mine own (that does not represent any particular extra effort ).