🤖🚫 AI-free content. This post is 100% written by a human, as is everything on my blog. Enjoy!

Installing DietPi on an Odroid XU4 with eMMC, 2024 edition

January 6, 2024 in Devops

I’ve had the Odroid XU4 for over 8 years now, and its computing capacity is perfectly enough for a small home server. Two years ago, I have replaced the stock case and fan with a heavy aluminum case from KKSB, and with a slightly reduced top CPU frequency it runs at 40 C / 104 F. Very cool all around.

There’s just one problem, though. The stock OS is stuck on Ubuntu 20. This means that all software is gradually becoming incompatible. For example, I needed a fresh Python version for Home Assistant, but installing it was too complicated.

Fortunately, there are alternative Linux distributions that are compatible with the Odroid. One of them is DietPi - a distro centered on low footprint, both for the OS itself and for software from its “optimized” repository. Here’s my experience installing it.

What you’d need

My storage situation

Odroid can boot from a MicroSD or eMMC. The eMMC is preferred, so that’s what I have. However, I also have an SSD in a USB-SATA sleeve attached. That’s where I want to see the OS.

Sidenote: with the official Ubuntu image for Odroid, I copied the system to the SSD following this tutorial. But you won’t need to do it for DietPi.

Preparing the installation media

I followed the official DietPi guide, writing the installation image onto the eMMC.

IF IT DOESN’T BOOT, I’m not sure if this step is inevitable, but I somehow lost the bootloader on the eMMC, and had to recover it using this guide. In summary: you write the recovery image to an extra MicroSD card, then boot the Odroid from the SD card having the eMMC also connected and it does the recovery in a couple of minutes - fully unattended. Then I wrote the DietPi image to the eMMC again, and this time it booted.

Initial setup

As the DietPi guide suggests, you can indeed do the setup over SSH. Which means, if nothing goes wrong, you don’t need a keyboard+monitor.

There is a sequence of menus to go through, and you are done with the setup.

DietPi automatically installed itself onto the SSD for me. This is great!

Fixing boot directory location

Summary

DietPi is a great distribution to have on your Odroid. It’s modern and it has full support. The installation is not complicated, but you do need to work around a couple of issues.

Buy me a coffee Liked the post? Treat me to a coffee