Compile ZFS on Linux 0.8.2 with Native Encryption on ARM64
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 also works great on other single-board computers, and I’ve successfully compiled and used ZFS on the Raspberry Pi.
These instructions will likely work on other architectures supported by ZFS on Linux, such as x86_64.
Install ZFS build requirements Use apt to install the packages needed to build ZFS 0.