User avatar
craigevil
Posts: 477
Joined: Wed Jan 27, 2021 5:22 am
Location: heaven

Re: Moving Linux Kernel to 6.1

Fri Mar 17, 2023 8:21 pm

dom wrote:
Fri Mar 17, 2023 6:30 pm
The 6.1 kernel is now available from apt. Thanks for testing.
Awesome! Thanks.
Raspberry PI 400 Raspberry Pi OS (Debian Sid) Kernel: 6.1.54-v8+ aarch64 DE: XFCE 4.18
Debian - "If you can't apt install something, it isn't useful or doesn't exist"

User avatar
AkulaMD
Posts: 241
Joined: Fri Jun 19, 2020 6:51 am

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 4:08 am

dom wrote:
Fri Mar 17, 2023 6:30 pm
The 6.1 kernel is now available from apt. Thanks for testing.
Updated mine a while ago. Thanks.
Raspberry Pi OS (32-bit) with desktop and recommended software
Raspberry Pi 4 Model B 8GB at stock speed (never overclock)

Never overclock your Pi.
Encourage optimization instead.

mitu
Posts: 62
Joined: Wed Nov 28, 2018 11:31 am

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 5:57 am

dom wrote:
Fri Mar 10, 2023 7:06 pm
The latest update changes a couple of defaults that may be significant:
1. Pi4 now defaults to preferring a 64-bit kernel when arm_64bit is not specified. You can use arm_64bit=0 to request the 32-bit kernel.

In general a switch to 64-bit kernel should be unnoticed. It works fine with a 32-bit OS.
It should improve performance of some kernel driver code.

As usual, report here if there are any issues from this change.
For an existing 32bit installation, wouldn't this break the ability to compile your own modules, since gcc cannot build 64bit modules ?
Leaving aside the myriad of script/build files which assume the current system architecture by inspecting uname -m and would fail in this scenario.

redvli
Posts: 1256
Joined: Thu Sep 03, 2020 8:09 am

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 7:25 am

mitu wrote:
Sat Mar 18, 2023 5:57 am
dom wrote:
Fri Mar 10, 2023 7:06 pm
The latest update changes a couple of defaults that may be significant:
1. Pi4 now defaults to preferring a 64-bit kernel when arm_64bit is not specified. You can use arm_64bit=0 to request the 32-bit kernel.

In general a switch to 64-bit kernel should be unnoticed. It works fine with a 32-bit OS.
It should improve performance of some kernel driver code.

As usual, report here if there are any issues from this change.
For an existing 32bit installation, wouldn't this break the ability to compile your own modules, since gcc cannot build 64bit modules ?
Leaving aside the myriad of script/build files which assume the current system architecture by inspecting uname -m and would fail in this scenario.
You can use arm_64bit=0 to request the 32-bit kernel. So after the upgrade, but before you reboot, edit /boot/config.txt to set the value.

I have used / use getconf LONG_BIT to determine if the SBC under maintenance is 64-kernel+32-userland, currently only for a mostly powered-off Pi3B. The rest is all 64-userland (if ARMv8). It costs some time to port, but you can run your 32-bit root-tree in a KVM on 64-bit or container or systemd-nspawn. Or cross-compile (32-gcc => 64-kernel files). Or re-think and remove/replace hardware that requires kernel compilation. I was and am glad at least that we can get rid of kernel7l.img now. Maybe you have memory issues (1GB Pi4).

User avatar
rpdom
Posts: 22361
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 8:48 am

mitu wrote:
Sat Mar 18, 2023 5:57 am
since gcc cannot build 64bit modules ?
Can't it? Why not?

Surely all you need is the appropriate cross-compiler and set the architecture type when compiling.
Unreadable squiggle

User avatar
dickon
Posts: 2455
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, in Tiffield

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 9:52 am

rpdom wrote:
Sat Mar 18, 2023 8:48 am
mitu wrote:
Sat Mar 18, 2023 5:57 am
since gcc cannot build 64bit modules ?
Can't it? Why not?

Surely all you need is the appropriate cross-compiler and set the architecture type when compiling.
32b userland /usr/bin/gcc won't be able to target aarch64.

Interesting point.
As it is apparently board policy to disallow any criticism of anything, as it appears to criticise something is to criticise all the users of that something, I will no longer be commenting in threads which are not directly relevant to my uses of the Pi.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5283
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 10:23 am

Code: Select all

 sudo apt install gcc-aarch64-linux-gnu
?

andrum99
Posts: 1904
Joined: Fri Jul 20, 2012 2:41 pm

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 11:57 am

.
Last edited by andrum99 on Sat Mar 18, 2023 10:58 pm, edited 1 time in total.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5283
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 12:00 pm

To expand on my earlier post a bit, after installing the ARM 32 -> 64-bit compiler toolchain:

Code: Select all

sudo apt install gcc-aarch64-linux-gnu
you just need to ensure that your kernel "make" lines include "ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-", e.g.

Code: Select all

make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbs
Watch out for the arm64/aarch64 naming confusion - AArch64 is what ARM call it, but you'll see both in the wild.

