Skip to content

Releases: kmously/ubuntu-20.04-odroidc2

ubuntu-20.04-odroidc2-1.0

12 May 00:34
Compare
Choose a tag to compare
Pre-release

Ubuntu 20.04 (Focal Fossa) for ODROID C2!

This is the Ubuntu arm64 userland with the Ubuntu Focal (v5.4) kernel and bootloader prepared specifically for the ODROID C2. The kernel is based on the most recent Ubuntu Focal Fossa kernel (Ubuntu-5.4.0-31.35).

Besides the different kernel, initramfs and bootloader, the only other change from the default arm64 image is the addition of a PPA to sources.list.d (to allow the image to receive future kernel updates using apt-get), a modified update-initramfs script (as the initramfs needs to be prepared differently for ODROID C2). The initramfs-tools package is also marked with "apt-mark hold" so it doesn't get overwritten.

I've been stress testing this -1001 kernel for about a week now and it seems rock-solid so far. Still, please consider this to be experimental software, and there are a bunch of known issues with it. I am not responsible for any damage that results from using this image.

Installation information:

  • This image is ready to be extracted and flashed to a micro SD card. The microSD needs to be 4GB or larger. Use 'xzcat' to extract the image and 'dd' to flash it to a micro SD card.
  • There is no need to manually resize the partitions after flashing the micro SD card. That will happen automatically on first boot.
  • No serial connection nor monitor are needed to connect. The OdROID C2 should automatically be ready for SSH access (but see "Known issues" below). You can SSH as 'root' with password 'ubuntu'. Remember to change the root password and delete the 'ubuntu' user if it's not needed
  • You can search for a new kernel and install it if available:
    apt-get update; apt-get search odroidc2

Known issues:

There's a ton of issues I'm sure. These are just the ones I noticed:

  • There appears to be an issue on first boot where the Ethernet interface doesn't come up or find an IP address. This only happens on first boot. I suggest inserting the microSD and booting the Odroid C2 normally the first time, waiting for about 10 minutes (so it finishes the initial boot, which includes a couple of timeouts waiting for services, as well as partition resizing), then simply powering it off then on again. Network access should be fine after that. (You can also reboot properly via serial console if you have serial access)
  • The kernel config is all wrong. Some programs that require specific kernel support (e.g. lxd) may not work until the kernel config is sorted out. This is also likely the cause of the "FAILED" services during boot (which prolong the boot time significantly), as well as some warnings/errors in the kernel log. I intend to fix these in future kernel updates.
  • USB ports don't work with mass storage. I don't know if other USB devices can work or not.
  • "reboot" sometimes fails, and leaves the board in a hanging state.
  • The initramfs change that I made was to the file /etc/kernel/postinst.d/initramfs-tools (I added the last 3 lines). I think this could be overwritten if the 'initramfs-tools' package is updated or re-installed (which would break any subsequent installations of kernels). For this reason, I marked the 'initramfs-tools' package with 'apt-mark hold' so it doesn't get updated. These 3 lines need to be included in a proper place (still need to figure out how and where to do that). I will try to fix it properly in a future update.

As this is an unofficial image, I cannot offer support or bugfixes for it. Still, feel free to let me know of issues that you encounter and I will do my best to resolve them.

I will try to keep the kernel in-sync with the main Ubuntu Focal Fossa kernel, which gets updated every 3 weeks. Be sure to check for updates.

This software is not officially provided nor endorsed by Canonical Ltd

A special thanks to the Armbian project. I used the Armbian C2 kernel config as a base for this kernel config. Without it I almost certainly would not have been able to provide this image.

md5sum of .img.xz file: a3d503a6f402cf29287a86d847fb366e