Jump to content

Odroid N2 ZFS header issue on Buster Kernel 5.6


Scritch

Recommended Posts

Armbianmonitor:

I downloaded the most recent armbian focal for odroidc2.

uname -a
Linux odroidc2 5.6.18-meson64 #20.05.4 SMP PREEMPT Mon Jun 15 01:50:20 CEST 2020 aarch64 aarch64 aarch64 GNU/Linux
 

However, linux headers are not available for this version: 

 

apt-cache search linux-headers-current | grep meson64
linux-headers-current-meson64 - Linux kernel headers for 5.6.15-meson64 on arm64
 

Also here, only 5.6.15 available: https://apt.armbian.com/pool/main/l/

 

I tried to simply use 5.6.15 headers by manually setting the following link:

lrwxrwxrwx 1 root root 37 Jul  4 21:00 /lib/modules/5.6.18-meson64/build -> /usr/src/linux-headers-5.6.15-meson64
 

Compliation succeeds, but the build is not accepted by kernel:

[    4.799633] rc_core: version magic '5.6.15-meson64 SMP preempt mod_unload aarch64' should be '5.6.18-meson64 SMP preempt mod_unload aarch64'
 

Please make 5.6.18 linux headers available.

Link to comment
Share on other sites

Thanks for the insight!

 

I see that https://beta.armbian.com/pool/main/l/ only has 5.6.19 and 5.7.x, but not 5.6.18.

Meaning, I cannot simply use the headers from here. I will have to switch the entire distro (and kernel) to nightly. So currently to a 5.7 version.

However, my main goal of the system is stability and I would like to avoid 5.7 which is in development status and other early adopter versions.

 

My drivers will have to be recompiled with every kernel update.

Is there a possibilty to stay on the main branch and get constantly headers which fit to the released kernel? (Not just on the current matter, but as a general strategy.)

Link to comment
Share on other sites

trying to install ZFS for external HD's on my Odroid N2 but it has a linux-header issue. Buster (desktop) 5.6.15.

 

odroid@Odroid-N2:~$ sudo apt install zfs-dkms zfsutils-linux zfs-initramfs
[sudo] password for odroid: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
zfs-dkms is already the newest version (0.7.12-2+deb10u2).
zfs-initramfs is already the newest version (0.7.12-2+deb10u2).
zfsutils-linux is already the newest version (0.7.12-2+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up zfsutils-linux (0.7.12-2+deb10u2) ...
zfs-import-scan.service is a disabled or a static unit, not starting it.
Job for zfs-mount.service failed because the control process exited with error code.
See "systemctl status zfs-mount.service" and "journalctl -xe" for details.
invoke-rc.d: initscript zfs-mount, action "start" failed.
● zfs-mount.service - Mount ZFS filesystems
   Loaded: loaded (/lib/systemd/system/zfs-mount.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-07-06 07:50:47 EDT; 12ms ago
     Docs: man:zfs(8)
  Process: 21538 ExecStart=/sbin/zfs mount -a (code=exited, status=1/FAILURE)
 Main PID: 21538 (code=exited, status=1/FAILURE)

Jul 06 07:50:47 Odroid-N2 systemd[1]: Starting Mount ZFS filesystems...
Jul 06 07:50:47 Odroid-N2 zfs[21538]: The ZFS modules are not loaded.
Jul 06 07:50:47 Odroid-N2 zfs[21538]: Try running '/sbin/modprobe zfs' as root to load them.
Jul 06 07:50:47 Odroid-N2 systemd[1]: zfs-mount.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 07:50:47 Odroid-N2 systemd[1]: zfs-mount.service: Failed with result 'exit-code'.
Jul 06 07:50:47 Odroid-N2 systemd[1]: Failed to start Mount ZFS filesystems.
dpkg: error processing package zfsutils-linux (--configure):
 installed zfsutils-linux package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of zfs-initramfs:
 zfs-initramfs depends on zfsutils-linux (>= 0.7.12-2+deb10u2); however:
  Package zfsutils-linux is not configured yet.

dpkg: error processing package zfs-initramfs (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 zfsutils-linux
 zfs-initramfs
E: Sub-process /usr/bin/dpkg returned an error code (1)

odroid@Odroid-N2:~$ sudo modprobe zfs
modprobe: FATAL: Module zfs not found in directory /lib/modules/5.6.15-meson64

odroid@Odroid-N2:~$ uname -r
5.6.15-meson64

 

Link to comment
Share on other sites

22 hours ago, Scritch said:

Is there a possibilty to stay on the main branch and get constantly headers which fit to the released kernel?


Possible / planned ... when we settle up our CI rearrangement ... which is getting extremely complicated and expensive to maintain. If you want better support, you are welcome to add your resources. 

 

With trunk we are already at 5.7.y while for pushing updates from a previous build system stable branch we have no maintainer(s), build (probably) fails ...

 

22 hours ago, Scritch said:

my main goal of the system is stability


Kernel 5.4.y was first kernel where this hardware become usable to some degree. With 5.6.y some features were fixed, with 5.7.y a bit more ... there are ofc some problems ... one annoying problem which we are sorting out ATM is that board sometimes doesn't come back after reboot. It stays powered off ... This problem was so far only in 5.7.y

Philosophy regarding "stability" is slightly different, until software for this particular hw matures. We are not there yet. So it usually doesn't really matter if upstream kernel is LTS or non LTS.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines