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.

Problem getting correct version of kernel headers

Featured Replies

Hi all, 

 

First place, sorry if it´s a very basic question, I was searching info and reading topics, but I did not found a solution for my problem.

I`m working with Linux version 5.4.29-sunxi

 

I´m trying to compile my own char device driver. I noticed that I forgot adding kernel-headers in my build, so I tried to add them via

 

apt install linux-headers-next-sunxi


After that, I can see a new directory 

 

/usr/src/linux-headers-4.19.62-sunxi


but if I´m not wrong, modules compiled with this headers won´t work in my kernel, cause headers version does not match with my kernel version.

 

So, could please someone give me a hint about getting correct header version, or if I´m completelly wrong?

 

Many thanks in advances

 

Grettings

 

Mariano

  • Author

Wow Werner, that was fast!

 

I´ll try it now, and let you know the result.

 

Many thanks!!!

  • Author

Werner, kernel header update worked like a charm. I tried both ways

 

  • armbian-config -> Software -> Headers_install
  • apt install linux-headers-current-sunxi

So, I´m wondering if there is a way to just install headers that match current target´s kernel version if kernel version is not the last stable.

 

In my case, after installing headers I had to upgrade kernel to 5.4.35, no problem at all, but I guess sometimes we might want to keep kernel version unchanged.

 

One more time, thank you very much!

 

14 minutes ago, mhc said:

if kernel version is not the last stable.


No, we don't have all older matched kernels and headers. 

 

We started to pay attention recently, after headers and DKMS process were improved ... and we are working on to improve CI processes. In case you have know-how and some time, you are welcome to help. We are drowning in work. https://armbian.atlassian.net/projects/AR/issues/AR-214

  • Author

Hi Igor, thank you very much for your answer.

 

I understand that you contribute by using time you could spend on other things, and I am completely grateful for that. 

 

I will help if I found something that " know how" from your link

 

Greetings

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.