On Sunday, 22 January 2017 01:12:53 UTC+1, RobertCNelson wrote:
>
> It's a different stack, and we don't really have TI's new userspace 
> working yet.


I have been able to successfully run kmscube on the new stack today!

Here's the set of magic ingredients:

https://github.com/dutchanddutch/bb-kernel/tree/am33x-v4.9/patches/drivers/ti/sgx
https://github.com/mvduin/omap5-sgx-ddk-linux  (I included my build script)
https://github.com/mvduin/omap5-sgx-ddk-um-linux
https://github.com/mvduin/libgbm
https://github.com/mvduin/kmscube

The last four repos are all clones of git.ti.com repositories with minor 
patches applied.

The key observation is that libpvrGBMWSEGL is not just a WSEGL backend but 
also a GBM backend under the alias "gbm_pvr.so". This requires a libgbm 
which supports backend plugins, which seems to have been removed from 
mainline libgbm. Beware that libgbm only searches for plugins in 
${prefix}/lib/gbm/ so be sure to use the same prefix for libgbm as for 
omap5-sgx-ddk-um-linux, or add appropriate symlinks.

(The libraries have quite a few completely bogus dependencies, e.g. 
libdrm_omap is of course of no use on an am335x, but it doesn't cause any 
real issues.)

I currently have this in my /etc/powervr.ini:
[default]
WindowSystem=libpvrDRMWSEGL.so
DefaultPixelFormat=RGB565

kmscube ignores the WindowSystem but some older apps like gles1test1 do 
still care. I'm not sure where I picked up the DefaultPixelFormat or 
whether it does anything useful, but if it does anything it's probably 
desirable.

Now, who's going to give Wayland a swing? :-)

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/823b3035-00be-4445-8648-6877d1197a53%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to