Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

zfs module and kernel-headers

Featured Replies

Hi,

 

Has anyone tried compiling zfs? According to google it should work out of the box?

 

However, when I try to install, zfs dkms is saying that the module will not be compiled due to missing kernel headers. Fine, but where are the headers?

 

I'm using a fresh install from https://www.armbian.com/rockpro64/

 

armbian-config - Software - headers_install does nothing, installing linux-headers-current-rockchip64 installs 22.05.4, not 22.08.1 that I have, and "compiling headers", whatever that might be, fails 

 

how do I get a matching kernel and headers, any version?


 

root@rockpro64:~# dpkg -l | fgrep rockchip
ii  linux-dtb-current-rockchip64    22.08.1                                 arm64        Armbian Linux DTB, version 5.15.63-rockchip64 current
ii  linux-image-current-rockchip64  22.08.1                                 arm64        Linux kernel, armbian version 5.15.63-rockchip64 current



root@rockpro64:~# apt upgrade -y linux-headers-current-rockchip64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  linux-headers-current-rockchip64
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 12.1 MB of archives.
After this operation, 80.2 MB of additional disk space will be used.
Get:1 http://armbian.hosthatch.com/apt jammy/main arm64 linux-headers-current-rockchip64 arm64 22.05.4 [12.1 MB]
Fetched 12.1 MB in 2s (6,470 kB/s)
Selecting previously unselected package linux-headers-current-rockchip64.
(Reading database ... 42002 files and directories currently installed.)
Preparing to unpack .../linux-headers-current-rockchip64_22.05.4_arm64.deb ...
Unpacking linux-headers-current-rockchip64 (22.05.4) ...
Setting up linux-headers-current-rockchip64 (22.05.4) ...
Compiling headers - please wait ...
scripts/sign-file.c: In function ‘display_openssl_errors’:
scripts/sign-file.c:89:9: warning: ‘ERR_get_error_line’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
   89 |         while ((e = ERR_get_error_line(&file, &line))) {
      |         ^~~~~

 

  • Author

in the meantime, I was able to get a matching edge kernel and headers by switching to nightly, which gave me 5.19.8 but unfortunately that one does not give me HDMI output, so obviously not ideal.

 

zfs module also refuses to compile since the kernel appears to be too new.

 

Building initial module for 5.19.8-rockchip64
configure: error:
        *** None of the expected "PDE_DATA" interfaces were detected.
        *** This may be because your kernel version is newer than what is
        *** supported, or you are using a patched custom kernel with
        *** incompatible modifications.
        ***
        *** ZFS Version: zfs-2.0.3-9
        *** Compatible Kernels: 3.10 - 5.10
 

 

Any chance of stable kernel headers?

 

It actually says it needs 5.10, but current stable is 5.15, is there an archive of stable kernels and headers, maybe I'll need something even older?

  • Author

ok, happy to report latest headers are actually in there, I was just not looking hard enough :)

 

But, the kernel is still too new for debian 11 bullseye which has zfs 2.0.3, so in order to install zfs there you need to downgrade to the latest 5.10 kernel, i.e.

 

apt install linux-dtb-current-rockchip64=21.08.2 linux-headers-current-rockchip64=21.08.2 linux-image-current-rockchip64=21.08.2

apt install zfs-dkms zfs-zed zfsutils-linux

reboot

 

modprobe zfs

zpool create... or whatever

 

I have done only limited testing, but so far so good

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.