GPU and hardware video support

These are for Kernel 5.0 But not sure whether it is device specific or not.

@chewitt Any advice on this ?

it was wrong permission on rules.d conf I changed it to 755 and now it is showing
Unable to Create GUI. Exiting.

Will go through the Log and update it here.

Kodi Crash Log: Link
Here the concern is not kodi but graphic driver for me. I just need to try and get the graphic work smoothly if not 4k.

EDIT :
Finally found something which I installed wrongly while testing. Had installed fbturbo for sunxi instead of amlogic. So I installed the amlogic one and now video is much smooth but still the frame change can be figured out while watching a video. Lima seems to work for this built, chromium is much lighter than Firefox for watching online videos.
Tested it for long time with multiple display screens.

Next I will make new built with fbturbo of c2 thats the only one available for amlogic s905x, incase if anyone knows them kindly advice with fbturbo to use.

Getting 205+ fps on glxgears with fbturbo-c2.

Kodi issue is still there, will look into this some other time until someone else who have faced such problem can advice.

This looks like you previously built Kodi with libmali so the wrong EGL libs are being used:

1. Thread 5 (Thread 0xffff81ffae50 (LWP 10545)):
2. #0  0x0000ffff97b347f0 in pthread_cond_wait@@GLIBC_2.17 () from /usr/lib/libpthread.so.0
3. #1  0x0000ffff96b47c98 in _mali_osu_lock_wait () from /usr/lib/mali-egl/libGLESv2.so.2
4. #2  0x0000ffff96b44ca0 in ?? () from /usr/lib/mali-egl/libGLESv2.so.2
5. #3  0x0000ffffe7d39190 in ?? ()
6. Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Iā€™d also recommend you build mesa master to pick up the latest lima changes.

So you mean, I have to update kodi as well as mesa?

I checked Mesa was built 4 days ago with 19.0.3-1 and kodi 5 days ago with 17.6-6

If you built Kodi against libmali before switching to lima you probably have a polluted toolchain and Kodi is being linked against mali EGL libs not the equivalent ones from mesa, and (surprise) Kodi is not able to open the mesa EGL context correctly.

Well the libmali was enabled in my kernel built and it was from the beginning.

The kodi i used was built by archlinuxarm team thatā€™s the one I used and I assume it is for odroid c2.

Now what do you suggest me to do in this case?
Do I have to build kodi with with lima enabled?

Please guide me how to get kodi to link with lima? And how to get it working. This is just for test and developement purpose only. I m not going to use kodi for myself. I am just trying to figure out ways to make stable manjaro builtā€™s for khadas vim.

I tried compiling kodi from the same pkgbuild by archlinuxarm kodi-c2 on my device with lima enabled and still I am getting the same error. :frowning:

As recommended, I tried the latest builds and still the same issue.
I am trying to figure out thisā€¦ I had the exact same issue even after I used Linux 5.2.1 with latest Lima and mesa. Still getting the exact same error.

Any recommendation on how I can get a working kodi for Kvim1 with Manjaro Arch ?

@chewitt
Any advice on how to get a smooth framebuffer?
Framebuffer driver Link
Kodi Link

My situation is I built a manjaro for khadas vim1 using manjaro-arm-installer and using balbes modified kernel source code with lima enabled.

But I think the framebuffer is little slow as compared to the librelec built.

I am going to dig into the balbes libreelec built and try to find out which framebuffer driver was used.

I would need your advice on how I can get a stable framebuffer for archā€¦

2 posts were split to a new topic: Linux support for both NPU and GPU

I can try to install lima driver but dont work :frowning:

Hello And welcome to the forum.

How did you install lima?
It is part of mesa package. You will need 01-lima.conf in /etc/X11/xorg.d/ directory
This should be the content of the file.

1 Like