Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A10 => Topic started by: fhersete on April 18, 2022, 09:00:32 PM

Title: Add ump, mali modules to use the mali blob and its acceleration in opengles
Post by: fhersete on April 18, 2022, 09:00:32 PM
In the latest images of ubuntu focal or debian with kernel 5.10.105 they have support that is very good, but I have observed that the distribution does not have opengles acceleration, it comes with lima drivers and you cannot use opengles acceleration in sdl or various programs.

On selfbg's github, it says that you can build mali modules and integrate them into the kernel, but of course, in the last image I've seen that after doing a modprobe and listing the modules with lsmod, they aren't included.

In the github is the r9p0, which is the most recent, and the device trees of the latest kernel are available here:

https://github.com/selfbg/sunxi-mali (https://github.com/selfbg/sunxi-mali)

https://linux-sunxi.org/Mali_binary_driver (https://linux-sunxi.org/Mali_binary_driver)

https://elixir.bootlin.com/linux/v5.10.105/source/arch/arm/boot/dts/sun4i-a10.dtsi (https://elixir.bootlin.com/linux/v5.10.105/source/arch/arm/boot/dts/sun4i-a10.dtsi)

I have tried to compile the modules, but it has been impossible for me, something was missing to configure.

Would it be possible to include the mali blob and have a distribution that works correctly in opengles?

Thanks.
Title: Re: Add ump, mali modules to use the mali blob and its acceleration in opengles
Post by: LubOlimex on April 19, 2022, 09:41:59 AM
QuoteWould it be possible to include the mali blob and have a distribution that works correctly in opengles?

As far as I know from the Linux developers - no. Hence, why I've written on a lot of places in the Olimage guide that Olimage images come without hardware video acceleration:

https://github.com/OLIMEX/OLINUXINO/blob/master/DOCUMENTS/OLIMAGE/Olimage-guide.pdf

But if you manage to do it I will make sure they look at your work.
Title: Re: Add ump, mali modules to use the mali blob and its acceleration in opengles
Post by: fhersete on April 19, 2022, 06:46:54 PM
I'm going to work on it, it has to work, yes or yes.

If I succeed, I'll post it on the forum.
Title: Re: Add ump, mali modules to use the mali blob and its acceleration in opengles
Post by: LubOlimex on April 20, 2022, 08:24:18 AM
This would be really great if you can manage to pull it off. Looking forward! Still if you wonder how we build the images look at the end of the Olimage user guide document, and check our GitHub!