RPi 4B kernel header mismatch

This is for ARMv8 based devices

RPi 4B kernel header mismatch

Postby rico15 » Fri Jul 19, 2024 5:09 pm

Hello - I'm new to this forum and fairly new to linux.

I have a mismatch between the kernel on my RPi4 and the latest repository version and cannot find instructions on how to resolve this.

I am asking this question in the context of a package/distro which I don't have control over, so am tracking their releases. I want to add some packages which are [currently] outside their release. One such package requires the headers.

[quote]
[alarm@[..] ~]$ uname -r
6.6.36-1-rpi
[alarm@[..] ~]$

[/quote]

[quote]

[alarm@[..] ~]$ pacman -Q linux-rpi-headers
error: package 'linux-rpi-headers' was not found
[alarm@[..] ~]$

[/quote]

[quote]

[alarm@[..] ~]$ pacman -Ss linux-rpi-headers
core/linux-rpi-headers 6.6.40-1
Headers and scripts for building modules for Linux kernel
[alarm@[..] ~]$

[/quote]

I cannot find in the RPi Documentation, or do not understand, how either to update the kernel for a non RaspberryOS distro, or to load the headers for linux 6.6.36-1-rpi.

I have looked at themake_clickable_callback(MAGIC_URL_FULL, ' ', 'http://alaa.ad24.cz/', '', ' class="postlink"') archive but unfortunately the headers for 6.6.36-1-rpi are missing. So I think my only option is to upgrade the kernel, but I can't find out how on the RPi. I'm aware it lives on /boot, but need the instructions how to get it there.

For the moment I have not done pacman -Syu (i) because the headers are not installed anyway and (ii) in case it makes things worse.

Can anybody help?

And a bonus would be how to keep kernel and headers aligned via DKMS in the future, if possible.

Tks
R
rico15
 
Posts: 5
Joined: Fri Jul 19, 2024 4:34 pm

Re: RPi 4B kernel header mismatch

Postby graysky » Fri Jul 19, 2024 5:44 pm

Arch (and Arch ARM) are rolling release distros. As such, repos update as new packages are built/available which is at a rapid pace. You should never install new packages (headers in your case) without updating your system to be in sync with contemporary packages. This situation is termed a "partial update" which is not supported.
make_clickable_callback(MAGIC_URL_FULL, '
', 'https://wiki.archlinux.org/title/System_maintenance#Partial_upgrades_are_unsupported', '', ' class="postlink"')

Long story short, first update:
pacman -Syu

then install new packages:
pacman -S foo bar
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: RPi 4B kernel header mismatch

Postby rico15 » Fri Jul 19, 2024 6:50 pm

OK well I was not completely surprised by that answer. At least it narrows my list of questions to one:

How do I upgrade the kernel to the version required by the latest packages ie

6.6.36-1-rpi > 6.6.40-1

as required for the latest headers?

Tks

R
rico15
 
Posts: 5
Joined: Fri Jul 19, 2024 4:34 pm

Re: RPi 4B kernel header mismatch

Postby graysky » Fri Jul 19, 2024 7:11 pm

make_clickable_callback(MAGIC_URL_FULL, '', 'https://wiki.archlinux.org/title/Pacman#Upgrading_packages', '', ' class="postlink"')
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: RPi 4B kernel header mismatch

Postby rico15 » Fri Jul 19, 2024 8:56 pm

@graysky - tks for the link, but I can already upgrade packages. I can't (OP) upgrade the kernel to match the latest packages. This is on the RPi4.

How to upgrade the kernel to 6.6.36-rpi?
R
rico15
 
Posts: 5
Joined: Fri Jul 19, 2024 4:34 pm

Re: RPi 4B kernel header mismatch

Postby rico15 » Fri Jul 19, 2024 8:58 pm

Sorry - misspoke. Kernel is currently 6.6.36, upgrade required to 6.6.40-1[rpi?]

R
rico15
 
Posts: 5
Joined: Fri Jul 19, 2024 4:34 pm

Re: RPi 4B kernel header mismatch

Postby rico15 » Fri Jul 19, 2024 9:43 pm

Further browsing in the Forum reveals this :
make_clickable_callback(MAGIC_URL_LOCAL, '
', 'https://archlinuxarm.org/forum', 'viewtopic.php?f=60&t=14218&p=62894&hilit=raspberry+pi+4B+kernel+upgrade#p62894', ' class="postlink-local"')

Where are the instructions referred to please?

Tks
R
rico15
 
Posts: 5
Joined: Fri Jul 19, 2024 4:34 pm

Re: RPi 4B kernel header mismatch

Postby graysky » Sat Jul 20, 2024 11:22 am

post the output of:
pacman -Ss x-rpi
graysky
Developer
 
Posts: 1870
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000


Return to ARMv8 Devices

Who is online

Users browsing this forum: No registered users and 30 guests