Installed from scratch, Armbian_22.08.1_Odroidhc4_jammy_current_5.10.139.img
apt update/upgrade
apt install zfs-dkms zfsutils-linux
Forgot the linux-headers.
Started armbian-config, selected "Software", error message appears: grep: invalid max count
Selected "Headers_install", again error message from grep. Headers not installed.
Installed headers with:
apt install linux-headers-current-meson64
then
dpkg-reconfigure zfs-dkms
Result:
Loading new zfs-2.1.4 DKMS files...
Building for 5.10.144-meson64
Building initial module for 5.10.144-meson64
configure: error:
*** Unable to build an empty module.
Error! Bad return status for module build on kernel: 5.10.144-meson64 (aarch64)
Consult /var/lib/dkms/zfs/2.1.4/build/make.log for more information.
root@odroidhc4:~# cat /var/lib/dkms/zfs/2.1.4/build/make.log
DKMS make.log for zfs-2.1.4 for kernel 5.10.144-meson64 (aarch64)
Wed Sep 28 12:44:00 PM CEST 2022
make: *** No targets specified and no makefile found. Stop.