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-1.4.14.2616-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[1]: 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-1.4.14.2616-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-1.4.14.2616-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-1.4.14.2616-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[3]: *** [/home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-1.4.14.2616-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-1.4.14.2616-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-1.4.14.2616-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[2]: *** [/home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-1.4.14.2616-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM/services4/system/omap3630/sysutils_linux.o] Error 1| make[1]: *** [_module_/home/sakoman/source/omap3-oe/tmp/work/omap3-multi-angstrom-linux-gnueabi/omap3-sgx-modules-1.4.14.2616-r70b/OMAP35x_Graphics_SDK_3_01_00_06/GFX_Linux_KM] Error 2| make[1]: 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-1.4.14.2616-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
Steve, the Graphics SDK gets validated against PSP kernel releases only. For example the latest 2.6.32 package,
http://processors.wiki.ti.com/index.php/AM35x-OMAP35x-PSP_03.00.00.05_Release_Notes
Derives from,
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=shortlog;h=refs/heads/pm
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:
https://gforge.ti.com/gf/download/docmanfileversion/203/3715/gfx_check.sh
Also read the below page,
http://processors.wiki.ti.com/index.php/SGXDbg
For User Interface queries, submit below details for faster response,
https://gforge.ti.com/gf/download/docmanfileversion/220/3798/UI_graphics_reqs_sheet_v1.xls
resource.h will be in asm/resource.h, in linux-2.6.33 replace in place of plat/resource.h
more about sgx :
http://e2e.ti.com/support/dsp/omap_applications_processors/f/447/p/62521/233584.aspx