Alternatively, you can put them in your environment with:

Code: Select all

export ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
That way you don't need to change the make command, and you may save some typing. Just be aware that it may affect other builds you do.

Xesarni
Posts: 3
Joined: Mon Sep 30, 2019 6:27 pm

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 12:30 pm

I have an audio library on a USB stick. After upgrading to 6.1, I'm getting errors like this when using foobar2000 (Windows 10 22H2) to play audio files from that library (SMB share):

"Decoding failure at 1:51.993 (Unexpected network error)"

journalctl shows no errors. Switching from ksmbd to Samba didn't help to resolve this issue.

User avatar
dickon
Posts: 2455
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, in Tiffield

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 12:43 pm

PhilE wrote:
Sat Mar 18, 2023 10:23 am

Code: Select all

 sudo apt install gcc-aarch64-linux-gnu
?
Yes, you know that and I know that and we know how to sort out cross-compilation and whatnot, but the average user who doesn't do this sort of thing for a living likely won't and will come unstuck if /usr/bin/gcc won't compile the out-of-tree kernel module that they're relying on using the instructions they've always followed.

Don't get me wrong: I think it's by far the right thing to do, but then I've been running 64b kernels on these things since it's been possible and have advocated doing so around these parts ever since.
As it is apparently board policy to disallow any criticism of anything, as it appears to criticise something is to criticise all the users of that something, I will no longer be commenting in threads which are not directly relevant to my uses of the Pi.

redvli
Posts: 1256
Joined: Thu Sep 03, 2020 8:09 am

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 1:30 pm

dickon wrote:
Sat Mar 18, 2023 12:43 pm
Yes, you know that and I know that and we know how to sort out cross-compilation and whatnot, but the average user who doesn't do this sort of thing for a living likely won't and will come unstuck if /usr/bin/gcc won't compile the out-of-tree kernel module that they're relying on using the instructions they've always followed.
I think if you compile out-of-tree kernel modules then you are not an average user. That is why I wrote earlier: "Or re-think and remove/replace hardware that requires kernel compilation." Or choose another Linux distro maybe or other OS (FreeBSD if ZFS is important). Also this topic is in "Advanced users", started as 'testing'.

redvli
Posts: 1256
Joined: Thu Sep 03, 2020 8:09 am

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 1:37 pm

Xesarni wrote:
Sat Mar 18, 2023 12:30 pm
I have an audio library on a USB stick. After upgrading to 6.1, I'm getting errors like this when using foobar2000 (Windows 10 22H2) to play audio files from that library (SMB share):

"Decoding failure at 1:51.993 (Unexpected network error)"

journalctl shows no errors. Switching from ksmbd to Samba didn't help to resolve this issue.
This looks to me as standard failure analysis. From the mp3file on the USB-stick to network cables to this windows player. Start in the middle I would say; play the same mp3file not on windows but on some other computer/platform. etc .

User avatar
dickon
Posts: 2455
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, in Tiffield

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 2:02 pm

redvli wrote:
Sat Mar 18, 2023 1:30 pm
I think if you compile out-of-tree kernel modules then you are not an average user. That is why I wrote earlier: "Or re-think and remove/replace hardware that requires kernel compilation." Or choose another Linux distro maybe or other OS (FreeBSD if ZFS is important). Also this topic is in "Advanced users", started as 'testing'.
There are enough weird devices out there -- *plenty* of rtl8xxx wifi chips, each seeming to need its own OoT driver, for example -- that it's reasonably common to see people on these forums asking about them. This change will negatively affect people who are doing nothing different to what they've always done over the last few years on a kernel update, and they're going to be surprised by it. Yes, this topic is in 'advanced users', but this will be rolled out to ordinary mortals at some point in the not too distant.
As it is apparently board policy to disallow any criticism of anything, as it appears to criticise something is to criticise all the users of that something, I will no longer be commenting in threads which are not directly relevant to my uses of the Pi.

tvoverbeek
Posts: 114
Joined: Mon Feb 04, 2013 9:50 am
Location: Fieberbrunn, Austria

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 2:30 pm

Did a regular 'sudo apt update; sudo apt -y upgrade' today on a Pi3B+ and after reboot I got::

Code: Select all

Linux picam2-32 6.1.19-v7+ #1637 SMP Tue Mar 14 11:04:52 GMT 2023 armv7l
So I guess 6.1 is standard now.

lurk101
Posts: 2286
Joined: Mon Jan 27, 2020 2:35 pm
Location: Cumming, GA (US)

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 3:34 pm

tvoverbeek wrote:
Sat Mar 18, 2023 2:30 pm
Did a regular 'sudo apt update; sudo apt -y upgrade' today on a Pi3B+ and after reboot I got::

Code: Select all

Linux picam2-32 6.1.19-v7+ #1637 SMP Tue Mar 14 11:04:52 GMT 2023 armv7l
So I guess 6.1 is standard now.
Yes, seems so. Across the board.

Code: Select all

pi@pi4b:~ $ uname -a
Linux pi4b 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux

User avatar
bensimmo
Posts: 6288
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 3:57 pm

