Skip to content

u0d7i/uc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 

Repository files navigation

uConsole stuff

The kit: clockworkPi uConsole Kit RPI-CM4 Lite

Targets

  • Recent minimal debian-based OS image
  • Recent kernel package
  • FS encryption (LUKS, preferable root, opportunistic home)

Recent debian-based OS image

Current low-hanging-fruit approach implies installing old kernel package into new OS image, which may lead to inconsistencies

wget -c https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2024-03-15/2024-03-15-raspios-bookworm-arm64-lite.img.xz
unxz -k 2024-03-15-raspios-bookworm-arm64-lite.img.xz # don't remove original archive
mv 2024-03-15-raspios-bookworm-arm64-lite.img uc-bookworm-arm64-lite.img
sudo losetup --show -f -P uc-bullseye-arm64-lite.img # assume /dev/loop0 below, parsed outpu in script
sudo mount /dev/loop0p2 /mnt/
sudo mount /dev/loop0p1 /mnt/boot/
sudo mount --bind /dev /mnt/dev/
sudo mount --bind /sys /mnt/sys/
sudo mount --bind /dev/pts /mnt/dev/pts/
sudo chroot /mnt # you are root in chroot after that, no sudo is needed
touch /boot/cmdline.txt # inc case it's missing, kernel package install breaks without it
curl -s https://raw.githubusercontent.com/clockworkpi/apt/main/debian/KEY.gpg > /etc/apt/trusted.gpg.d/clockworkpi.asc
echo "deb https://raw.githubusercontent.com/clockworkpi/apt/main/debian/ stable main" > /etc/apt/sources.list.d/clockworkpi.list
apt update
apt install -y uconsole-kernel-cm4-rpi
apt autoremove -y
apt clean
# cleanup
exit
sudo rm -f /mnt/root/.bash_history
sudo umount -R /mnt # recursive
sudo losetup -D /dev/loop0 # assume loop0 above, parse output in script
# burn sd card, assume /dev/sdb (BE SURE)
sudo dd if=uc-bookworm-arm64-lite.img of=/dev/sdb status=progress bs=4M && sync

Recent kernel package

See here for the .deb repack of the famous kernel by @yatli

Kernel patch for 6.6.y, courtesy of clockwork pi team, yatli and community (see here for the start). Most recent one is maintained by @ak-rex here, to generete patch you can do:

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

Resources:

External notes

HW mods and extensions

Parts and Accessories

  • Screen Protector (6K PRO) - (ali)
  • 2x M4 Lanyard Screw D Ring (ali)
  • M4 4mm black hexagon flat head screws (ali), or Ultra thin Super Low, or Silver
  • Micro SD Card Adapter Extender (ali)
  • EVQWJN007 Blackberry trackball (ali)

Notable links from clockworkpi community forum

About

uConsole stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages