On 6/5/23 12:17, Matthias Schnelte via lists.yoctoproject.org wrote:
Hello everyone,

I was trying to build kirkstone for am335x with a SGX GPU.
I was not able to use it with mesa.

On the latest kirkstone (1743b0101) (I tried it with the latest master, too) if 
I set

PREFERRED_PROVIDER_virtual/gpudriver = "ti-sgx-ddk-km"

bitbaking mesa-pvr fails with

../git/meson.build:21:0: ERROR: Options "sgx" are not in allowed choices: "auto, 
kmsro, radeonsi, r300, r600, nouveau, freedreno, swrast, v3d, vc4, etnaviv, tegra, i915, svga, 
virgl, panfrost, iris, lima, zink, d3d12, asahi, crocus, pvr"


There is a branch wip2/kirkstone/sgx-1.17-4948957/22.0 on the mesa-pvr 
repository that includes this option. But this branch fails to build with lots 
of undefined reference errors.

So the only way to build an image with working SGX support for me was to port 
the ti-sgx-ddk-um_1.17.4948957.bb from dunfell over to kirkstone and set 
preffered providers for my target as in dunfell.

PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles1 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgles2 = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/libgbm = "ti-sgx-ddk-um"
PREFERRED_PROVIDER_virtual/gpudriver = "ti-sgx-ddk-km"

Is this currently the only way to get SGX working or am I doing sth wrong?

Tnx.

Matthias






Hey,

So, fun thing is, that branch does have some initial work to get SGX up and running in kirkstone, but it also introduces a cyclic dependency in its current state that yocto is unable to resolve. Technically there was some work to fix this by migrating sgx to use the new PVR-DRI interface present in Rogue, which is much more stable and would allow for greater code reuse between the platforms but it's been a real pain so far.

To make a long story short, that work is currently stalled while we stabilize rogue graphics (and the rest of the graphics utilities) under kirkstone. Expect that work to be picked back up for 9.1 when greater general legacy device support is present.

Regards,
Randolph Sapp
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#16669): 
https://lists.yoctoproject.org/g/meta-ti/message/16669
Mute This Topic: https://lists.yoctoproject.org/mt/99345421/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to