This article will show how to compile ZFS on Linux 0.8.2 on Ubuntu 18.04 on ARM64, specifically the FriendlyElec NanoPi M4 single board computer, which has a four port SATA HAT available. It works great on other single board computers too, and I’ve successfully compiled and used ZFS on the Raspberry Pi. These instructions will most likely work on other architectures supported by ZFS on Linux, such as x86_64.