Hi everyone,
I’m sharing a guide on how to create a custom Debian 13 “Trixie” image for the uConsole, using only the ClockworkPi APT repository.
Let’s assume the following:
- You’ve installed a server Debian-based distro (Bookworm or Trixie) onto an SD card using Raspberry Pi Imager.
- In Raspberry Pi Imager’s advanced settings, you set a hostname, created a user and password, and enabled SSH.
- You’ve booted the uConsole and have a way to run the following commands on it (either by logging in via
sshor by connecting an external keyboard and monitor).
Execute these commands:
wget -q -O- https://raw.githubusercontent.com/clockworkpi/apt/main/debian/KEY.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/clockworkpi.gpg
echo "deb [arch=arm64] https://raw.githubusercontent.com/clockworkpi/apt/main/bookworm stable main" | sudo tee -a /etc/apt/sources.list.d/clockworkpi.list
sudo apt update
sudo apt install uconsole-kernel-cm4-rpi clockworkpi-audio \
clockworkpi-audio-patch clockworkpi-audio-shutdown \
clockworkpi-cm4-kernel clockworkpi-cm-firmware
# Install optional packages
# apt search uconsole-*
# Clock work apt repo link: https://github.com/clockworkpi/apt/tree/main
Edit /boot/firmware/config.txt, This is what I’ve got:
[all]
dtparam=audio=on
auto_initramfs=1
max_framebuffers=2
disable_overscan=1
arm_boost=1
ignore_lcd=1
dtoverlay=audremap,pins_12_13
dtoverlay=dwc2,dr_mode=host
dtparam=ant2
dtparam=spi=on
[pi3]
#dtoverlay=clockworkpi-uconsole-cm3
dtoverlay=clockworkpi-devterm-cm3
dtoverlay=vc4-kms-v3d,cma-384
enable_uart=1
[pi4]
#dtoverlay=clockworkpi-uconsole
dtoverlay=clockworkpi-devterm
dtoverlay=vc4-kms-v3d-pi4,cma-384
dtparam=pciex1=off
enable_uart=1
[pi5]
#dtoverlay=clockworkpi-uconsole-cm5
dtoverlay=clockworkpi-devterm-cm5
dtoverlay=vc4-kms-v3d-pi5,cma-384
dtparam=pciex1=off
Reboot, you’re done. ![]()
Optional:
- Install a linux desktop with tasksel and aptitude:
#1) Common desktop tasks using tasksel:
sudo apt install tasksel
sudo tasksel #select open-ssh server, laptop (caps linux for a longer battery life), and a desktop.
#2) Common desktop tasks using aptitude
sudo apt install aptitude
sudo aptitude
# / Search (dialog box): try task-gnome-desktop, task-mate-desktop, task-xfce4-desktop, ...
# + Install
# _ Purge
Do you want also some suggestions about what to do now? I’ve got you covered!
Want to build a distro with your own patched kernel? I’ve got you covered, too!
Have a great day!