11

Looking for a 64-bit version of Linux for the Raspberry Pi 4.

I'm aware that support under Ubuntu Mate is in the works, apparently Ubuntu Server works but it limited to using 1 GB of RAM.

Are there any other options that are working now?

  • when using google to search "64bit version of Linux for the Raspberry Pi 4" - I get exactly what presumably you got (assuming you used a search engine at all) - many promises of future releases, not much else – Jaromanda X Jul 21 at 22:27
  • Yes, I did Google before asking. :-) – Rasjid Wilcox Jul 21 at 22:51
  • I'm just saying you didn't miss anything, and there's not much chance that there's a secret 64bit OS out there :p – Jaromanda X Jul 21 at 22:55
  • Upvoted. Even if there's no answer today, when the time comes this will be valuable. Follow this thread for screenshots and progress of Gentoo64 for Pi4 and this thread for Debian64 on Pi4. – jdonald Jul 22 at 1:49
  • One of the reasons the Foundation has not developed a 64 bit OS is because no one can come up with a compelling reason. – Milliways Jul 22 at 4:08
7

As of September 2019, the following 64-bit operating systems run on a Raspberry Pi 4:

The above list is by no means exhaustive because there have been many one-off 64-bit experiments ("Hey, it boots") starting shortly after Pi 4's release.

After all, the procedure for tweaking an existing distro into a 64-bit Pi 4 compatible one has not changed. Just like with a Pi 3 or Pi 2 v1.2, copying over the kernel and kernel modules from a working system will usually result in a configuration that boots*.

In terms of quality and support, the situation with Raspberry Pi 4, Buster, kernel 4.19+, and 64-bit is better than it had been with Pi 3B+ and Stretch. This time it is actually possible to access the SoC camera in Fake KMS mode. Gentoo has been listed first for its active userbase and it was the first to provide fixes for accessing 4 GB of memory and V3D acceleration.


Note that for distros without an arm64 userland (e.g. Raspbian + 64-bit kernel), additional steps are necessary to run 64-bit programs. This can be done via static compilation, containers (LXC, systemd-nspawn), or chroot. The last option has proven to be the most straightforward:

sudo apt install -y debootstrap schroot
cat << EOF | sudo tee /etc/schroot/chroot.d/pi64
[pi64]
description=V3D arm64 testing
type=directory
directory=/srv/chroot/pi64
users=pi
root-groups=root
profile=desktop
personality=linux
preserve-environment=true
EOF
sudo debootstrap --arch arm64 /srv/chroot/pi64
sudo schroot -c pi64 -- apt install -y mesa-utils sudo
schroot -c pi64

Then continue to install more arm64 programs or run them inside the chroot:

(pi64)pi@raspberrypi:~ $ glxgears

* One pitfall specific to Pi 4 is that fake KMS with VC6 requires a very recent build of Mesa, so an initial workaround is to edit config.txt to switch to legacy mode.

2

BalenaOS just released its support for RPI4. I have not tried it yet (I will test it in the coming days) but it looks promising.

You can check their blog post regarding the release here.

And the Get Started here

1

I used this image succesfully: https://jamesachambers.com/raspberry-pi-ubuntu-server-18-04-2-installation-guide/ Only had to make some changes in the /boot/firmware/config.txt. I used a 7" touchscreen.

  • 2
    What changes are needed in /boot/firmware/config.txt? This would improve your answer a lot. – Ingo Sep 12 at 10:19
  • Changes: lcd_rotate=2, framebuffer_width=960, framebuffer_height=576. Changes needed for my 7" touchscreen. – HDK Bouma Sep 12 at 11:24
  • I have thought that you edit your answer and make it a better answer. Please take the short Tour and visit the Help Center to get an idea how things work here. – Ingo Sep 12 at 13:17
  • Given that it could be a bit more elaborate than "this works", I believe his answer is good enough as it is. Those changes are specific to his own screen setup and not directly related to the question so it is a good choice to omit them. – Tuncay Göncüoğlu Sep 16 at 7:31
  • Thank you Tuncay. My goal is to point at the jamesachambers image. – HDK Bouma Sep 17 at 8:06
1

There's already a full 64bits Kali linux available with support of all the 4Gb ram memory : https://www.offensive-security.com/kali-linux-arm-images/#1493408272250-e17e9049-9ce8 For memory, kali is a debian with security check pre-installed packages/app, it is based on the debian unstable branch, but from tests I made, you can also "convert" it to the debian testing branch (= the next debian release). If you want to have a try on it, here's the rpi 2 3 & 4 img file of Kali Linux RaspberryPi (2 (v1.2), 3 and 4 64-Bit) : https://images.offensive-security.com/arm-images/kali-linux-2019.3-rpi3-nexmon-64.img.xz another thread related to running a 64 os on the RPI 4 is here, and could interest anyone looking for a 64 bit os (it's on the dietpi forum, for memory dietpi is a very small debian/raspbian os (available to flash as an img or installable through a shell script to reduce and remove a lot of useless packages, allowing you to install ONLY what you really need)) : https://dietpi.com/phpbb/viewtopic.php?f=9&t=6065&start=30

0

You can get raspberry pi 64 bit image on github. PI64 os Or you can check out following discussion on stackoverflowRpi 64bit Os. I hope these links are helpful for you.

  • 1
    pi64 a.k.a. bamarni pi64 is not compatible with the Raspberry Pi 4 at this time. See comments and associated links. – jdonald Jul 22 at 16:08
  • I have not tried. – Nikhil Jain Jul 22 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.