Enable Lima on headless devices


Recommended Posts

On some devices (mostly headless) like Pine A64 LTS and other SBCs with Allwinner SoCs is Lima blacklisted by default or not supported by distribution.

For getting Lima work, you need to use distribution, which have already Mesa with Lima support (Mesa 20.1+) (or compile latest Mesa from sources, but this is not included in this tutorial).

At the moment of writing, it's Ubuntu Focal and Debian Bullseye. I personally prefer Debian more, so in my case, download Debian Bullseye image for your SBC and burn it into the board.

 

After booting into your board, find file named /etc/modprobe.d/blacklist-NAMEOFYOURSBC.conf (for me it's blacklist-pinea64-lts.conf),

find line with:

blacklist lima

and comment it by adding # at begin of this line, so it will look like this:

# blacklist lima

 

Reboot the device and Lima should work finely.

 

If you will have any questions or issues, let me know :)

 

- gamiee

Link to post
Share on other sites
Armbian is a community driven open source project. Do you like to contribute your code?
On 7/8/2020 at 10:17 PM, gamelaster said:

At the moment of writing, it's only Debian Bullseye.

For other distributions you can always install mesa from source. Also there is a PPA from oibaf which though does not seem to cut it with its the prebuild debs. Had more success with doing the first variant.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...