# I wrote a script to make CM4 images for the DevTerm

**URL:** <https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235>\
**Category:** DevTerm\
**Created:** [June 16, 2023, 12:20am UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235 "2023-06-16T00:20:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/davidga/32/7386_2.png) [@DavidGA](https://forum.clockworkpi.com/u/DavidGA)\
**Post date:** [June 16, 2023, 12:20am UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/1 "2023-06-16T00:20:02Z")

</div>

I wrote a script which takes the 64-bit Raspberry Pi OS Desktop image, and converts it into an image for the DevTerm CM4. Find it here:

> **[GitHub - DavidCWGA/makecm4devterm: Modifies Raspberry Pi OS 64-bit images to...](https://github.com/DavidCWGA/makecm4devterm)**
>
> Modifies Raspberry Pi OS 64-bit images to work on the Clockwork DevTerm CM4. - GitHub - DavidCWGA/makecm4devterm: Modifies Raspberry Pi OS 64-bit images to work on the Clockwork DevTerm CM4.

It basically does everything on the “Create DevTerm CM4 OS image from scratch” wiki page for you:

> **[Create DevTerm CM4 OS image from scratch](https://github.com/clockworkpi/DevTerm/wiki/Create-DevTerm-CM4-OS-image-from-scratch)**
>
> Contribute to clockworkpi/DevTerm development by creating an account on GitHub.

Hope it’s useful.

---

<div class="post-metadata">

**Author:** ![hkbarton](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/hkbarton/32/4505_2.png) [@hkbarton](https://forum.clockworkpi.com/u/hkbarton)\
**Post date:** [June 16, 2023, 7:05am UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/2 "2023-06-16T07:05:49Z")

</div>

Doesn’t original 64-bit Raspberry Pi OS Desktop image work for CM4?

---

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/davidga/32/7386_2.png) [@DavidGA](https://forum.clockworkpi.com/u/DavidGA)\
**Post date:** [June 16, 2023, 7:08am UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/3 "2023-06-16T07:08:35Z")

</div>

For CM4, yes. But for the DevTerm, without configuration the display will not show an image, amongst other things.

---

<div class="post-metadata">

**Author:** ![markatlnk](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@markatlnk](https://forum.clockworkpi.com/u/markatlnk)\
**Post date:** [June 16, 2023, 2:15pm UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/4 "2023-06-16T14:15:22Z")

</div>

I have a DevTerm with a CM3. I would like to run it in 64 bit mode as it supports that. What would it take to make that work?

---

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/davidga/32/7386_2.png) [@DavidGA](https://forum.clockworkpi.com/u/DavidGA)\
**Post date:** [June 16, 2023, 6:28pm UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/5 "2023-06-16T18:28:48Z")

</div>

The instructions for the CM3 are here:

> **[Create DevTerm CM3 OS image from scratch](https://github.com/clockworkpi/DevTerm/wiki/Create-DevTerm-CM3-OS-image-from-scratch)**
>
> Contribute to clockworkpi/DevTerm development by creating an account on GitHub.

And they look very similar, so my script might actually work for the CM3 as well. I don’t have a CM3, so if you’d like to test it, please feel free and let me know the results.

---

<div class="post-metadata">

**Author:** ![DavidGA](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/davidga/32/7386_2.png) [@DavidGA](https://forum.clockworkpi.com/u/DavidGA)\
**Post date:** [June 16, 2023, 6:38pm UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/6 "2023-06-16T18:38:35Z")

</div>

Looking again, you’ll probably have to change the package installation part. Replace the packages on the apt-get “install” line with these ones:

```auto
devterm-thermal-printer devterm-keyboard-firmware devterm-fan-temp-daemon-rpi devterm-thermal-printer-cups devterm-kernel-rpi devterm-audio-patch

```

---

<div class="post-metadata">

**Author:** ![markatlnk](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@markatlnk](https://forum.clockworkpi.com/u/markatlnk)\
**Post date:** [June 16, 2023, 7:21pm UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/7 "2023-06-16T19:21:37Z")

</div>

Thanks, I looked at it awhile back and that gives me a 32 bit version. I sort of wanted a 64 bit. Will likely wait as I have a few too many items in the fire at this point. I do have a uConsole on order as well with the R-01 processor. Concerned that after working with the Mango Pi, that it will be a bit slow. Everything is a trade off and I like the lower power consumption of the CM3 vs the CM4.

---

<div class="post-metadata">

**Author:** ![Valssu](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/valssu/32/8026_2.png) [@Valssu](https://forum.clockworkpi.com/u/Valssu)\
**Post date:** [June 24, 2023, 1:45pm UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/8 "2023-06-24T13:45:54Z")

</div>

Not an expert, but I wanna ask what is the huge difference between the 32bit and 64bit OS? I mean, although CM4 is powerful, but do we have to run some 64bit software?

---

<div class="post-metadata">

**Author:** ![markatlnk](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@markatlnk](https://forum.clockworkpi.com/u/markatlnk)\
**Post date:** [June 24, 2023, 2:25pm UTC](https://forum.clockworkpi.com/t/i-wrote-a-script-to-make-cm4-images-for-the-devterm/10235/9 "2023-06-24T14:25:16Z")

</div>

It really depends on the type of project, 64 bit modes run a bit faster on many of my programs. The down side is some programs take up a bit more space as pointers in 32 bit world are 4 bytes and they are 8 bytes in the 64 bit world. The CM3 processor is capable of 64 bit motes. It is the same processor as used on the Pi Zero 2 W and I have 64 bit running well on that. For me it is personal preference but I do understand many if not most would not notice much difference.
