_robertacaruso_
Posts: 4
Joined: Sat Jan 11, 2020 10:10 am

Rpi4 and ubuntu x64

Sat Jan 11, 2020 10:14 am

Hi!
With the new rpi4 is it possible to install Ubuntu x64 and build every ppa x64??
Or there are still differences from the Ubuntu server of a "normal"x64 PC and a rpi4?

drgeoff
Posts: 10676
Joined: Wed Jan 25, 2012 6:39 pm

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 12:44 pm

No.

All models of RPI released to date have ARM CPU(s) and do not natively run x86 or x64 code.

I believe there are builds of Ubuntu which are compiled for RPis.

https://www.raspberrypi.org/forums/viewforum.php?f=131

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

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 12:50 pm

_robertacaruso_ wrote:
Sat Jan 11, 2020 10:14 am
Hi!
With the new rpi4 is it possible to install Ubuntu x64 and build every ppa x64??
Or there are still differences from the Ubuntu server of a "normal"x64 PC and a rpi4?
The Raspberry Pi will never run x64 (or x86) code natively. This is because it uses a different processor architecture - ARM. This is the same architecture that mobile phones use, and is where the chip for the first Raspberry Pi actually came from.

Canonical have released a Pi-specific version of Ubuntu Server - see https://ubuntu.com/download/raspberry-pi. This is essentially the same as "normal" Ubuntu Server, simply recompiled for ARM instead of x64.

_robertacaruso_
Posts: 4
Joined: Sat Jan 11, 2020 10:10 am

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 4:13 pm

for example this:
git://github.com/CartoDB/Windshaft-cartodb.git

can be built?
and this ppa?
https://launchpad.net/~cartodb/+archive ... resql-9.3/

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

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 4:40 pm

You can install anything that lets you build it from source code. Any binaries which are compiled for x64 will not run. I don't know what PPAs are so you will have to investigate that yourself.

_robertacaruso_
Posts: 4
Joined: Sat Jan 11, 2020 10:10 am

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 4:50 pm

There are source code but are for x64.. So can work?

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

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 5:20 pm

_robertacaruso_ wrote:
Sat Jan 11, 2020 4:50 pm
There are source code but are for x64.. So can work?
Source code is not usually "for" any particular CPU type - unless it contains Assembly code. The CPU type it runs on will depend on what platform it is built for. Normally this is the same platform as it is built on, but it is possible to cross-compile for another platform, for example to build on an x86_64 system for armhf use.
Unreadable squiggle

Moonmarch
Posts: 413
Joined: Thu Mar 07, 2019 1:34 am

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 7:13 pm

64 bit software used on a 64 bit ARM computer is called ARM64 that is the software package that you would install if you were using a 64 bit operating system for the ARM computer if you are using a ARM 32 bit computer you would use either ARMHF or ARMEL packages HF stands for Hard Float the current version of Raspbian that is available in the raspberry pi downloads page uses ARMHF packages for all RPI computers, if you decided to install packages from a different source repository instead of the Raspbian repository I don't know what will happen to your computer using different repositories on the same computer is intended for advanced users.

If you needed to know if a version of Ubuntu is being developed for the RPI computer then yes that is true Ubuntu has developed operating systems compatible with the RPI computer in the past here is a link to a article about Ubuntu support road map for the RPI4:

Ubuntu Publishes Support Roadmap for the Raspberry Pi 4
https://www.omgubuntu.co.uk/2019/11/ubu ... -4-support

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

Re: Rpi4 and ubuntu x64

Sat Jan 11, 2020 9:54 pm

_robertacaruso_ wrote:
Sat Jan 11, 2020 4:50 pm
There are source code but are for x64.. So can work?
Software comes in two forms - source code and object code, which is also known as "binaries". Software is written by human developers in source code using a particular programming language, then translated into object code by a compiler. Object code will only run on a single processor architecture. Source code does not run at all - it must always be compiled into object code before it can be run.

If you are looking at things that say they are x64, then these will be object code, i.e. binaries. They cannot be used on ARM machines, including the Raspberry Pi.

Return to “Ubuntu”