Custom D.E.O.T. V1.0+/Clockwork OS v0.4 image - With Updated Kernel 5.3.6, Latest Lima Drivers, RA1.8.1, Mupen64+ and much more! (Current version: 191122)

Lima driver is included.
Before you can use the Lima driver included in the kernel,the following things you should do:

  1. disable the mesa lib which compiled with mesa_lima driver:
    sudo mv /usr/lib/lima /usr/lib/lima_back
    sudo mkdir /usr/lib/lima

  2. edit the x11 config file:
    vim ~/launcher/.xorg_lima.conf

Section "Device"
        Identifier      "Allwinner A10/A13 FBDEV"
        Driver          "lima"
        Option         "fbdev" "/dev/fb0"
        Option         "SwapbuffersWait" "true"
EndSection
  1. change GPU Driver to Lima in launcher and reboot

then you should be able to use the kernel Lima driver.
PS:you can use the following commands to check that you have Lima driver devices initialized.

dmesg|grep lima

it outputs something like:

[    0.932738] lima 1c40000.gpu: bus rate = 200000000
[    0.937530] lima 1c40000.gpu: mod rate = 384000000
[    0.942735] lima 1c40000.gpu: gp - mali400 version major 1 minor 1
[    0.948982] lima 1c40000.gpu: pp0 - mali400 version major 1 minor 1
[    0.955280] lima 1c40000.gpu: pp1 - mali400 version major 1 minor 1
[    0.961585] lima 1c40000.gpu: l2 cache 64K, 4-way, 64byte cache line, 64bit external bus
[    0.970371] [drm] Initialized lima 1.0.0 20190217 for 1c40000.gpu on minor 0
cat /sys/class/drm/card0/device/uevent

it outputs:

DRIVER=lima
OF_NAME=gpu
OF_FULLNAME=/soc/gpu@1c40000
OF_COMPATIBLE_0=allwinner,sun8i-a23-mali
OF_COMPATIBLE_1=allwinner,sun7i-a20-mali
OF_COMPATIBLE_2=arm,mali-400
OF_COMPATIBLE_N=3
MODALIAS=of:NgpuT(null)Callwinner,sun8i-a23-maliCallwinner,sun7i-a20-maliCarm,mali-400

hope it would be helpful.

2 Likes