Closed ckyoog closed 4 months ago
I might start looking into this, no promise though. I might just use 5.10 with zfs anyway. I was having issues with building zfs-dkms on aarch64 in the first place, until I found some tools on github that were required to build it, but it was getting segfault on modprobe on my system with 5.15, 5.16, 5.18, 5.19 and 6.0.
I don't think I tried 5.10, it's worth a short if I can get the odroid hc4 to work. If not, I might just use the armbian kernel, build it on that, and then booting void using armbian's kernel (I did this before to get void bootstrapped, but I never got zfs-dkms on armbian to work either, also because of the missing aarch64-tools script).
I might be able to strace what the module is doing when modprobe
'd, but I'm not sure if I can actually fix it, I'm only a shell script kiddie.
does this still occur?
Let me fire up an ARM SBC and test a fresh Void install. I had to switch distros for ZFS on the HC4. I've got a pi 4 laying around, I should be back later today with what I find.
RPi4 - rpi-kernel-6.6.31_1. (+headers) with zfs-2.2.4 works just fine after modprobe zfs
.
[ 1242.347959] spl: loading out-of-tree module taints kernel.
[ 1242.372950] zfs: module license 'CDDL' taints kernel.
[ 1242.372964] Disabling lock debugging due to kernel taint
[ 1242.373028] zfs: module license taints kernel.
[ 1243.705772] ZFS: Loaded module v2.2.4-1, ZFS pool version 5000, ZFS filesystem version 5
I'll try testing on the odroid n2+ next, brb.
Odroid N2+ - linux-kernel-6.6.33_1 (+headers) with zfs-2.2.4_2 after modprobe zfs
[ 1988.029339] module spl: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
Reboot doesn't work at all, neither u-boot, nor petitboot can load the system. I can't see what's wrong with it, but I'm pretty sure it's getting broken after initramfs is loaded, init launched and runit core-service 02-kmods.sh is run. I don't get to a tty to troubleshoot. I'd say it's still broken.
Odroid N2+ (aarch64-musl)
uname -a
Linux n2p 6.6.33_1 #1 SMP PREEMPT_DYNAMIC Sun Jun 16 00:15:32 UTC 2024 aarch64 GNU/Linux
modprobe zfs
modprobe: ERROR: could not insert 'zfs': Exec format error
dmesg
[ 753.427461] module spl: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
[ 787.174996] module spl: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time
Again, if I reboot, it fails to boot (well, it boots, but no tty or any error messages show up on the screen). If I xchroot on another aarch64 system and uninstall zfs, without modifying anything, it boots right back up.
ok seems the segfault is gone
Is this a new report?
Yes
System Info
Void 6.1.4_1 aarch64 Unknown uptodate F
Package(s) Affected
zfs-2.1.7_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
modprobe zfs
inserts the zfs module with no problem.Actual behaviour
The following error displayed when run
modprobe zfs
Steps to reproduce
Additional info
It was no problem when I was using
linux-lts-5.10
.( just tried on kernel 5.15, same issue is found
)