PiCake
Posts: 3
Joined: Tue Sep 28, 2021 5:22 pm

[solved] Pi4 not booting newer kernel getting strange warning

Tue Sep 28, 2021 5:32 pm

Hi all,

Today I installed my Rpi 4 with the Lite image. Updated it and is fine.

After updating I was installing some apps with apt and then I got this message:

Code: Select all

Newer kernel available 

The currently running kernel version is 5.10.60-v7l+ which is not the expected kernel version 5.10.60-v8+.         

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting. 
It only is booting with 5.10.60-v7l+ after rebooting a couple of times, not with the newer 5.10.60-v8l+.

Code: Select all

ls -l /boot |grep kernel
-rwxr-xr-x 1 root root 6354920 Sep 28 17:52 kernel7.img
-rwxr-xr-x 1 root root 6780016 Sep 28 17:52 kernel7l.img
-rwxr-xr-x 1 root root 7906735 Sep 28 17:52 kernel8.img
-rwxr-xr-x 1 root root 6006192 Sep 28 17:52 kernel.img
It's booting the older:

Code: Select all

Linux myhost.local 5.10.63-v7l+ #1457 SMP Tue Sep 28 11:26:14 BST 2021 armv7l GNU/Linux. 
Have been using Pi's for years and always the kernels get updated just fine via apt and after reboot it loaded the new kernel without problem.

Did I break something?

// edit: fixed the format of my post, marked post as solved.
Last edited by PiCake on Wed Sep 29, 2021 6:52 am, edited 2 times in total.

RonR
Posts: 2422
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Pi4 not booting newer kernel getting strange warning

Tue Sep 28, 2021 10:55 pm

It appears you ran 'rpi-update' instead of 'apt update && apt full-upgrade'.

'rpi-update' gets you the latest unreleased and possibly untested kernel that is generally not for public use:

Code: Select all

Linux raspberrypi 5.10.63-v7l+ #1457 SMP Tue Sep 28 11:26:14 BST 2021 armv7l
The latest public release of Raspberry Pi OS from 'apt update && apt full-upgrade'.is:

Code: Select all

Linux raspberrypi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l
You can get back to the latest public release of Raspberry Pi OS with:

Code: Select all

apt update
apt --reinstall install raspberrypi-kernel raspberrypi-bootloader

Kernel versions ending in '-v7l+' are 32-bit versions (armv7l), while kernel versions ending in '-v8+' are 64-bit versions (aarch64).

Loading of 64-bit kernels is enabled by an 'arm_64bit=1' entry in /boot/config.txt.

trejan
Posts: 3708
Joined: Tue Jul 02, 2019 2:28 pm

Re: Pi4 not booting newer kernel getting strange warning

Wed Sep 29, 2021 12:47 am

You've installed needrestart which prints those messages. It doesn't understand the Pi kernel naming scheme since it sees kernel8.img exists and thinks it is newer than kernel7l.img. You need to change a needrestart setting. The most likely reason why you've got needrestart is because you've installed Docker.

PiCake
Posts: 3
Joined: Tue Sep 28, 2021 5:22 pm

Re: Pi4 not booting newer kernel getting strange warning

Wed Sep 29, 2021 6:51 am

RonR wrote:
Tue Sep 28, 2021 10:55 pm
It appears you ran 'rpi-update' instead of 'apt update && apt full-upgrade'.

'rpi-update' gets you the latest unreleased and possibly untested kernel that is generally not for public use:

Code: Select all

Linux raspberrypi 5.10.63-v7l+ #1457 SMP Tue Sep 28 11:26:14 BST 2021 armv7l
The latest public release of Raspberry Pi OS from 'apt update && apt full-upgrade'.is:

Code: Select all

Linux raspberrypi 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l
You can get back to the latest public release of Raspberry Pi OS with:

Code: Select all

apt update
apt --reinstall install raspberrypi-kernel raspberrypi-bootloader

Kernel versions ending in '-v7l+' are 32-bit versions (armv7l), while kernel versions ending in '-v8+' are 64-bit versions (aarch64).

Loading of 64-bit kernels is enabled by an 'arm_64bit=1' entry in /boot/config.txt.
Hi Ron,

Thanks for helping me out. I followed your suggestions and hopefully I am back on the the latest public release.

Are there any benefits off running a 64-bit version on your Pi-4? I have the 4GB version of the Pi-4 .

PiCake
Posts: 3
Joined: Tue Sep 28, 2021 5:22 pm

Re: Pi4 not booting newer kernel getting strange warning

Wed Sep 29, 2021 6:55 am

trejan wrote:
Wed Sep 29, 2021 12:47 am
You've installed needrestart which prints those messages. It doesn't understand the Pi kernel naming scheme since it sees kernel8.img exists and thinks it is newer than kernel7l.img. You need to change a needrestart setting. The most likely reason why you've got needrestart is because you've installed Docker.
Yes indeed I installed docker to experiment with containers and since then I got needrestart complaining to me about the other kernel.

Thanks for the link/help!

RonR
Posts: 2422
Joined: Tue Apr 12, 2016 10:29 pm
Location: US

Re: Pi4 not booting newer kernel getting strange warning

Wed Sep 29, 2021 8:00 am

PiCake wrote:
Wed Sep 29, 2021 6:51 am
Are there any benefits off running a 64-bit version on your Pi-4? I have the 4GB version of the Pi-4 .

The 64-bit version of Raspberry Pi OS is noticeably faster, and while still beta, is quite stable.

For true 64-bit support, you would need to start from scratch with a Raspberry Pi OS 64-bit image: Lite or Desktop

Return to “Troubleshooting”