Page 1 of 2

64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 11:08 am
by geev03
Looking for testing a 64 bit OS on Pi4B? Here is a link to one image that works..https://blog.cloudkernels.net/posts/rpi4-64bit-image/

Code: Select all

ubuntu@192.168.1.172's password:
Welcome to Ubuntu 18.04.2 LTS (GNU/Linux 4.19.57-v8+ aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Tue Jul 16 10:58:43 UTC 2019

  System load:  2.95              Processes:           111
  Usage of /:   27.4% of 6.99GB   Users logged in:     1
  Memory usage: 24%               IP address for eth0: 192.168.1.172
  Swap usage:   0%


  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

161 packages can be updated.
80 updates are security updates.


Last login: Tue Jul 16 10:47:22 2019
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 4.19.57-v8+ #2 SMP PREEMPT Tue Jul 9 20:31:37 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu:~$

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 11:39 am
by bomblord
I won't be able to get to this until much later today but I've been watching out for a working 64 bit image like a hawk and am definitely willing to throw this onto a burner micro SD card to test. Do you have any impressions of it? Does it have a working driver for the VC6? How is performance?

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 1:12 pm
by geev03
It has its limitations- I can only see 1 GB RAM on this Pi4B-4
As a server , it works as fast as the setup on Raspbian Buster.
Aim was to test docker ,that will take few more steps but without access to the 4GB memory only marginal improvement from docker on Pi3 is expected.

Code: Select all

root@ubuntu:/home/ubuntu# docker

Command 'docker' not found, but can be installed with:

snap install docker     # version 18.06.1-ce, or
apt  install docker.io

See 'snap info docker' for additional versions.

root@ubuntu:/home/ubuntu#


Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 1:17 pm
by bomblord
A 1GB RAM limitation might be a deal-breaker dang... Might still try it

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 4:29 pm
by o635789
geev03 wrote:
Tue Jul 16, 2019 1:12 pm
It has its limitations- I can only see 1 GB RAM on this Pi4B-4
As a server , it works as fast as the setup on Raspbian Buster.
Aim was to test docker ,that will take few more steps but without access to the 4GB memory only marginal improvement from docker on Pi3 is expected.

Code: Select all

root@ubuntu:/home/ubuntu# docker

Command 'docker' not found, but can be installed with:

snap install docker     # version 18.06.1-ce, or
apt  install docker.io

See 'snap info docker' for additional versions.

root@ubuntu:/home/ubuntu#

You need to reconfigure:
echo "total_mem=1024" >> config-extra.txt
and bump the number up for your board, then re-build it.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 6:41 pm
by bomblord
o635789 wrote:
Tue Jul 16, 2019 4:29 pm
geev03 wrote:
Tue Jul 16, 2019 1:12 pm
It has its limitations- I can only see 1 GB RAM on this Pi4B-4
As a server , it works as fast as the setup on Raspbian Buster.
Aim was to test docker ,that will take few more steps but without access to the 4GB memory only marginal improvement from docker on Pi3 is expected.

Code: Select all

root@ubuntu:/home/ubuntu# docker

Command 'docker' not found, but can be installed with:

snap install docker     # version 18.06.1-ce, or
apt  install docker.io

See 'snap info docker' for additional versions.

root@ubuntu:/home/ubuntu#

You need to reconfigure:
echo "total_mem=1024" >> config-extra.txt
and bump the number up for your board, then re-build it.
Anyway to edit the prebuilt image to do that or otherwise do it after installation something like just extracting the file and editing it? I can try to insert that at the appropriate point in the build process in the op but I'm not remotely familiar with building an OS image and tbh those instructions look like greek to me.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 9:04 pm
by o635789
bomblord wrote:
Tue Jul 16, 2019 6:41 pm
o635789 wrote:
Tue Jul 16, 2019 4:29 pm
geev03 wrote:
Tue Jul 16, 2019 1:12 pm
It has its limitations- I can only see 1 GB RAM on this Pi4B-4
As a server , it works as fast as the setup on Raspbian Buster.
Aim was to test docker ,that will take few more steps but without access to the 4GB memory only marginal improvement from docker on Pi3 is expected.

Code: Select all

root@ubuntu:/home/ubuntu# docker

Command 'docker' not found, but can be installed with:

snap install docker     # version 18.06.1-ce, or
apt  install docker.io

See 'snap info docker' for additional versions.

root@ubuntu:/home/ubuntu#

You need to reconfigure:
echo "total_mem=1024" >> config-extra.txt
and bump the number up for your board, then re-build it.
Anyway to edit the prebuilt image to do that or otherwise do it after installation something like just extracting the file and editing it? I can try to insert that at the appropriate point in the build process in the op but I'm not remotely familiar with building an OS image and tbh those instructions look like greek to me.
My bad, it actually won't work. The memory limit is likely in Raspberry's firmware, it happened once when Raspberry Pis increased RAM to 1GB in the past.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 9:11 pm
by bomblord
o635789 wrote:
Tue Jul 16, 2019 9:04 pm
bomblord wrote:
Tue Jul 16, 2019 6:41 pm
o635789 wrote:
Tue Jul 16, 2019 4:29 pm

You need to reconfigure:
echo "total_mem=1024" >> config-extra.txt
and bump the number up for your board, then re-build it.
Anyway to edit the prebuilt image to do that or otherwise do it after installation something like just extracting the file and editing it? I can try to insert that at the appropriate point in the build process in the op but I'm not remotely familiar with building an OS image and tbh those instructions look like greek to me.
My bad, it actually won't work. The memory limit is likely in Raspberry's firmware, it happened once when Raspberry Pis increased RAM to 1GB in the past.
Dang that sucks oh well might have to hold out then...

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Tue Jul 16, 2019 9:27 pm
by hardwaremack-orginal
this is pretty exciting!!!!

i am DLING this now. will use the lazy image.
i have 2gig PI4B so i will just make that edit.
no big deal.

Charles

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 12:29 am
by bomblord
Well it "works" but I sadly can't any form of GUI to properly install. After installing the Ubuntu desktop environment I only get a mouse.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 12:41 am
by magnusbrzenk
Are there any 64-bit distros out yet that can take full advantage of Pi 4B's 4GB?

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 1:36 am
by bomblord
magnusbrzenk wrote:
Wed Jul 17, 2019 12:41 am
Are there any 64-bit distros out yet that can take full advantage of Pi 4B's 4GB?
Not yet just got to be patient for now.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 9:47 am
by geev03
bomblord wrote:
Wed Jul 17, 2019 12:29 am
Well it "works" but I sadly can't any form of GUI to properly install. After installing the Ubuntu desktop environment I only get a mouse.
Responses of remote GUI is not that bad...

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 12:09 pm
by bomblord
geev03 wrote:
Wed Jul 17, 2019 9:47 am
bomblord wrote:
Wed Jul 17, 2019 12:29 am
Well it "works" but I sadly can't any form of GUI to properly install. After installing the Ubuntu desktop environment I only get a mouse.
Responses of remote GUI is not that bad...
The kind of software I'm wanting to run and wanted a 64 bit environment for wouldn't be very well suited for remote desktop (games, emulation)

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 4:01 pm
by Nifnat
bomblord wrote:
Wed Jul 17, 2019 12:29 am
Well it "works" but I sadly can't any form of GUI to properly install. After installing the Ubuntu desktop environment I only get a mouse.
When I tested it out about a week ago the Ubuntu Desktop didn't want to work properly. If you switch between virtual consoles and then back to the desktop you should be able to get to the logon screen but it's very slow. The Lubuntu desktop seems to work fine for the most part if you want to try that out.

Also the latest kernel seems to have fixed some of the DMA issues, now allowing you to use more than 1GB of RAM. I've currently got a Lubuntu 18.10 environment booting and usable with 3GB of RAM

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 4:23 pm
by Musketeer
Definitely use Lubuntu, Ubuntu is memory hog kindda and sortta... + they stopped use icons on desktop!

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 6:03 pm
by bomblord
Nifnat wrote:
Wed Jul 17, 2019 4:01 pm
bomblord wrote:
Wed Jul 17, 2019 12:29 am
Well it "works" but I sadly can't any form of GUI to properly install. After installing the Ubuntu desktop environment I only get a mouse.
When I tested it out about a week ago the Ubuntu Desktop didn't want to work properly. If you switch between virtual consoles and then back to the desktop you should be able to get to the logon screen but it's very slow. The Lubuntu desktop seems to work fine for the most part if you want to try that out.

Also the latest kernel seems to have fixed some of the DMA issues, now allowing you to use more than 1GB of RAM. I've currently got a Lubuntu 18.10 environment booting and usable with 3GB of RAM
Do I just need to run update/upgrade to get that fix or build it using something else? Going to try this out tonight.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 6:08 pm
by Nifnat
bomblord wrote:
Wed Jul 17, 2019 6:03 pm
Do I just need to run update/upgrade to get that fix or build it using something else? Going to try this out tonight.
You'd either need to build the kernel yourself or wait for somebody else to build it and then upload it.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 6:16 pm
by bomblord
Nifnat wrote:
Wed Jul 17, 2019 6:08 pm
bomblord wrote:
Wed Jul 17, 2019 6:03 pm
Do I just need to run update/upgrade to get that fix or build it using something else? Going to try this out tonight.
You'd either need to build the kernel yourself or wait for somebody else to build it and then upload it. There's a post explaining how to build a kernel for the Pi4 on this forum that might be useful to you.
I'll see what I can figure out. Can I use the instructions in the OP and just swap it for an armv8 ubuntu 18.10 image?

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Wed Jul 17, 2019 6:35 pm
by Nifnat
bomblord wrote:
Wed Jul 17, 2019 6:16 pm
I'll see what I can figure out. Can I use the instructions in the OP and just swap it for an armv8 ubuntu 18.10 image?
You could do that. I'd think that the 18.04 image should work fine as well. Looks like the instructions in the OP is pulling in the latest kernel so it should build the one with the fixes just fine.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Thu Jul 18, 2019 8:46 am
by gilius2k15
This is a great start - the lazy image even has KVM enabled!

Could you guys please share your exact terminal commands to get any kind of GUI? I tried sudo apt install lubuntu - but it doesn't find any such package. Should a repository be set first?

I tried sudo apt install lxde - but just got a mouse cursor.

Now I've upgraded to 18.10 - kind of ends prematurely - and now I'm trying lxde again.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Thu Jul 18, 2019 2:51 pm
by bomblord
gilius2k15 wrote:
Thu Jul 18, 2019 8:46 am
This is a great start - the lazy image even has KVM enabled!

Could you guys please share your exact terminal commands to get any kind of GUI? I tried sudo apt install lubuntu - but it doesn't find any such package. Should a repository be set first?

I tried sudo apt install lxde - but just got a mouse cursor.

Now I've upgraded to 18.10 - kind of ends prematurely - and now I'm trying lxde again.
Could you detail what you did to get the 18.10? I searched all their repositories that I could find and couldn't find an armv8 build of it.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Thu Jul 18, 2019 3:21 pm
by gilius2k15
18.04 > 18.10

Download this and write to Micro SD card: (login: ubuntu/ubuntu)
https://cloudkernels.net/ubuntu-18.04.2 ... kvm.img.xz

Then make sure you have update-manager-core package installed.
sudo apt install update-manager-core

Next, edit a configuration file using nano or your preferred command line text editor.
sudo nano /etc/update-manager/release-upgrades

At the bottom of this file, change the value of Prompt from lts to normal.
Prompt=normal

Save and close the file. After that, run the following command to begin the upgrade process.
do-release-upgrade

But I still cannot get the GUI to work - just shows a black screen with white mouse cursor.
I tried LXDE, Mate, Xubuntu so far.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Thu Jul 18, 2019 3:35 pm
by bomblord
gilius2k15 wrote:
Thu Jul 18, 2019 3:21 pm
18.04 > 18.10

Download this and write to Micro SD card: (login: ubuntu/ubuntu)
https://cloudkernels.net/ubuntu-18.04.2 ... kvm.img.xz

Then make sure you have update-manager-core package installed.
sudo apt install update-manager-core

Next, edit a configuration file using nano or your preferred command line text editor.
sudo nano /etc/update-manager/release-upgrades

At the bottom of this file, change the value of Prompt from lts to normal.
Prompt=normal

Save and close the file. After that, run the following command to begin the upgrade process.
do-release-upgrade

But I still cannot get the GUI to work - just shows a black screen with white mouse cursor.
I tried LXDE, Mate, Xubuntu so far.
Awesome, thank you I'm going to begin poking around and see what I can figure out as far as the GUI goes.

Re: 64 bit Ubuntu 18.04 on Pi4B

Posted: Thu Jul 18, 2019 5:41 pm
by bomblord
Currently on my 5th re-image have tried installing lubuntu-desktop both before and after the upgrade (also of note the upgrade always ends in a critical failure on flash-kernel but still upgrades some stuff). I either get a dependency error or otherwise just can't find it. I tried gnome and mate as well and they don't work either. Going to try a different approach.

Edit 2 hours and a lot of changes later got lubuntu to install but even that just ends up with a black screen and a mouse. Looks like I'm just going to be waiting for an official 64 bit image from one of the Linux distro devs.