Evils
Posts: 1
Joined: Tue Mar 29, 2016 1:49 am

Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Tue Mar 29, 2016 2:05 am

I've recently bought a RPI3 and set it up with the latest and greatest Arch Linux.

Now as the arch linux page rightfully says, the current builds are all 32bit and therefore the CPU won't be fully used on the PI3.
What I do wonder now, once's the kernel and everything else would potentially fully support the armv8 CPU and it's 64bit architecture, would I simply be able to upgrade using pacman or would that require me to setup my pi from scratch?

Thanks in advance for any answer ;)

klricks
Posts: 7135
Joined: Sat Jan 12, 2013 3:01 am
Location: Grants Pass, OR, USA
Contact: Website

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Tue Mar 29, 2016 5:40 am

From what I understand the 64b version is a possibility for the future but not a priority. If/when that happens I expect it to be a completely separate OS.

Edit: Did not realize this was in the Arch forum......
Unless specified otherwise my response is based on the latest and fully updated RPiOS Buster w/ Desktop OS.

loganmc10
Posts: 8
Joined: Thu Apr 21, 2016 6:40 pm

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Thu Apr 21, 2016 6:42 pm

I don't think "CPU won't be fully used" is a good way to describe the impact of going from 32bit to 64bit. The difference will be far less dramatic than you think.

But to answer the question, you'll need to do a fresh install, there will be no way to upgrade from 32 to 64 bit.

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Sat Apr 23, 2016 7:32 pm

loganmc10 wrote:But to answer the question, you'll need to do a fresh install, there will be no way to upgrade from 32 to 64 bit.
Nonsense. I'd expect 32-bit programs to run OK with a 64-bit kernel, they've just got to ensure the interfaces they use are 32-bit aware and can work with addresses that are below the great divide. It's all about providing forward and backward compatibility.

What's being done with ARM processors isn't new (it seems to me there's nothing new). Mainframes went from 24-bit to 31-bit in 1983 then went from 31-bit to 64-bit in 2000. You can take a mainframe program from the 1960s and it will run on a modern 64-bit mainframe.

Why shouldn't a 32-bit user space program run with a 64-bit kernel? I don't disagree there may be some benefits by building programs that are 64-bit only, but that's an entirely different thing.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

loganmc10
Posts: 8
Joined: Thu Apr 21, 2016 6:40 pm

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Mon Apr 25, 2016 4:39 pm

DougieLawson wrote:
loganmc10 wrote:But to answer the question, you'll need to do a fresh install, there will be no way to upgrade from 32 to 64 bit.
Why shouldn't a 32-bit user space program run with a 64-bit kernel? I don't disagree there may be some benefits by building programs that are 64-bit only, but that's an entirely different thing.
They were asking if they would be able to use pacman to upgrade from the 32-bit kernel/userspace to the 64-bit kernel/userspace. That won't be possible. Yes 32 bit applications will probably work on the 64-bit kernel, but to install the 64-bit kernel they will need to re-install Arch Linux, they won't be able to upgrade using pacman.

Koeshi
Posts: 228
Joined: Sun Mar 20, 2016 11:16 am

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Tue Apr 26, 2016 12:23 pm

loganmc10 wrote:
DougieLawson wrote:
loganmc10 wrote:But to answer the question, you'll need to do a fresh install, there will be no way to upgrade from 32 to 64 bit.
Why shouldn't a 32-bit user space program run with a 64-bit kernel? I don't disagree there may be some benefits by building programs that are 64-bit only, but that's an entirely different thing.
They were asking if they would be able to use pacman to upgrade from the 32-bit kernel/userspace to the 64-bit kernel/userspace. That won't be possible. Yes 32 bit applications will probably work on the 64-bit kernel, but to install the 64-bit kernel they will need to re-install Arch Linux, they won't be able to upgrade using pacman.
Why wouldn't you be able to do that when with distros like Manjaro, which is based off Arch, you can upgrade the kernel without re-installing?

loganmc10
Posts: 8
Joined: Thu Apr 21, 2016 6:40 pm

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Tue Apr 26, 2016 7:01 pm

Koeshi wrote:Why wouldn't you be able to do that when with distros like Manjaro, which is based off Arch, you can upgrade the kernel without re-installing?
You can upgrade the kernel version, but you can't change architectures. You can't go from x86 to amd64 (on Intel chipsets) and you can't go from armv6h to armv7h to aarch64 on ARM chipsets, you have to do a fresh install. Every single piece of software on the system is compiled for the particular architecture of the kernel that you have installed.

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Wed Apr 27, 2016 9:23 am

https://wiki.debian.org/CrossGrading
https://wiki.archlinux.org/index.php/Mi ... hitectures

It's generally considered insane - but hey , we have anecdotal
evidence that it works !

An AArch32 userland should run fine on top of an AArch64
kernel , too .


ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

loganmc10
Posts: 8
Joined: Thu Apr 21, 2016 6:40 pm

Re: Raspberry PI 3 - 32bit -> 64bit upgrade possible?

Thu Apr 28, 2016 2:45 pm

ghans wrote:https://wiki.debian.org/CrossGrading
https://wiki.archlinux.org/index.php/Mi ... hitectures

It's generally considered insane - but hey , we have anecdotal
evidence that it works !

An AArch32 userland should run fine on top of an AArch64
kernel , too .
Ok I suppose you could go through all that work, but realistically who is going to do that when you can just backup your files, take out the SD card and reinstall?

Return to “Arch”