User avatar
isteiger
Posts: 4
Joined: Sun Mar 10, 2019 9:48 pm
Location: Bedroom Desk, USA

Official RPI Kernel on Ubuntu

Sun Jul 05, 2020 2:12 pm

Does anyone know how to get the official RPI kernel on Ubuntu ARM 64bit working?
Last edited by isteiger on Sun Jul 05, 2020 5:51 pm, edited 1 time in total.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Official RPI Kernel on Ubuntu

Sun Jul 05, 2020 3:04 pm

What you are asking doesn't make sense. You want to run the official Raspberry Pi ARM kernel on x86 Ubuntu? Or something else?
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

User avatar
isteiger
Posts: 4
Joined: Sun Mar 10, 2019 9:48 pm
Location: Bedroom Desk, USA

Re: Official RPI Kernel on Ubuntu

Sun Jul 05, 2020 5:50 pm

I want the official RPI kernel on arm64 Ubuntu, as there is no hardware acceleration on the official Ubuntu kernel. I’ve tried but it didn’t boot afterwards, I think it was missing some kernel modules but I’m not sure how to add modules.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26442
Joined: Sat Jul 30, 2011 7:41 pm

Re: Official RPI Kernel on Ubuntu

Sun Jul 05, 2020 5:58 pm

isteiger wrote:
Sun Jul 05, 2020 5:50 pm
I want the official RPI kernel on arm64 Ubuntu, as there is no hardware acceleration on the official Ubuntu kernel. I’ve tried but it didn’t boot afterwards, I think it was missing some kernel modules but I’m not sure how to add modules.
/lib/modules contains the modules - you need to ones that were compiled with the kernel so need to copy them across. May still not work however, and you may not get the acceleration you desire depending on what other libraries (we.g. Mesa) are present.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

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

Re: Official RPI Kernel on Ubuntu

Sun Jul 05, 2020 7:23 pm

isteiger wrote:
Sun Jul 05, 2020 5:50 pm
I want the official RPI kernel on arm64 Ubuntu...
That may not be possible. What specific hardware acceleration do you need?

User avatar
isteiger
Posts: 4
Joined: Sun Mar 10, 2019 9:48 pm
Location: Bedroom Desk, USA

Re: Official RPI Kernel on Ubuntu

Sun Jul 05, 2020 7:25 pm

andrum99 wrote:
Sun Jul 05, 2020 7:23 pm
isteiger wrote:
Sun Jul 05, 2020 5:50 pm
I want the official RPI kernel on arm64 Ubuntu...
That may not be possible. What specific hardware acceleration do you need?
I need GPU acceleration.

User avatar
Hackswell
Posts: 22
Joined: Thu May 28, 2020 11:33 pm

Re: Official RPI Kernel on Ubuntu

Mon Jul 06, 2020 7:16 pm

isteiger wrote:
Sun Jul 05, 2020 7:25 pm
andrum99 wrote:
Sun Jul 05, 2020 7:23 pm
isteiger wrote:
Sun Jul 05, 2020 5:50 pm
I want the official RPI kernel on arm64 Ubuntu...
That may not be possible. What specific hardware acceleration do you need?
I need GPU acceleration.
GPU acceleration (open GL, graphics drivers, etc)
and/or
CODEC acceleration (MPEG, H.264, H.265, etc)

They are distinct from each other on the RPi.

AfterMidnight
Posts: 5
Joined: Tue Jun 30, 2020 6:53 pm

Re: Official RPI Kernel on Ubuntu

Tue Jul 07, 2020 1:21 am

I also need GPU acceleration for OpenGL.

Please take a look at the comment I just added to:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1880125

Here's the procedure that worked for me for building and running what I thought was the "official" kernel:
https://askubuntu.com/questions/1238261 ... 67#1242267

Unfortunately, I'm having trouble just now, as noted here:
viewtopic.php?p=1691801#p1691801

But I may have a saved snapshot of my system as of version 1009. If so, I'll to try the proposed config changes and report the results as a comment in the launchpad bug.

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: Official RPI Kernel on Ubuntu

Tue Jul 07, 2020 7:16 am

isteiger wrote:
Sun Jul 05, 2020 2:12 pm
Does anyone know how to get the official RPI kernel on Ubuntu ARM 64bit working?
Switch your SDCard to one with RaspiOS and run away happy. What's the reason for wanting Ubuntu? Can you wait until the Ubuntu stuff catches up with the RaspiOS stuff?
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.

busywait
Posts: 62
Joined: Sat May 09, 2020 10:48 pm
Location: Southampton, UK

Re: Official RPI Kernel on Ubuntu

Tue Jul 07, 2020 7:30 am

AfterMidnight wrote:
Tue Jul 07, 2020 1:21 am
I also need GPU acceleration for OpenGL.
If you could get by with 3D acceleration in some other 64-bit Linux with recent libraries, then could you also consider other 64-bit distros? As far as I know, there is no publically available video acceleration in any of the 64-bit distros yet (Raspberry Pi OS 64-bit beta included). Happy to be informed that I'm wrong :)

AfterMidnight
Posts: 5
Joined: Tue Jun 30, 2020 6:53 pm

Re: Official RPI Kernel on Ubuntu

Tue Jul 07, 2020 8:23 am

I've just gotten GPU rendering working on a pi 4 in 32-bit Ubuntu 20.04.
It just required config changes.

Details here:
https://bugs.launchpad.net/ubuntu/+sour ... omments/14

I don't know if the same fix works in 64-bit systems.

User avatar
isteiger
Posts: 4
Joined: Sun Mar 10, 2019 9:48 pm
Location: Bedroom Desk, USA

Re: Official RPI Kernel on Ubuntu

Tue Jul 07, 2020 8:46 pm

After upgrading to the latest proposed kernel (5.4.0-1014.14) I have GPU acceleration working! Just add

Code: Select all

dtoverlay=vc4-fkms-v3d
to

Code: Select all

/boot/firmware/usercfg.txt
after upgrading to the proposed kernel.

Return to “Ubuntu”