reTerminal DM Bookworm update errors

I have been successfully running monthly updates on several reTerminal DMs running 64bit bookworm.

dpkg --print-architecture
arm64

This mornings upgrade I get the following errors:

Errors were encountered while processing:
linux-image-6.12.20+rpt-rpi-2712
linux-image-rpi-2712
linux-image-6.12.20+rpt-rpi-v8
linux-headers-6.12.20+rpt-rpi-2712
linux-headers-6.12.20+rpt-rpi-v8
linux-headers-rpi-2712
linux-image-rpi-v8
linux-headers-rpi-v8
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks,
Kris

1 Like

sudo rm -rf seeed-linux-dtoverlays/
sudo apt install git -y
git clone --depth 1 GitHub - Seeed-Studio/seeed-linux-dtoverlays: Device Tree Overlays for Seeed boards
cd seeed-linux-dtoverlays
sudo ./scripts/reTerminal.sh --device reTerminal-DM
sudo shutdown -r now

Hey I just ran into this issue as well, and I really appreciate this set of steps since it fixed things but I’m not sure I understand how, any insight on what the script did to fix things?

Hi there,

And Welcome here…

So, Absolutely! Let’s break down what that script does step by step, especially in the context of a Seeed Studio reTerminal-DM running a Debian-based Linux OS like Raspberry Pi OS:

:wrench: Full Script Breakdown:

sudo rm -rf seeed-linux-dtoverlays/
  • Removes any existing seeed-linux-dtoverlays directory (if previously cloned).
  • -r = recursive, -f = force delete.
  • This ensures a fresh clone in the next step.

sudo apt install git -y
  • Installs git (if it’s not already installed).
  • -y automatically confirms the installation prompt.

git clone --depth 1 https://github.com/Seeed-Studio/seeed-linux-dtoverlays.git
  • Clones the Seeed Studio’s device tree overlay repo, but only the latest commit (--depth 1) to save time/space.

cd seeed-linux-dtoverlays
  • Changes directory into the freshly cloned repo.

sudo ./scripts/reTerminal.sh --device reTerminal-DM
  • Runs the device setup script for the reTerminal-DM model.
  • This script applies:
    • GPIO configuration
    • Display overlays
    • I2C/SPI/ADC setups
    • Kernel modules
    • Any necessary dtoverlay= lines into /boot/config.txt
  • It essentially tells the OS how to use all the reTerminal-DM hardware correctly.

sudo shutdown -r now
  • Reboots the system immediately to apply changes.

:white_check_mark: Result:

After running this, your reTerminal-DM will:

  • Have correct GPIO overlays applied.
  • Load proper drivers/modules.
  • Recognize and use built-in peripherals like the touchscreen, buttons, sensors, etc.

Check out the WiKi on the reTerminal also lots of good content there.

HTH
GL :slight_smile: PJ :v:

1 Like

Sounds good, thank you! Should that script be run after every upgrade/update to keep the system in line? I’ve got one of these reterminals targeted by an ansible script to run regular updates on the os and pull system info. If I need to I can trigger the rreterminal.sh every now and then or would that be unnessicary?

Hi there,

Well, it should be fine, but I’m a " if it ain’t broke don’t fix it "
type a Technologists :grin:
If there’s a component or utility that needs updated I would however.

HTH
GL :slight_smile: PJ :v:

besides I don’t think it changes that often , YMMV :+1: