Support for Raspberry Pi 4

Got my 4GB pi4 last week, and it’s happily running raspbian.
I’m interested in accelerated opengl support in ubuntu core,
but haven’t gotten up the courage to try ogra’s build yet.

accelerated opengl isnt there yet on the Pi4 … but accelerated video playback works fine using the omxplayer-pi package as well as on the other pi’s (or on classic ubuntu) … only 1080p though, omxplayer upstream does not support h265 yet.

Looks like is a nice thread re gpu and rpi4 status…

Well, the thread you point to is about 64bit support (and indeed also mentions V3D on 64bit) … I dont plan to work on any 64bit images. The ones I built are for initial developer use until an official Ubuntu image exists.

Wether or not @ppisati plans to work on a 64bit kernel for upcoming official Ubuntu Pi4 images and when the Ubuntu kernels will be ready at all, I dont even know though.

Im a strong opponent of supporting arm64 on unsuited hardware.

64bit ARM means you allocate nearly twice the ram for each running application without gaining any beneift, unless the app actually makes use of 64bit registers… so effectively you only waste memory. It is a hard requirement on systems with more than 4GB of ram and it surely makes sense for software that has been specifically written for 64bit register usage though.

What i plan to work on in the nearer future is a classic image to provide along with the Ubuntu Core image though (but under the same restrictions, only until an actual Ubuntu image exists).

Any progress on core 18 for raspberry pi 4 beyond ogra’s july test image?

1 Like

i think there is progress in the distro to target pi4 as an official device for 20.04 … if you require an updated kernel for my image i’m happy to take a look though (the rootfs will upgrade itself automatically on core)

Thanks. I’ll give it a try.

This might be helpful for some here (works on pi2 and 3 too indeed):


I’ve been trying my hand at getting OpenGL ES 2 graphics working using my RPI4 but have been running into some strange errors:

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed

The snap is working on amd64/i386 but I just can’t figure out what is missing to get it working on the RPI4 with the VC4 driver. Any help would be appreciated!


Uploaded for RPI4 to store on beta channel:
sudo snap install --beta mmapper

I’ve tested all the stables, betas and edges; the same thing happens. I’ve messed around with snap interfaces a bit too but didn’t get anywhere. :roll_eyes:

this is pretty cryptic … can you elaborate a little ?

Thanks a bunch for that core18 image, Oliver. It works on my side. Can you tell me if this snap will upgrade automatically once the official 20.04 release is available?

nope, sadly not, this image uses a differently named kernel snap that does not come from the store, once there are official core images you will have to re-flash to get the correct names in the model assertion of the image and to get kernel/gadget updates from the store.

with the ubuntu 19.10 kernel now fully supporting the pi4 (and thanks to the holidays :slight_smile: ), i invested a little time to switch the kernel snap of my core18 image over to it (the snap is still called “linux-raspberrypi-org” so there wont be any upgrade path to the official image, but it is now at least built from the same source the official kernel will use later)

note that there is no way to upgrade to that new image, you need to completely re-flash your SD card if you were using the older one (once using this image you will be able to “snap install --dangerous linux-raspberrypi-org_*_armhf.snap” later in case i provide an updated kernel snap though)

the new image is in the usual place at

the snaps it was built from are in the snaps/ subdir, the old image is still available under old/ for people that want to use the actual kernel.

note: this fixes mir-kiosk support !


I’m testing the latest image for raspberry pi 4 (2Gb) but after the Ubuntu Core init config process where i config static IPv4 settings … all works for a couple of minutes after an automatic reboot … after that i get this view and i can’t do any other moves …

The linked askubuntu question speaks of Ubuntu Core 16, but we do not have raspi4 support in UC16, only in UC18. Are you really using UC16?

I’ve downloaded the image from ogra link :

Ok. There are now official UC18 images that support raspi4:

Does this problem happen with those images as well?


Thanks with this image installed on Raspberry Pi 4 (2Gb) i’ve solved !!

I’m trying to build kernel for PI4 using official repo ( eoan ).
This repo has snapcraft.yml so I’m using it to build it.
However if I try to build kernel for arm64 target I get build error -

make: *** No rule to make target ‘zImage’. Stop

What is correct config to build arm64 kernel for pi4?