Jump to content

kernel headers for this kernel does not seem to be installed


hi-ko
Go to solution Solved by hi-ko,

Recommended Posts

Im running Armbian 24.2.1 jammy on odroidm1 with additional zfs volumes.

 

On update, sometimes I had to reinstall the zfs kernel module, but now I have the problem, that the system does not recognize the kernel headers:

 

sudo apt-get --reinstall install zfs-dkms
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 2,397 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://mirrors.dotsrc.org/armbian-apt jammy/jammy-utils arm64 zfs-dkms all 2.2.3-1 [2,397 kB]
Fetched 2,397 kB in 1s (3,567 kB/s)
Preconfiguring packages ...
(Reading database ... 72929 files and directories currently installed.)
Preparing to unpack .../zfs-dkms_2.2.3-1_all.deb ...
Deleting module zfs-2.2.3 completely from the DKMS tree.
Unpacking zfs-dkms (2.2.3-1) over (2.2.3-1) ...
Setting up zfs-dkms (2.2.3-1) ...
Loading new zfs-2.2.3 DKMS files...
Building for 6.1.12-rk3568-odroid
Module build for kernel 6.1.12-rk3568-odroid was skipped since the
kernel headers for this kernel does not seem to be installed.
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-6.1.12-rk3568-odroid
W: Possible missing firmware /lib/firmware/nvidia/tegra194/xusb.bin for built-in driver xhci_tegra
W: Possible missing firmware /lib/firmware/nvidia/tegra186/xusb.bin for built-in driver xhci_tegra
W: Possible missing firmware /lib/firmware/nvidia/tegra210/xusb.bin for built-in driver xhci_tegra
W: Possible missing firmware /lib/firmware/nvidia/tegra124/xusb.bin for built-in driver xhci_tegra
update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.1.12-rk3568-odroid
Image Name:   uInitrd
Created:      Thu Apr 25 11:27:48 2024
Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
Data Size:    27753116 Bytes = 27102.65 KiB = 26.47 MiB
Load Address: 00000000
Entry Point:  00000000
update-initramfs: Armbian: Symlinking /boot/uInitrd-6.1.12-rk3568-odroid to /boot/uInitrd
'/boot/uInitrd' -> 'uInitrd-6.1.12-rk3568-odroid'
update-initramfs: Armbian: done.

 

I already removed and reinstalled the headers via armbian-config > Headers_remove, Headers_install but without change.

 

apt-get list --installed |grep header

linux-headers-edge-rockchip64/jammy,now 24.2.1 arm64 [installed]

 

do I need to create some magic symlinks or parameters for apt-get to get the headers resolved since the kernel version is missing in the package?

Link to comment
Share on other sites

additional info: in armbian-config I see, that the kernel is frozen (I can't remembere to have that configured)

When I select "Defreeze", the dialog just returns and still offers "Defreeze".

 

On a odroidc2 I have similar issue with headers not regognized:

  • In armbian-config of the odroidc2 device the kernel was not frozen so I could update to the latest (6.7.4-edge-meson64)
  • installed headers:
    linux-headers-current-meson64/jammy,now 24.2.1 arm64 [installed]

    but `apt-get --reinstall install zfs-dkms` also returns

    Loading new zfs-2.2.3 DKMS files...
    Building for 6.7.4-edge-meson64
    Module build for kernel 6.7.4-edge-meson64 was skipped since the
    kernel headers for this kernel does not seem to be installed.

     

Link to comment
Share on other sites

1 hour ago, hi-ko said:

but `apt-get --reinstall install zfs-dkms` also returns


Did you reboot after installing headers?

 

I tried on beta software https://paste.armbian.com/ayilamofor and kernel 6.8.7 ... it works https://paste.armbian.com/aqumeheguf.yaml

 

1 hour ago, hi-ko said:
6.1.12-rk3568-odroid

 

I think this is a problem .... Odroid M1 was merged into rockchip64 kernel ... remove linux-*-edge-rk3568-odroid and install linux-*-edge-rockchip64 and try again. It must work.

 

Tested also on stable branch https://paste.armbian.com/efilumozaq.yaml

Link to comment
Share on other sites

  • Solution

Thanks @Igor for your help,
 

Zitat

Did you reboot after installing headers?

yes, I did, but now found out, that installed headers are: /usr/src/linux-headers-6.6.16-current-rockchip64

while kernel still was

Linux odroidm1 6.1.12-rk3568-odroid #23.02.2 SMP PREEMPT Sat Feb 18 00:05:38 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

I got my Frozen kernel in armbian-config somehow solved by updating firmware and rebooting several times.

Now kernel and headers are in sync again and zfs-module gets loaded!
I will need to reanimate my odroidc2, which I use as a standby for the odroidm1, since that device doesn't boot any more after reinstall latest kernel, but that's another story ...

 

Thanks!

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