Compiling Latest mesa+freedreno?
-
Hello! (Originally I thought this would be easy: setup device, ssh into it, install deps, build cmake, meson, ninja-build and llvm for newest versions, git clone mesa, meson configure for freedreno, meson build, ninja install and BOOM good to go)
.... that isn't the case.
I've noticed that by compiling the latest mesa on desktop devices I've been able to get OpenGL (and in some cases OpenCL) support using various drivers.
The freedreno driver looks very promising --- so earlier today I installed UBPorts on my 6P (latest though seems to be 16.04.7 branch).
Ran out of space downloading the depedencies and pre-reqs that I've discovered for compiling mesa. Then discovered that, hey, if I want to do this on-device I need to do it in a libtertine container...
... not to mention I believe 16.04 uses mir instead of wayland (and because of no glx supports; this device has been stuck on 16.04 instead of 18.04)
That being said:
What do I need to do try to mess around with creating the latest mesa with wayland support for 18.04 for this device.
-
@eirikr1848
If you do not intend to make OTA updates on your device, and don't fear possibly messing up the system, you can use apt like on any usual debian based dist.For that you'll need first to make your system read/write.
But if you intend to use it as a daily device/phone, then you'd better use Libertine, or alternatively, you can try crackle.
-
@eirikr1848
Hi, I think the way to do such thing is to gather everything required on your computer, build and compile it for your device target.
Then you can install the built libraries on your device (it might fit)
Or you can package it in a click for a dedicated app to use.Note every Ubuntu Touch devices are "stuck" in 16.04 until 20.04 is available for our OS.
Explanation:
The rootfs is locked in RO because the partition size vary and is relatively small for the system image.
You can access the userdata partition to install rather large click files, but you need to build and package an app prior to use it on the phone.
You can also use Libertine container to install/use so-called legacy apps (command line software essentially)
So to tinker with 3D you might want to build your dependencies on your desktop computer and create a native app that can use thoses libs.