This latest release seems to require that one use the zoom kernel repo.
I have attempted to build using linux-omap and have run into a couple of issues already.
The first issue is that the sgx modules require a kernel function that is not present in linux-omap (omap_rev_lt_3_0):
ERROR: log data follows (/home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-220.127.116.1116-r70b/temp/log.do_compile.19204)| NOTE: make -j 6 -e MAKEFLAGS= KERNEL_PATH=/home/sakoman/source/omap3-oe/tmp/staging/omap3-multi-angstrom-linux-gnueabi/kernel KERNEL_SRC=/home/sakoman/source/omap3-oe/tmp/staging/omap3-multi-angstrom-linux-gnueabi/kernel KDIR=/home/sakoman/source/omap3-oe/tmp/staging/omap3-multi-angstrom-linux-gnueabi/kernel KERNELDIR=/home/sakoman/source/omap3-oe/tmp/staging/omap3-multi-angstrom-linux-gnueabi/kernel KERNEL_VERSION=2.6.33 CC=arm-angstrom-linux-gnueabi-gcc LD=arm-angstrom-linux-gnueabi-ld AR=arm-angstrom-linux-gnueabi-ar BUILD=release TI_PLATFORM=omap3630| make -C /home/sakoman/source/omap3-oe/tmp/staging/omap3-multi-angstrom-linux-gnueabi/kernel M=`pwd`| make: Entering directory `/home/sakoman/source/omap3-oe/tmp/staging/omap3-multi-angstrom-linux-gnueabi/kernel'| CC [M] /home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-18.104.22.16816-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o| /home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-22.214.171.12416-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c: In function ‘bc_cat_init’:| /home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-126.96.36.19916-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.c:490: error: implicit declaration of function ‘omap_rev_lt_3_0’| make: *** [/home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-188.8.131.5216-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/3rdparty/bufferclass_ti/bc_cat.o] Error 1
I found a patch in the zoom repo that provides this function, but found it does not apply cleanly on top of linux-omap tree. I recreated the patch for linux-omap 2.6.33, but then encountered a second issue. The modules assume the existence of plat/resource.h, which again is something that only exists in the zoom tree:
| CC [M] /home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-184.108.40.20616-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.o| /home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-220.127.116.1116-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.c:37:27: error: plat/resource.h: No such file or directory| make: *** [/home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-18.104.22.16816-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.o] Error 1| make: *** [_module_/home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-22.214.171.12416-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM] Error 2| make: Leaving directory `/home/sakoman/source/omap3-oe/tmp/staging/omap3-multi-angstrom-linux-gnueabi/kernel'| make: *** [all] Error 2| FATAL: oe_runmake failedNOTE: Task failed: /home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-126.96.36.19916-r70b/temp/log.do_compile.20495
Is there a solution for those of us who like to use linux-omap, or is it the intent to only support the zoom kernel tree with the Graphics SDK?
Steve, the Graphics SDK gets validated against PSP kernel releases only. For example the latest 2.6.32 package,
Since source code is available for the kernel modules, you should change it to suit the particular kernel you are using.
In the particular cases you mentioned, if there is an alternate header file or is located in another location, you could include it and verify.
Note: Post the output of below Script, while posting queries related to SGX drivers:
Also read the below page,
For User Interface queries, submit below details for faster response,
resource.h will be in asm/resource.h, in linux-2.6.33 replace in place of plat/resource.h
more about sgx :
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.