I need some help get Yocto dunfell running on a beaglebone with ti-sgx-ddk-km support. I tried to get it run with Poky dunfell, Kernel 5.10 and the current meta-ti dunfell branch.
It seems that the dunfell branch of ti-sgx-ddkkm is already using kernel 5.10. I compile everything but during boot the kernel I got the following error message.
[ 8.183762] PVR_K: UM DDK-(4948957) and KM DDK-(4948957) match. [ OK ]
[ 9.194521] PVR_K:(Error): PollForValueKM: Timeout. Expected 0x1 but found 0x0 (mask 0x1).
[ 9.202843] PVR_K:(Error): SGXInitialise: Wait for uKernel initialisation failed
[ 9.210322] PVR_K: SGX debug (SGX_DDK sgxddk 1.17@4948957)
[ 9.215864] PVR_K: Host Ctl flags= 00000006
[ 9.220152] PVR_K: SGX Host control:
[ 9.223744] PVR_K: (HC-0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.230323] PVR_K: (HC-10) 0x00000000 0x00000000 0x00000014 0x00030D40
[ 9.236993] PVR_K: (HC-20) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.243642] PVR_K: (HC-30) 0x00000000 0x00000000 0xEE9B5530 0x00000000
[ 9.250298] PVR_K: (HC-40) 0x00000000 0x00000000 0x00000000 0xC2374E58
[ 9.256951] PVR_K: SGX TA/3D control:
[ 9.260634] PVR_K: (T3C-0) 0x0F003000 0x0F003140 0x0F002000 0x00000000
[ 9.274356] PVR_K: (T3C-10) 0x00000000 0x00000000 0x00000002 0x00000000
[ 9.281277] PVR_K: (T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.288108] PVR_K: (T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.295132] PVR_K: (T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.301869] PVR_K: (T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.308648] PVR_K: (T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.315428] PVR_K: (T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.322160] PVR_K: (T3C-80) 0x00000000 0x00000000 0x00000000 0x0F000000
[ 9.328908] PVR_K: (T3C-90) 0x82D62000 0x00000000 0x00000000 0x00000000
[ 9.335664] PVR_K: (T3C-A0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.342395] PVR_K: (T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.349142] PVR_K: (T3C-C0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.355897] PVR_K: (T3C-D0) 0x0F000000 0x8000B000 0x8004B000 0x0F004000
[ 9.362634] PVR_K: (T3C-E0) 0x0F00A420 0x0F00A740 0x00000000 0x00000000
[ 9.369376] PVR_K: (T3C-F0) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.376131] PVR_K: (T3C-100) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.382954] PVR_K: (T3C-110) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.389785] PVR_K: (T3C-120) 0x00000000 0x00000000 0x00000000 0x00000000
[ 9.396656] PVR_K: SGX Kernel CCB WO:0x0 RO:0x0
[ 9.401207] PVR_K: Active syncs
[ 9.404366] PVR_K:(Error): SGXPostPowerState: SGXInitialise failed
[ 9.410596] PVR_K:(Error): PVRSRVSetDevicePowerStateKM : Transition to 0 FAILED 0x18
[ 9.418440] PVR_K:(Error): SGXScheduleCCBCommandKM failed to power up device - ui32CallerID:-1 eError:24
[ 9.427985] PVR_K:(Error): SGXGetMiscInfoUkernel: SGXScheduleCCBCommandKM failed.
[ 9.435518] PVR_K: (FAIL) SGXInit: Unable to validate hardware core revision
[ 9.442601] PVR_K:(Error): PVRSRVFinaliseSystem: Failed PVRSRVDevInitCompatCheck call (device index: 0)
[ 9.453356] PVR_K:(Error): BridgedDispatchKM: Initialisation failed. Driver unusable.
Is there something wrong with my configuration or is the ti-sgx-ddk-km feature not ready to use in meta-ti dunfell branch? In moment I'm using only the default ti kernel options and loading the kernel module with this settings in my recipe
MACHINE_EXTRA_RDEPENDS += "ti-sgx-ddk-km"
IMAGE_INSTALL_append = " ti-sgx-ddk-km ti-sgx-ddk-um libdrm libdrm-tests"
DEPENDS_remove = "virtual/libgl"
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"
If somebody know which combination works I would be glad to get this information.
Thanks for your support