So I have this working on bullseye by using the Armbian edge kernel (linux-image-edge-meson64, 5.17.5-meson64 in my case) with zfs from bullseye-backports. The important part was the new kernel headers I think, as the previous kernel (linux-image-current-meson64, 5.10.123-meson64) appears to be missing module.lds needed to build any out of tree module. I think the same problem would occur with jammy because the kernel package is the same.
This looks like it was fixed in January 2021 in https://github.com/armbian/build/pull/2545, but meson64 still has an unfixed 5.10 kernel as current in 22.05.3, while some other boards have 5.15 (and some have earlier versions) which has the fix, and so does the meson64 edge kernel 5.17.5.
==> UPDATE: I finally managed to fix the issue by moving away from current kernel and installing the edge one:
on armbian-config, install "edge" kernel (5.17.5-meson64)
install manually the kernel header (armbian-config only install "current" kernel header, i.e., 5.10.*): sudo apt install linux-headers-edge-meson64
sudo apt remove zfs-dkms
sudo apt install zfs-dkms
sudo apt install zfsutils-linux
Then I managed to recover my zfs pool with:
sudo zpool import -f mypool
sudo zpool upgrade mypool
Now it's working again! 🥰
It's me again. I have been busy since my last attempt to fix my ZFS issues, but now I found some time to start from zero:
grabbed the latest version from https://redirect.armbian.com/odroidhc4/Jammy_current,
installed on my SD card with Balena Etcher,
and recreated my system from zero.
I installed the kernel headers with armbian-config, as it was not activated by default, and then, I followed the same steps as described above in @Igor's post:
Then started apt upgrade:
While doing apt upgrade, I had 2 issues appeared, saying /etc/issue and /etc/issue.net were different from maintainers. I assume it's not a big deal, installed from the maintainer and continued:
Then it continued the upgrade without noticeable issue:
Then I tried to install zfs... and it doesn't work:
sudo apt install zfs-dkms
It starts by showing a message about licence incompatibility. I select 'OK' to continue... and then, it crashes!
It says "Unable to build an empty module":
What did I do wrong?!
I would be grateful if someone could help me to solve it. All my NAS data is bricked. 🥵
I don't understand why it's so difficult to have ZFS running on my ODROID HC4 (but it worked in the past with an older version) ... this raises another question: shall I move away from ZFS for peace of mind?