# I'm working up a new DevTerm CM3 image

**URL:** <https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549>\
**Category:** DevTerm\
**Tags:** feedback, tinkering\
**Created:** [February 28, 2024, 6:03am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549 "2024-02-28T06:03:19Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [February 28, 2024, 6:03am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/1 "2024-02-28T06:03:19Z")

</div>

I’m working up a new DevTerm CM3 image, what would yall like in a minimal starting point? At the moment I’ve got a few major things:

1. @foriequal0 's keyboard/trackball firmware
2. lightdm greeter with a session selector
3. minimal gui program footprint. ie, no games or IDEs like the existing one
4. i3 window manager with compton compositor

Along with a bunch of other little stuff I didn’t keep good enough track of on my first pass. But what would be key to a STARTING image for you. ie, something you would use as a base for your own usecases?

---

<div class="post-metadata">

**Author:** ![Nomine\_Vacans](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/nomine_vacans/32/4622_2.png) [@Nomine\_Vacans](https://forum.clockworkpi.com/u/Nomine_Vacans)\
**Post date:** [February 28, 2024, 9:22am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/2 "2024-02-28T09:22:27Z")

</div>

the printer drivers would be cool.  
I’d personally go for openbox + tint2 because it doesn’t get much lighter than that,

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [February 28, 2024, 10:14pm UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/3 "2024-02-28T22:14:24Z")

</div>

probably a bit easier for most people to get started with openbox than i3 too, and I think it also supports compton, etc. I was going to include all the og drivers, or did you mean the fancy kernel driver?

I’m also hoping someone has a fix for the display offset on rpi3. I see a fix for one of the A modules, but that’s it so far.

> [@A04 screen display vertical offset](https://forum.clockworkpi.com/t/a04-screen-display-vertical-offset/7829):
>
> At first sight, the very top part of the screen is a bit weird to me, but I don’t know why. (maybe due to the icon of chromium is not full circle joy) After some fiddling on the first day with my A04 devterm, I noticed that the very top of the screen is actually flipped to the very bottom of the display. (may be just 1/2 pixel lines) Carefully, you can see in the big red box, the active window blue shadow shows on the bottom, even the mouse cursor tip… Gathered links from replies: [h…](https://forum.clockworkpi.com/t/screen-issues-was-display-damaged-from-factory-bad-luck-or-common-flaw/7344/4)

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [February 28, 2024, 10:29pm UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/4 "2024-02-28T22:29:24Z")

</div>

I think I’ve found the file I would need to edit, and it seems like the values for the CM3 effectively match the ones for the A04. But I’d still need to learn the kernel build pipeline to get an updated copy =/

Anyways, here are the two files for posterity.

[DevTerm CM3 Default Version](https://github.com/clockworkpi/DevTerm/blob/main/Code/kernel/devterm-4.19_v0.1.patch)

```auto
+static const struct drm_display_mode default_mode = {
+ .clock = 54465,
+ .hdisplay = 480,
+ .hsync_start = 480 + 150,
+ .hsync_end = 480 + 150 + 24,
+ .htotal = 480 + 150 + 24 + 40,
+ .vdisplay = 1280,
+ .vsync_start = 1280 + 12,
+ .vsync_end = 1280 + 12+ 6,
+ .vtotal = 1280 + 12 + 6 + 10,
+ .vrefresh = 60,
+ .flags = 0,
+};

```

[DevTerm A06 Custom Version](https://github.com/yatli/arch-linux-arm-clockworkpi-a06/blob/b9510a3ca2254c48b925d39ed030874c68116498/linux-clockworkpi-a06/0004-gpu-drm-panel-add-cwd686-driver.patch)

```auto
+static const struct drm_display_mode default_mode = {
+ .clock = 54465,
+ .hdisplay = 485,
+ .hsync_start = 485 + 150,
+ .hsync_end = 485 + 150 + 24,
+ .htotal = 485 + 150 + 24 + 40,
+ .vdisplay = 1280,
+ .vsync_start = 1280 + 12,
+ .vsync_end = 1280 + 12 + 6,
+ .vtotal = 1280 + 12 + 6 + 10,
+};

```

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [March 2, 2024, 8:17am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/5 "2024-03-02T08:17:27Z")

</div>

For anyone curious on where this stands:

- No luck yet on converting upstream raspbian to support the display, etc.
- I’ve got my DevTerm itself up to Debian 11 (bullseye)

If I can get the DevTerm all the way up to Debian 12 (bookwork) with everything working, I might investigate making a “fresh” image from that.

---

<div class="post-metadata">

**Author:** ![delcolux](https://avatars.discourse-cdn.com/v4/letter/d/49beb7/32.png) [@delcolux](https://forum.clockworkpi.com/u/delcolux)\
**Post date:** [March 3, 2024, 1:56am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/6 "2024-03-03T01:56:43Z")

</div>

Best of luck. I’d certainly love to use this if you’re successful.

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [March 3, 2024, 3:58am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/7 "2024-03-03T03:58:12Z")

</div>

We’re up to bookworm! I just need to fix the first launch wizard =D

This is not the full version mentioned in comment one yet, it’s just an upgrade of the stock image with libreoffice and all the IDEs stripped out, but still a big jump!

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [March 3, 2024, 4:42am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/8 "2024-03-03T04:42:03Z")

</div>

Anyone here know how `piwiz` changes the default user in a Raspberry Pi OS installation?

I’ve got everything booting up correctly and even changing the pi user to the user name you specify, but it keeps booting into `rpi-first-boot-wizard` instead of the new username.

Working up an alternative first boot wouldn’t be terrible, but I’d rather get it working with upstream.

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [March 5, 2024, 4:09am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/9 "2024-03-05T04:09:11Z")

</div>

Ok, the beat goes on.

I’ve got a conversion of raspios bookworm that seems to be working fine for everything\*. I’ve got the basics of script up on [github](https://github.com/bagelbyheart/makecm3devterm), but it’s not exactly follow along/ready to be run just yet. Now that I’ve had a successful build I need to script it all up.

Here are the key points if you want to take a swing:

- Add the clockworkpi repos
- Distupgrade everything
- Remove `linux-image-rpi-v8:arm64`
- Remove `linux-image-6.1.0-rpi8*`
- Copy the `libwiringPi` files to `/usr/lib/`
- `chroot_helper` will help setup the chroot and get you into it
- `chroot_history.out.sh` has the command run within the chroot

> _Everything in this case meaning everything that doesn’t rely on python2, so no fan control until that gets updated to python3_

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [March 7, 2024, 4:10am UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/10 "2024-03-07T04:10:01Z")

</div>

Ok, this can now just be run as a script. Download the package from github to a raspberrypi 3 already running a rasbian based OS. Grab a copy of the most recent 32bit Raspios and point `makecm3devterm.sh` at it. How long it takes depends on how much you put on the Pi.

- ~20 minutes if you download and decompress the `.img` on another computer first and don’t run it on the SD card
- ~35 minutes if you download it direct to the raspberry pi and don’t run it on the SD card
- ~45 minutes if you download it direct to the raspberry pi and run it on the SD card

---

<div class="post-metadata">

**Author:** ![bagelbyheart](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/bagelbyheart/32/9083_2.png) [@bagelbyheart](https://forum.clockworkpi.com/u/bagelbyheart)\
**Post date:** [March 7, 2024, 10:19pm UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/11 "2024-03-07T22:19:53Z")

</div>

Huh, some of my last pushes seem to have broken lightdm, I’m still not clear on why =/

---

<div class="post-metadata">

**Author:** ![edwin](https://avatars.discourse-cdn.com/v4/letter/e/73ab20/32.png) [@edwin](https://forum.clockworkpi.com/u/edwin)\
**Post date:** [October 6, 2024, 1:10pm UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/12 "2024-10-06T13:10:50Z")

</div>

Thanks for making this script. I’ve used on some recent releases. New updates overwrite the configuration though. When i do an _apt upgrade_ the screen on the devterm does not show the desktop any more. Do you know what package i should hold back in an upgrade to avoid this?

---

<div class="post-metadata">

**Author:** ![Greg\_E](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg\_E](https://forum.clockworkpi.com/u/Greg_E)\
**Post date:** [April 1, 2025, 1:43pm UTC](https://forum.clockworkpi.com/t/im-working-up-a-new-devterm-cm3-image/12549/13 "2025-04-01T13:43:22Z")

</div>

Can this be run on a Devterm cm3 that is running the Clockwork image?

The screen going black worries me, all of Rex’s images are the same for me and personally I’d prefer Parrot, but beggars can’t be choosers when it comes to Devterm.
