hexdump0815 / linux-mainline-on-arm-chromebooks

running linux mainline on arm chromebooks - for example: samsung xe303c12 and xe503c12 (snow and peach), acer c100, c101 and c201 (veyron speedy, minnie etc. and gru bob and kevin), medion s2013 and s2015 (veyron jaq, mighty etc.), acer cb5 311 (nyan big), lenovo n23, acer r13 (oak elm and hana), lenovo duet (kukui krane) and most probably many many more over time ...
157 stars 10 forks source link

How to enable the MALI driver on the ARM Chromebook. #20

Open Marietto2008 opened 12 months ago

Marietto2008 commented 12 months ago

Hello my friend.

I've almost completed my project : to virtualize FreeBSD on top of Linux with qemu-kvm on the ARM Chromebook. Everything works great. Even the network on the vm. One last task needs to be accomplished. To be able to use the MALI graphic driver on the linux distro that I have chosen and where I have configured everything : Devuan 5. I would like to understand what's the fulll procedure to enable the MALI driver and to make it work. What I did right now is to enable the MALI driver inside the kernel that I'm using (vers. 5.4.257).

The only parameter that I've found on the kernel config file related to MALI is the following :

CONFIG_DRM_MALI_DISPLAY=y

and I set it to y. Until here it was easy. What I don't understand is after enabling that parameter,it will work automatically or if I should make an additional configuration and which kind of configuration it needs. Thanks.

hexdump0815 commented 11 months ago

on snow only the legacy mali driver is working and that is a bit of a pain to setup and quite limited in functionality with mainline too - here you can find somekind of useable mali driver blobs for snow (the 5250 ones): https://github.com/hexdump0815/linux-mainline-and-mali-generic-stable-kernel/tree/lts/misc ... here is some info on kind of a hack to use them for opengl in x11: https://github.com/ptitSeb/gl4es/issues/119 ... everything else you'll have to search together yourself on the net and trying to use them without this gl4es opengl hack in any way gets even more complicated ... CONFIG_DRM_MALI_DISPLAY=y is wrong - it is for a display driver which is not used on snow (and not related to the gpu) - here are the kernel options required for the mali driver in the kernel: https://github.com/hexdump0815/linux-mainline-and-mali-generic-stable-kernel/blob/c987c9b869bb63ba542dd822591ccd65d23b2a17/misc.cbe/options/additional-options-special.cfg#L8-L12 and for that you need to have the mali patches in your tree as well from around here: https://github.com/hexdump0815/linux-mainline-and-mali-generic-stable-kernel/tree/5.4.58-stb-cbe%2B/misc.cbe - maybe look here once more for the required kernel options for that version: https://github.com/hexdump0815/linux-mainline-and-mali-generic-stable-kernel/tree/5.4.58-stb-cbe%2B/misc.cbe/options ... this is all information i can give you - from here you are on your own ...