This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4378: linux 5.4 sgx support

Part Number: AM4378
Other Parts Discussed in Thread: UKERNEL

so in setting up our system, coming from kernel 4.19 to 5.4 it seems like sgx support has changed. including it in our device tree generates an error and when i bitbake ti-sgx-ddk-um in my system i get a load of errors. i'm sure i must have forgotten to do/undo something but it isn't clear what that is. i am using kernel 5.4 and that builds fine. our .conf file does have these statements:

PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"

PREFERRED_PROVIDER_virtual/egl = "ti-sgx-ddk-um"

PREFERRED_PROVIDER_virtual/libgl = "mesa-gl"

PREFERRED_PROVIDER_virtual/libgles1 = "ti-sgx-ddk-um"

PREFERRED_PROVIDER_virtual/libgles2 = "ti-sgx-ddk-um"

 boiling it down the questions i have are:

1) do i need to do something different in my DTS file to tell the system that i want sgx support on my board?

2) what do i need to do to be able to build sgx package with these errors?

ERROR: ti-sgx-ddk-km-1.17.4948957-0x do_compile: oe_runmake failed
ERROR: ti-sgx-ddk-km-1.17.4948957-0x do_compile: ExecutionError('/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751', 1, None, None)
ERROR: Logfile of failure stored in: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/log.do_compile.32751
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 KERNEL_SRC=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source KERNELDIR=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source TARGET_PRODUCT=ti437x WINDOW_SYSTEM=nulldrmws KERNEL_PATH=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source KERNEL_VERSION=5.4.106-g023faefa70 CC=arm-yoe-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x=/usr/src/debug/ti-sgx-ddk-km/1.17.4948957-0x -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x=/usr/src/debug/ti-sgx-ddk-km/1.17.4948957-0x -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/recipe-sysroot= -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/recipe-sysroot-native= -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source=/usr/src/kernel LD=arm-yoe-linux-gnueabi-ld.bfd AR=arm-yoe-linux-gnueabi-ar O=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/amba: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/avf: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/bcma: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/byteorder: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/can: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/ceph: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/clk: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/crush: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/decompress: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/dma: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/dsa: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/extcon: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/firmware: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/fpga: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/fsl: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/gpio: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/greybus: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/hsi: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/i3c: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/iio: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/input: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/irqchip: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/isdn: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/lockd: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/mailbox: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/mfd: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/mlx4: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/mlx5: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/mmc: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/mtd: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/mux: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/netfilter: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/netfilter_arp: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/netfilter_bridge: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/netfilter_ipv4: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/netfilter_ipv6: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/perf: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/phy: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/pinctrl: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/platform_data: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/power: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/qed: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/raid: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/regulator: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/remoteproc: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/reset: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/rpmsg: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/rpmsg-remotedev: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/rtc: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/sched: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/soc: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/soundwire: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/spi: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/ssb: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/sunrpc: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/ulpi: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/unaligned: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/usb: Is a directory
| grep: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/wimax: Is a directory
| ../config/compiler.mk:96: host gcc
| ../config/compiler.mk:185: target arm-yoe-linux-gnueabi-gcc -mno-thumb-interwork -marm -fuse-ld=bfd -fmacro-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x=/usr/src/debug/ti-sgx-ddk-km/1.17.4948957-0x -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x=/usr/src/debug/ti-sgx-ddk-km/1.17.4948957-0x -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/recipe-sysroot= -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/recipe-sysroot-native= -fdebug-prefix-map=/home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source=/usr/src/kernel
| ******* Multiarch build: no
| ******* Primary arch: target_armhf
| ******* Secondary arch: none
| ../config/core.mk:513: $(KERNELDIR)/vmlinux does not exist. Kbuild may fail.
| CC [M] /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/osfunc.o
| CC [M] /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.o
| CC [M] /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/mutex.o
| CC [M] /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/mm.o
| CC [M] /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/event.o
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:94:15: error: variable 'pvr_proc_operations' has initializer but incomplete type
| 94 | static struct proc_ops pvr_proc_operations =
| | ^~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:96:10: error: 'struct proc_ops' has no member named 'proc_open'
| 96 | .proc_open = pvr_proc_open,
| | ^~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:96:35: warning: excess elements in struct initializer
| 96 | .proc_open = pvr_proc_open,
| | ^~~~~~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:96:35: note: (near initialization for 'pvr_proc_operations')
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:97:10: error: 'struct proc_ops' has no member named 'proc_read'
| 97 | .proc_read = seq_read,
| | ^~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:97:35: warning: excess elements in struct initializer
| 97 | .proc_read = seq_read,
| | ^~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:97:35: note: (near initialization for 'pvr_proc_operations')
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:98:10: error: 'struct proc_ops' has no member named 'proc_write'
| 98 | .proc_write = pvr_proc_write,
| | ^~~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:98:35: warning: excess elements in struct initializer
| 98 | .proc_write = pvr_proc_write,
| | ^~~~~~~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:98:35: note: (near initialization for 'pvr_proc_operations')
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:99:10: error: 'struct proc_ops' has no member named 'proc_lseek'
| 99 | .proc_lseek = seq_lseek,
| | ^~~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:99:35: warning: excess elements in struct initializer
| 99 | .proc_lseek = seq_lseek,
| | ^~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:99:35: note: (near initialization for 'pvr_proc_operations')
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:100:10: error: 'struct proc_ops' has no member named 'proc_release'
| 100 | .proc_release = seq_release,
| | ^~~~~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:100:27: warning: excess elements in struct initializer
| 100 | .proc_release = seq_release,
| | ^~~~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:100:27: note: (near initialization for 'pvr_proc_operations')
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c: In function 'CreateProcEntryInDirSeq':
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:439:54: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
| 439 | ppde->pde=proc_create_data(name, mode, pdir, &pvr_proc_operations, ppde);
| | ^~~~~~~~~~~~~~~~~~~~
| | |
| | struct proc_ops *
| In file included from /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:56:
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/proc_fs.h:47:48: note: expected 'const struct file_operations *' but argument is of type 'struct proc_ops *'
| 47 | const struct file_operations *,
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c: At top level:
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.c:94:24: error: storage size of 'pvr_proc_operations' isn't known
| 94 | static struct proc_ops pvr_proc_operations =
| | ^~~~~~~~~~~~~~~~~~~
| cc1: some warnings being treated as errors
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/scripts/Makefile.build:261: recipe for target '/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.o' failed
| make[4]: *** [/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/proc.o] Error 1
| make[4]: *** Waiting for unfinished jobs....
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/mm.c: In function '_VMallocWrapper':
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/mm.c:540:13: error: too few arguments to function '__vmalloc'
| 540 | pvRet = __vmalloc(uiBytes, gfp_mask);
| | ^~~~~~~~~
| In file included from /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/mm.c:59:
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/include/linux/vmalloc.h:99:14: note: declared here
| 99 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);
| | ^~~~~~~~~
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/scripts/Makefile.build:261: recipe for target '/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/mm.o' failed
| make[4]: *** [/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/mm.o] Error 1
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/osfunc.c: In function 'OSAcquirePhysPageAddr':
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/osfunc.c:3772:5: error: implicit declaration of function 'mmap_read_lock'; did you mean '_raw_read_lock'? [-Werror=implicit-function-declaration]
| 3772 | mmap_read_lock(current->mm);
| | ^~~~~~~~~~~~~~
| | _raw_read_lock
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/osfunc.c:3971:5: error: implicit declaration of function 'mmap_read_unlock'; did you mean '_raw_read_unlock'? [-Werror=implicit-function-declaration]
| 3971 | mmap_read_unlock(current->mm);
| | ^~~~~~~~~~~~~~~~
| | _raw_read_unlock
| cc1: some warnings being treated as errors
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/scripts/Makefile.build:261: recipe for target '/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/osfunc.o' failed
| make[4]: *** [/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild/services4/srvkm/env/linux/osfunc.o] Error 1
| /home/UTI/michael.jacobson/yoe-distro/build/tmp/work-shared/am437x-uti/kernel-source/Makefile:1734: recipe for target '/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild' failed
| make[3]: *** [/home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/git/eurasia_km/eurasiacon/binary_omap_linux_nulldrmws_release/target_armhf/kbuild] Error 2
| Makefile:179: recipe for target 'sub-make' failed
| make[2]: *** [sub-make] Error 2
| eurasiacon/build/linux2/kbuild/kbuild.mk:56: recipe for target 'kbuild' failed
| make[1]: *** [kbuild] Error 2
| ../config/core.mk:789: recipe for target 'build' failed
| make: *** [build] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751:195 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log, /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751, line 195
| #2: die, /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751, line 176
| #3: oe_runmake, /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751, line 165
| #4: module_do_compile, /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751, line 154
| #5: do_compile, /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751, line 148
| #6: main, /home/UTI/michael.jacobson/yoe-distro/build/tmp/work/am437x_uti-yoe-linux-gnueabi/ti-sgx-ddk-km/1.17.4948957-0x/temp/run.do_compile.32751, line 199
ERROR: Task (/home/UTI/michael.jacobson/yoe-distro/sources/meta-ti/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb:do_compile) failed with exit code '1'

  • Hello,

    Have you tried building the arago-dunfell-config.txt because that uses Kernel 5.4 with GPU enabled? It might be worth fetching sources from arago-dunfell and comparing against your custom build. 

    Regards,
    Krunal

  • i updated my yocto implementation, and changed my layer's recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bbappend to include:

    BRANCH = "ti-img-sgx/${PV}/k5.4"

    SRCREV = "bfe83bbabb3849c24b03d5172cf678e7c5915e04"

    because the default bb file for this points to 5.10 (which doesn't have an SDK so it's unsupported the last i looked so i don't know why it is like this)

    and that seemed to work as it builds and boots into my application with the right graphics

    when i try to use the 5.10 kernel version it builds but i get this error at boot up:

    [ 108.451619] PVR_K:(Error): PollForValueKM: Timeout. Expected 0x1 but found 0x0 (mask 0x1).
    [ 108.510558] PVR_K:(Error): SGXInitialise: Wait for uKernel initialisation failed
    [ 108.557600] PVR_K: SGX debug (SGX_DDK sgxddk 1.17@4948957)
    [ 108.588376] PVR_K: Host Ctl flags= 00000006
    [ 108.611026] PVR_K: SGX Host control:
    [ 108.631259] PVR_K: (HC-0) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 108.663321] PVR_K: (HC-10) 0x00000000 0x00000000 0x00000014 0x00030D40
    [ 108.699006] PVR_K: (HC-20) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 108.731243] PVR_K: (HC-30) 0x00000000 0x00000001 0xF485EB90 0x00000000
    [ 108.763638] PVR_K: (HC-40) 0x00000000 0x00000000 0x00000000 0x3A026938
    [ 108.790648] PVR_K: SGX TA/3D control:
    [ 108.806829] PVR_K: (T3C-0) 0x0F003000 0x0F003140 0x0F002000 0x00000000
    [ 108.835142] PVR_K: (T3C-10) 0x00000000 0x00000000 0x00000002 0x00000000
    [ 108.862137] PVR_K: (T3C-20) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 108.889563] PVR_K: (T3C-30) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 108.917690] PVR_K: (T3C-40) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 108.943584] PVR_K: (T3C-50) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 108.970678] PVR_K: (T3C-60) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 108.996730] PVR_K: (T3C-70) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 109.022948] PVR_K: (T3C-80) 0x00000000 0x00000000 0x00000000 0x0F000000
    [ 109.050658] PVR_K: (T3C-90) 0x82F37000 0x00000000 0x00000000 0x00000000
    [ 109.078601] PVR_K: (T3C-A0) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 109.105890] PVR_K: (T3C-B0) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 109.132652] PVR_K: (T3C-C0) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 109.158882] PVR_K: (T3C-D0) 0x0F000000 0x8000B000 0x8004B000 0x0F004000
    [ 109.185704] PVR_K: (T3C-E0) 0x0F00A420 0x0F00A740 0x00000000 0x00000000
    [ 109.213472] PVR_K: (T3C-F0) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 109.238905] PVR_K: (T3C-100) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 109.265845] PVR_K: (T3C-110) 0x00000000 0x00000000 0x00000000 0x00000000
    [ 109.293472] PVR_K: (T3C-120) 0x00000000 0x00000000 0x82683700 0x0C673600
    [ 109.321992] PVR_K: SGX Kernel CCB WO:0x0 RO:0x0
    [ 109.349536] PVR_K: Active syncs
    [ 109.367257] PVR_K:(Error): SGXPostPowerState: SGXInitialise failed
    [ 109.402977] PVR_K:(Error): PVRSRVSetDevicePowerStateKM : Transition to 0 FAILED 0x18
    [ 109.444430] PVR_K:(Error): SGXScheduleCCBCommandKM failed to power up device - ui32CallerID:-1 eError:24
    [ 109.488781] PVR_K:(Error): SGXGetMiscInfoUkernel: SGXScheduleCCBCommandKM failed.
    [ 109.519638] PVR_K: (FAIL) SGXInit: Unable to validate hardware core revision
    [ 109.574761] PVR_K:(Error): PVRSRVFinaliseSystem: Failed PVRSRVDevInitCompatCheck call (device index: 0)
    [ 109.574943] PVR_K:(Error): BridgedDispatchKM: Initialisation failed. Driver unusable.
    [ 109.580749] PVR_K:(Error): BridgedDispatchKM: Initialisation failed. Driver unusable.
    [ 109.595112] PVR_K:(Error): BridgedDispatchKM: Initialisation failed. Driver unusable.