-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After updating 32 bit Raspi OS Pi 4 is on 64bit kernel #1795
Comments
The switch to running a 64-bit kernel by default on Pi 4 is intentional. We believe it gives a better experience with few drawbacks. As you've found, you can revert to the 32-bit kernel by adding See https://forums.raspberrypi.com/viewtopic.php?p=2088935#p2088935 for more details. Which software needs to be run on a 32-bit kernel? |
Unifi Controller with MongoDB and Keepalived for example. |
What happens when you try to run them? Do you know the technical limitations? |
Hi Phil, It gets an bus error. I don't know the limitations. [2023-03-18T14:54:20,673] INFO db - DbServer stopped Keepalived is the default version from the repo: Mar 18 12:29:15 edg-rpi03 Keepalived[4765]: pid 13817 exited due to signal 7 (Bus error) II'm fine with this solution to go back to 32 bit right now. |
@edegroot-nl You must be using an old version of UniFi Controller! You can use current versions of UniFi Controller (7.3+ at least) with MongoDB 3.6+, which is available for aarch64. See this project for more info: https://github.com/ryansch/docker-unifi-rpi |
I'm using UniFi Network Application 7.3.83 stable released January 30th 2023, which is still supported with an older MongoDB version. The default version from the 32-bit repo. I will install the standard 64-bit version of RaspBerry PI OS later if everything runs without issues with aarch64 packages. |
The real problem is that people running production systems rely on updates to fix security problems, making unannounced changes of this kind which break things a real problem. Fortunately, there is a fallback, but it would have been better to let people know about the change and tell them how to stay on a 32 bit kernel. |
I am also not exited about this change. Espressif esp32 tools are only available for 32bit platforms and a usual apt upgrade just renders the setup unusable, unless this is fixed as mentioned above. |
It what way are the esp32 tools dependent on a 32-bit kernel? Very few 32-bit apps should care what mode the kernel is running in. |
After putting arm_64bit=0 into config.txt the whole system is unable to boot. I removed the statement and the Pi boots fine but PIVCCU3 is not able to work because of missing kernel modules which are not (and most likely will never be) compatible with a 64bit kernel. Any suggestions why the raspberry doesn't boot anymore? The kernel modules were automatically removed after apt-get upgrade. |
The esp32 tools are simply parsing $arch and if the result is aarch64, they won't work. |
PortAudio isn't working properly after this update. With adding arm_64bit=0 into config.txt our application (using portaudio) is working but without it will crash. |
Another example: GlusterFS fails with SIGBUS - it took me three nights to figure out what was wrong - luckily I noticed something was wrong before updating all nodes. Definitely not a great idea to push this update without a "breaking changes" notice. |
Doesn't this change mean that |
OK, it's returning the correct value for the kernel - but that doesn't seem super helpful in userspace. |
@edegroot-nl thanks a lot for posting the keepalived issue on here. I would've never figured out what broke it. |
uname asks about the kernel. It's the wrong tool for this job.
would be a better way to query if userland is 32 or 64 bit. |
@pelwell does the 32-bit OS contains all the userspace tools to build out-of-tree kernel modules in 64-bit? |
You should just need |
@pelwell thanks. There are also hints that matching kernel header package isn't available via apt-get. I see it on archive.raspberrypi.org, but is there an oversight somewhere on this - ie the arm64 kernel headers package isn't accessible via apt-get? |
@XECDesign are arm64 kernel headers available on 32-bit RPiOS through apt? |
Unfortunately not yet. raspberrypi/linux#5408 |
Until that package is available it may be possible to use rpi-source |
This change breaks installation scripts that rely on |
@ebaauw I think one of apt-* or deb-* family has a --archtecture query option. It still surprises me somewhat, how a 64-bit kernel get passed that, but the header package does not. |
Thank you @diehummel for flagging this thread - I've spent hours trying to work out why MeshCentral had stopped working properly on my Pi 4! (Ylianst/MeshAgent#183) Applied the |
for whatever reason RME ADI-2 Pro (soundcard) doesn't work without |
What does |
@6by9 :
64 bit:
|
@jsiverskog Seeing as both list snd-usb-audio as being loaded for the endpoints, that looks reasonable to me. I don't have one of these soundcards, so can't debug further. For more extensive debugging it would be worth opening a new issue (under Linux please) or forum thread to cover it. First things to check would be for error messages in the kernel log ( |
Is there a forced changed after a specific kernel version? sources are default. Any feedback? |
That presumably means your on Buster / Raspberry Pi OS (Legacy), as Bullseye is now on 6.1.21. This is a firmware change, not kernel, although the two are generally shipped together. |
Any solution to this booting issue? I am a user of Omada controller. After meeting arm_64bit=0, the Pi doesn't boot at all. Any workaround to this? |
@jefwu72, what image are you starting with? The first result I get when I look up "omada controller raspberry pi" says to start with the 64bit image. If you try to use that with |
im just wondering if people are still having this issue? my mesh agent is showing as 'Linux ARM 64 bit (glibc/2.24 NOKVM)' as well rather than the normal 'Linux ARM 64 bit' |
If you're doing a fresh install starting with 64 bit Raspbian, you're going to get packages (binaries & libraries) that are compiled for 64 bit as well as a 64 bit kernel. If you started with a 32 bit system and had your kernel switch from 32 bit to 64 bit, you'd then have 32 bit packages with a 64 bit kernel so you wouldn't run into 32 bit binary with 64 bit kernel issues. |
thanks @mbentley! just realised i posted in the wrong repo haha my bad! |
|
@mbentley Scratch that. Reverted arm_64bit=0 back to arm_64bit=1 and Pi will now boot, but still stuck with the original problem. Any other solutions? |
@Braum I hope you've realised that the 32-bit OS still comes with a 64-bit kernel, and that the unavailability of the 64-bit OS that you reported in the now-deleted comment should not be a blocker. |
If you check http://archive.raspberrypi.org/debian/dists you will notice the availability of aarch64 content files under the /debian/dists/bookworm Using https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/ as an example we can clearly see that such aarch64 content files are not available under the same directory /dists/bookworm/ However, these content files are present on /raspbian/multiarch/dists/bookworm/, making it possible to download arm64 To solve it, it requires to explicitly inform which arch is available under which directory if you need to use an external mirror, requiring us to add two entries on raspi.list deb [arch=arm64] http://mirrors.tuna.tsinghua.edu.cn/raspbian/multiarch/ bookworm main Anyways, users will require to understand mirror behaviour if using armhf or arm64 as their OS arch and in areas where the main repo is not reachable, but yeah not a blocker for this context. |
After updating Raspberry PI OS to the last kernel update, the kernel is switched to 64 bit.
$ uname -a
Linux 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l GNU/Linux
$ sudo apt update
....
$ sudo apt upgrade
The following packages will be upgraded:
curl libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libcamera-apps-lite libcamera0 libcurl3-gnutls libcurl4 libnss3 libtiff5 linux-libc-dev raspberrypi-bootloader raspberrypi-kernel
raspi-config vcdbg
16 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 108 MB/111 MB of archives.
After this operation, 3,879 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-kernel armhf 1:1.20230317-1 [102 MB]
Get:2 http://archive.raspberrypi.org/debian bullseye/main armhf linux-libc-dev armhf 1:1.20230317-1 [1,119 kB]
Get:3 http://archive.raspberrypi.org/debian bullseye/main armhf raspberrypi-bootloader armhf 1:1.20230317-1 [4,542 kB]
Get:4 http://archive.raspberrypi.org/debian bullseye/main armhf vcdbg armhf 1:1.20230317-1 [213 kB]
......
Setting up raspberrypi-kernel (1:1.20230317-1) ..
.....
$ sudo reboot
....
$ uname -a
Linux 6.1.19-v8+ #1637 SMP PREEMPT Tue Mar 14 11:11:47 GMT 2023 aarch64 GNU/Linux
For me this is a problem while running some software that needs 32bit.
arm_64bit=0 added tot /boot/config.txt and everything fine now.
Why not respect the 32bit kernel when already active and change the setting to arm_64bit=1 if needed?
The text was updated successfully, but these errors were encountered: