Aleksandar Ivanišević Posted September 9, 2022 Share Posted September 9, 2022 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))) { | ^~~~~ 0 Quote Link to comment Share on other sites More sharing options...
Werner Posted September 9, 2022 Share Posted September 9, 2022 Hm odd. You can install the correct headers the causal way via apt Never mind. Headers seem to be missing in repo or stuck in beta. Need to investigate. 0 Quote Link to comment Share on other sites More sharing options...
Aleksandar Ivanišević Posted September 14, 2022 Author Share Posted September 14, 2022 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? 0 Quote Link to comment Share on other sites More sharing options...
Aleksandar Ivanišević Posted September 14, 2022 Author Share Posted September 14, 2022 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.