yes that is what they announced
viewtopic.php?t=344246&start=250#p2091188

PeaSea
Posts: 17
Joined: Mon Apr 02, 2018 3:31 pm

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 5:21 pm

It seems that support for changing the onboard leds using /sys/class/leds/led[01] has disappeared when using 6.1. This seems to be the case on 3B, 3B+ and 4B.

Not sure where to report this.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5283
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 5:25 pm

The names have changed to align with upstream, and to be more logical. They are called ACT and PWR.

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

Re: Moving Linux Kernel to 6.1

Sat Mar 18, 2023 6:35 pm

rpdom wrote:
Sat Mar 18, 2023 8:48 am
mitu wrote:
Sat Mar 18, 2023 5:57 am
since gcc cannot build 64bit modules ?
Can't it? Why not?

Surely all you need is the appropriate cross-compiler and set the architecture type when compiling.

build-kernel allows you to compile directly on a like-architecture Raspberry Pi or cross-compile on a dissimilar-architecture Raspberry Pi or other machine running a BASH compatible OS (such as x86 Debian, Ubuntu, etc) using a simple '--cross-compile' command line option.

PeaSea
Posts: 17
Joined: Mon Apr 02, 2018 3:31 pm

Re: Moving Linux Kernel to 6.1

Sun Mar 19, 2023 12:36 am

PhilE wrote:
Sat Mar 18, 2023 5:25 pm
The names have changed to align with upstream, and to be more logical. They are called ACT and PWR.
Thanks..

User avatar
dickon
Posts: 2455
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, in Tiffield

Re: Moving Linux Kernel to 6.1

Sun Mar 19, 2023 8:25 am

redvli wrote:
Sat Mar 18, 2023 1:30 pm
I think if you compile out-of-tree kernel modules then you are not an average user. That is why I wrote earlier: "Or re-think and remove/replace hardware that requires kernel compilation." Or choose another Linux distro maybe or other OS (FreeBSD if ZFS is important). Also this topic is in "Advanced users", started as 'testing'.
viewtopic.php?p=2091532#p2091532

That didn't take long.
As it is apparently board policy to disallow any criticism of anything, as it appears to criticise something is to criticise all the users of that something, I will no longer be commenting in threads which are not directly relevant to my uses of the Pi.

redvli
Posts: 1256
Joined: Thu Sep 03, 2020 8:09 am

Re: Moving Linux Kernel to 6.1

Sun Mar 19, 2023 8:29 am

dickon wrote:
Sat Mar 18, 2023 2:02 pm
There are enough weird devices out there -- *plenty* of rtl8xxx wifi chips, each seeming to need its own OoT driver, for example -- that it's reasonably common to see people on these forums asking about them. This change will negatively affect people who are doing nothing different to what they've always done over the last few years on a kernel update, and they're going to be surprised by it. Yes, this topic is in 'advanced users', but this will be rolled out to ordinary mortals at some point in the not too distant.
Those people rely on others, including you and me by posting on this forum, to get their stuff working. RealTek keeps dumping 'chips' on the market apparently without proper Linux kernel integration support. And not to forget the companies that solder some PCB around those chips. So should RPi engineers fix that while the Pi4 has onboard WiFi, paid for to Broadcom I assume and the Pi is cheap. Follow the money I would say.

User avatar
dickon
Posts: 2455
Joined: Sun Dec 09, 2012 3:54 pm
Location: Home, in Tiffield

Re: Moving Linux Kernel to 6.1

Sun Mar 19, 2023 9:06 am

redvli wrote:
Sun Mar 19, 2023 8:29 am
Those people rely on others, including you and me by posting on this forum, to get their stuff working. RealTek keeps dumping 'chips' on the market apparently without proper Linux kernel integration support. And not to forget the companies that solder some PCB around those chips. So should RPi engineers fix that while the Pi4 has onboard WiFi, paid for to Broadcom I assume and the Pi is cheap. Follow the money I would say.
That's completely beside the point. I picked that example because it's one I've personally come across, but this change affects more than just a few bits of odd hardware -- it affects *eveyrbody* who wants to build a kernel module for whatever reason on a Pi 4 with a 32b userland following instructions that they've potentially been using for years now.

And no, I don't expect RPL to fix anything. I was merely pointing it out.
As it is apparently board policy to disallow any criticism of anything, as it appears to criticise something is to criticise all the users of that something, I will no longer be commenting in threads which are not directly relevant to my uses of the Pi.

User avatar
bensimmo
Posts: 6288
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Moving Linux Kernel to 6.1

Sun Mar 19, 2023 11:12 am

Perhaps a RPF/L blog post announcing the jump in kernel version, what it brings and what changes it makes with advice and work arounds would have been nice so people could prep for it when it happens. Or report any problems...

You know telling people first. (pro-active warning)

or 6:30pm on a Friday and go home and see what happens by Monday?

Yes most wouldn't notice anything, a few will and have. Many probably not even updated.
It's all advertisement that RPi are doing something too.

Anyway all working or me and the ones I've updated so far.

Return to “Advanced users”