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.

SGX + QT issue on DM8168 RDK3.01

Other Parts Discussed in Thread: UKERNEL

I am trying on DM8168 with QT for support powervr  without X11.

Because the system limit , i chang some paths 

/etc/init.d      to /usr/local/etc/init.d

/lib/modules to /usr/lib/modules

/usr/bin        to /usr/local/bin/

So the log path has little different with 

http://processors.wiki.ti.com/index.php/Graphics_SDK_Quick_installation_and_user_guide#Using_the_PIXMAP_surface_for_Drawing

MY 38xx-demo export 

/usr/local/etc/init.d/38xx-demo
/dev/mem opened.
Memory mapped at address 0x2aeed000.
Value at address 0x48180F04 (0x2aeedf04): 0x1
Written 0x0; readback 0x0
/dev/mem opened.
Memory mapped at address 0x2aeaf000.
Value at address 0x48180900 (0x2aeaf900): 0x2
Written 0x2; readback 0x2
/dev/mem opened.
Memory mapped at address 0x2ae6a000.
Value at address 0x48180920 (0x2ae6a920): 0x70000
Written 0x2; readback 0x2
0x10205
debug6.x
SGX Revision is 125...
installing 6.x SGX debug user libraries

Installing PowerVR Consumer/Embedded DDK sgxddk_1.7@867897 on target

File system installation root is /

Uninstalling existing version sgxddk_1.7@867897
Uninstallation completed.
boot script rc.pvr -> /usr/local/etc/init.d/rc.pvr
kernel module pvrsrvkm.ko -> /usr/local/lib/modules/2.6.37+/extra/pvrsrvkm.ko
kernel module omaplfb.ko -> /usr/local/lib/modules/2.6.37+/extra/omaplfb.ko
shared library libGLES_CM.so -> /usr/local/lib/libGLES_CM.so.1.7.867897
shared library libusc.so -> /usr/local/lib/libusc.so.1.7.867897
shared library libGLESv2.so -> /usr/local/lib/libGLESv2.so.1.7.867897
shared library libglslcompiler.so -> /usr/local/lib/libglslcompiler.so.1.7.867897
shared library libOpenVG.so -> /usr/local/lib/libOpenVG.so.1.7.867897
shared library libOpenVGU.so -> /usr/local/lib/libOpenVGU.so.1.7.867897
shared library libIMGegl.so -> /usr/local/lib/libIMGegl.so.1.7.867897
shared library libEGL.so -> /usr/local/lib/libEGL.so.1.7.867897
shared library libpvr2d.so -> /usr/local/lib/libpvr2d.so.1.7.867897
shared library libpvrPVR2D_BLITWSEGL.so -> /usr/local/lib/libpvrPVR2D_BLITWSEGL.so.1.7.867897
shared library libpvrPVR2D_FLIPWSEGL.so -> /usr/local/lib/libpvrPVR2D_FLIPWSEGL.so.1.7.867897
shared library libpvrPVR2D_FRONTWSEGL.so -> /usr/local/lib/libpvrPVR2D_FRONTWSEGL.so.1.7.867897
shared library libpvrPVR2D_LINUXFBWSEGL.so -> /usr/local/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.7.867897
shared library libpvrEWS_WSEGL.so -> /usr/local/lib/libpvrEWS_WSEGL.so.1.7.867897
shared library libsrv_um.so -> /usr/local/lib/libsrv_um.so.1.7.867897
shared library libsrv_init.so -> /usr/local/lib/libsrv_init.so.1.7.867897
shared library libPVRScopeServices.so -> /usr/local/lib/libPVRScopeServices.so.1.7.867897
shared library libews.so -> /usr/local/lib/libews.so.1.7.867897
binary pvrsrvinit -> /usr/local/bin/pvrsrvinit
binary sgx_init_test -> /usr/local/bin/sgx_init_test
binary ews_server -> /usr/local/bin/ews_server
binary ews_server_es2 -> /usr/local/bin/ews_server_es2
binary services_test -> /usr/local/bin/services_test
binary sgx_blit_test -> /usr/local/bin/sgx_blit_test
binary sgx_clipblit_test -> /usr/local/bin/sgx_clipblit_test
binary sgx_flip_test -> /usr/local/bin/sgx_flip_test
binary sgx_render_flip_test -> /usr/local/bin/sgx_render_flip_test
binary pvr2d_test -> /usr/local/bin/pvr2d_test
binary gles1test1 -> /usr/local/bin/gles1test1
binary gles2test1 -> /usr/local/bin/gles2test1
shader glsltest1_vertshader.txt -> /usr/local/bin/glsltest1_vertshader.txt
shader glsltest1_fragshaderA.txt -> /usr/local/bin/glsltest1_fragshaderA.txt
shader glsltest1_fragshaderB.txt -> /usr/local/bin/glsltest1_fragshaderB.txt
binary ovg_unit_test -> /usr/local/bin/ovg_unit_test
binary eglinfo -> /usr/local/bin/eglinfo
binary ews_test_gles1 -> /usr/local/bin/ews_test_gles1
binary ews_test_gles2 -> /usr/local/bin/ews_test_gles2
shader ews_test_gles2_main.vert -> /usr/local/bin/ews_test_gles2_main.vert
shader ews_test_gles2_main.frag -> /usr/local/bin/ews_test_gles2_main.frag
shader ews_test_gles2_pp.vert -> /usr/local/bin/ews_test_gles2_pp.vert
shader ews_test_gles2_pp.frag -> /usr/local/bin/ews_test_gles2_pp.frag
binary ews_test_swrender -> /usr/local/bin/ews_test_swrender

Installation complete!
You may now reboot your target.

+ load_pvr
+ /sbin/modprobe -q pvrsrvkm

PVR: PVRCore_Init
PVR: PVRSRVDriverProbe(pDevice=7f1d68d8)
PVR: EnableSystemClocks: Enabling System Clocks
PVR: sysutils_linux_wqueue_compat: GPTIMER11 clock is 0MHz
PVR: Setting GPTIMER11 mode to posted (currently is non-posted)
PVR: OSUnMapPhysToLin: unmapping 4 bytes from fa048054
PVR: OSUnMapPhysToLin: unmapping 4 bytes from fa048038
PVR: PVRCore_Init: major device 247
+ grep+ cut -b1,2,3
pvrsrvkm$ /proc/devices
+ pvr_maj=247
+ /bin/rm -f /dev/pvrsrvkm
+ /bin/mknod /dev/pvrsrvkm c 247 0
+ /bin/chmod 666 /dev/pvrsrvkm
+ /usr/local/bin/pvrsrvinit
PVR: Installing MISR with cookie 7f1d9918
PVR: Installing device LISR SGX ISR on IRQ 37 with cookie 8c893a00
PVR: OSUnMapPhysToLin: unmapping 65536 bytes from 94ea0000
PVR_K:(Warning): SysFinalise: Version string: SGX revision = 1.2.5 [583, Workdir_dm8168/dvrrdk_3.01/Current/Graphics_SDK_4_06_00_02/GFX_Linu]
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 0 bytes
+ /sbin/modprobe -q omaplfb
+ echo Loaded PowerVR consumer services.
Loaded PowerVR consumer services.
+ return 0

Then i build QT 4.7.3 with following command

My QT configure

./configure -prefix  /opt/qt-4.7.3 -embedded arm -platform qws/linux-x86-g++ -xplatform qws/linux-TIarmv7-sgx-g++ -depths 16,24,32 -no-mmx -no-3dnow -no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -opengl es2 -qt-gfx-transformed -qt-gfx-vnc -qt-gfx-linuxfb -qt-gfx-multiscreen -plugin-gfx-powervr -D QT_QWS_CLIENTBLIT -opensource -confirm-license -verbose -openvg -v

MY gfx_check.sh export 

root@localhost:/opt/ti81xx-geo/ti816x# sh ./gfx_check.sh
WSEGL settings
[default]
#WindowSystem=libpvrPVR2D_FRONTWSEGL.so
WindowSystem=libpvrQWSWSEGL.so
ParamBufferSize=33554432

------
ARM CPU information
Processor : ARMv7 Processor rev 2 (v7l)
BogoMIPS : 986.31
Features : swp half thumb fastmult vfp edsp neon vfpv3
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x3
CPU part : 0xc08
CPU revision : 2

Hardware : ti8168_dvr
Revision : 0000
Serial : 0000000000000000
------
SGX driver information
Version CustomerTI_OMAP4430_Linux_GPL sgxddk 17 1.7@867897 (debug) /Workdir_dm8168/dvrrdk_3.01/Current/Graphics_SDK_4_06_00_02/GFX_Linux_KM
System Version String: SGX revision = 1.2.5
------
Framebuffer settings

mode "1920x2160-31"
# D: 74.250 MHz, H: 33.750 kHz, V: 30.935 Hz
geometry 1920 2160 1920 2160 32
timings 13468 148 88 15 2 44 5
laced true
rgba 8/16,8/8,8/0,8/24
endmode

Frame buffer device information:
Name : ti81xxfb
Address : 0x8e800000
Size : 16588800
Type : PACKED PIXELS
Visual : TRUECOLOR
XPanStep : 1
YPanStep : 1
YWrapStep : 0
LineLength : 7680
Accelerator : No
------
Rotation settings
0
------
Kernel Module information
Module        Size    Used by
omaplfb      10730   0
pvrsrvkm    402434 1 omaplfb
ti81xxhdmi  16275   0
ti81xxfb       9779     1
vpss           74769   3 omaplfb,ti81xxhdmi,ti81xxfb
osa_kermod 9177  0
syslink     1116458 0
------
Boot settings
mem=256M console=ttyO2,115200n8 root=/dev/nfs rw nfsroot=192.168.1.228:/Workdir_dm8168/dvrrdk_3.01/Current/target/rfs-system ip=192.168.1.120
------
Linux Kernel version
Linux localhost 2.6.37+ #2 Tue Oct 23 19:05:03 CST 2012 armv7l unknown

root@localhost:/opt/ti81xx-geo/usr/local/etc/init.d# cat /proc/cmdline
mem=256M console=ttyO2,115200n8 root=/dev/nfs rw nfsroot=192.168.1.228:/Workdir_dm8168/dvrrdk_3.01/Current/target/rfs-system ip=192.168.1.129
:192.168.1.228:192.168.0.1:255.255.248.0::eth0:off vram=24M ti81xxfb.vram=0:24M notifyk.vpssm3_sva=0xbe440000

MY opengl ES test

I use Graphics_SDK_4_06_00_02 to build

>> make BUILD=debug OMAPES=6.x SUPPORT_XORG=0 FBDEV=yes all



I try /opt/gfxsdkdemos/ogles2/OGLES2Coverflow to test my powervr function, i can not see anything on my screen.

And i got following error messages.


root@localhost:/opt/ti81xx-geo/ti816x# /opt/gfxsdkdemos/ogles2/OGLES2Coverflow 

Can't open keypad input device (/dev/input/event0)
PVR: Hint: Setting ParamBufferSize to 33554432
PVR: Hint: Setting WindowSystem to libpvrQWSWSEGL.so
PVR:(Error): PVRSRVMetricsTimeNow: using (potentially) low resolution timer [110, /pvr_metrics.c]
PVRShell: EGL 1.4 initialized
PVR:(Error): OSIsProcessPrivileged: not implemented, default returns false [593, /osfunc_um.c]
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_PREGEN_BUFFER [803, /eglglue.c]
PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [57, /metrics.]
PVR: Bytes : 512 1024 2048 4096 8192 16384 32768 65536 131072
PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
PVR: H -> VB: 0.00 0.00 640.04 1280.08 1280.08 1024.06 682.71 538.98 640.04
PVR: H -> H: 0.00 320.02 0.00 640.04 1280.08 1280.08 1137.85 1024.06 1024.06
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 2139737 bytes
PVR:
PVR: 43461 bytes still allocated in 36 allocations
PVR:
PVR: 1 - 32 bytes at 0x154698 - eurasiacon/imgegl/cfg_core.c:275
PVR: 2 - 32 bytes at 0x154588 - eurasiacon/imgegl/cfg_core.c:56
PVR: 3 - 128 bytes at 0x154700 - eurasiacon/imgegl/cfg_core.c:275
PVR: 4 - 32 bytes at 0x154510 - eurasiacon/imgegl/cfg_core.c:56
PVR: 5 - 32 bytes at 0x154498 - eurasiacon/imgegl/cfg_core.c:56
PVR: 6 - 32 bytes at 0x154420 - eurasiacon/imgegl/cfg_core.c:56
PVR: 7 - 32 bytes at 0x1543a8 - eurasiacon/imgegl/cfg_core.c:56
PVR: 8 - 620 bytes at 0x1540e8 - eurasiacon/imgegl/khronos_egl.c:3138
PVR: 9 - 725 bytes at 0x153db8 - eurasiacon/opengles2/misc.c:489
PVR: 10 - 724 bytes at 0x1533b0 - eurasiacon/opengles2/shader.c:1499
PVR: 11 - 864 bytes at 0x152ff8 - eurasiacon/opengles2/texmgmt.c:2556
PVR: 12 - 140 bytes at 0x152f18 - eurasiacon/opengles2/texmgmt.c:2491
PVR: 13 - 5184 bytes at 0x151a80 - eurasiacon/opengles2/texmgmt.c:2556
PVR: 14 - 140 bytes at 0x1519a0 - eurasiacon/opengles2/texmgmt.c:2491
PVR: 15 - 864 bytes at 0x1515e8 - eurasiacon/opengles2/texmgmt.c:2556
PVR: 16 - 140 bytes at 0x151508 - eurasiacon/opengles2/texmgmt.c:2491
PVR: 17 - 4096 bytes at 0x1504b0 - eurasiacon/opengles2/statehash.c:48
PVR: 18 - 536 bytes at 0x150208 - eurasiacon/opengles2/names.c:179
PVR: 19 - 536 bytes at 0x14ff98 - eurasiacon/opengles2/names.c:179
PVR: 20 - 536 bytes at 0x14fd28 - eurasiacon/opengles2/names.c:179
PVR: 21 - 536 bytes at 0x14fab8 - eurasiacon/opengles2/names.c:179
PVR: 22 - 536 bytes at 0x14f848 - eurasiacon/opengles2/names.c:179
PVR: 23 - 536 bytes at 0x14f5d8 - eurasiacon/opengles2/names.c:179
PVR: 24 - 68 bytes at 0x1498f8 - eurasiacon/opengles2/texmgmt.c:2827
PVR: 25 - 180 bytes at 0x14f018 - eurasiacon/opengles2/eglglue.c:265
PVR: 26 - 8160 bytes at 0x14cfe0 - eurasiacon/imgegl/srv.c:388
PVR: 27 - 13500 bytes at 0x149ad0 - eurasiacon/opengles2/eglglue.c:43
PVR: 28 - 32 bytes at 0x149990 - eurasiacon/imgegl/cfg_core.c:275
PVR: 29 - 32 bytes at 0x149880 - eurasiacon/imgegl/cfg_core.c:56
PVR: 30 - 128 bytes at 0x1499f8 - eurasiacon/imgegl/cfg_core.c:275
PVR: 31 - 32 bytes at 0x149808 - eurasiacon/imgegl/cfg_core.c:56
PVR: 32 - 32 bytes at 0x149790 - eurasiacon/imgegl/cfg_core.c:56
PVR: 33 - 32 bytes at 0x149718 - eurasiacon/imgegl/cfg_core.c:56
PVR: 34 - 32 bytes at 0x1496a0 - eurasiacon/imgegl/cfg_core.c:56
PVR: 35 - 84 bytes at 0x1495f8 - eurasiacon/imgegl/khronos_egl.c:4708
PVR: 36 - 4116 bytes at 0x1450c8 - eurasiacon/imgegl/tls.c:49
PVR:
PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [161, /pvr2dinit.c]
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 2139737 bytes
PVR:
PVR: 43461 bytes still allocated in 36 allocations
PVR:
PVR: 1 - 32 bytes at 0x154698 - eurasiacon/imgegl/cfg_core.c:275
PVR: 2 - 32 bytes at 0x154588 - eurasiacon/imgegl/cfg_core.c:56
PVR: 3 - 128 bytes at 0x154700 - eurasiacon/imgegl/cfg_core.c:275
PVR: 4 - 32 bytes at 0x154510 - eurasiacon/imgegl/cfg_core.c:56
PVR: 5 - 32 bytes at 0x154498 - eurasiacon/imgegl/cfg_core.c:56
PVR: 6 - 32 bytes at 0x154420 - eurasiacon/imgegl/cfg_core.c:56
PVR: 7 - 32 bytes at 0x1543a8 - eurasiacon/imgegl/cfg_core.c:56
PVR: 8 - 620 bytes at 0x1540e8 - eurasiacon/imgegl/khronos_egl.c:3138
PVR: 9 - 725 bytes at 0x153db8 - eurasiaconPVR_K:(Error): PVRSRVCreateDCSwapChainKM: Too few buffers [1007, Workdir_dm8168/dvrrdk_3.01/C]
/opengles2/misc.c:489
PVR: 10 - 724 bytes at 0x1533b0 - eurasiacon/opengles2/shader.c:1499
PVR: 11 - 864 bytes at 0x152ff8 - eurasiacon/opengles2/texmgmt.c:2556
PVR: 12 - 140 bytes at 0x152f18 - eurasiacon/opengles2/texmgmt.c:2491
PVR: 13 - 5184 bytes at 0x151a80 - eurasiacon/opengles2/texmgmt.c:2556
PVR: 14 - 140 bytes at 0x1519a0 - eurasiacon/opengles2/texmgmt.c:2491
PVR: 15 - 864 bytes at 0x1515e8 - eurasiacon/opengles2/texmgmt.c:2556
PVR: 16 - 140 bytes at 0x151508 - eurasiacon/opengles2/texmgmt.c:2491
PVR: 17 - 4096 bytes at 0x1504b0 - eurasiacon/opengles2/statehash.c:48
PVR: 18 - 536 bytes at 0x150208 - eurasiacon/opengles2/names.c:179
PVR: 19 - 536 bytes at 0x14ff98 - eurasiacon/opengles2/names.c:179
PVR: 20 - 536 bytes at 0x14fd28 - eurasiacon/opengles2/names.c:179
PVR: 21 - 536 bytes at 0x14fab8 - eurasiacon/opengles2/names.c:179
PVR: 22 - 536 bytes at 0x14f848 - eurasiacon/opengles2/names.c:179
PVR: 23 - 536 bytes at 0x14f5d8 - eurasiacon/opengles2/names.c:179
PVR: 24 - 68 bytes at 0x1498f8 - eurasiacon/opengles2/texmgmt.c:2827
PVR: 25 - 180 bytes at 0x14f018 - eurasiacon/opengles2/eglglue.c:265
PVR: 26 - 8160 bytes at 0x14cfe0 - eurasiacon/imgegl/srv.c:388
PVR: 27 - 13500 bytes at 0x149ad0 - eurasiacon/opengles2/eglglue.c:43
PVR: 28 - 32 bytes at 0x149990 - eurasiacon/imgegl/cfg_core.c:275
PVR: 29 - 32 bytes at 0x149880 - eurasiacon/imgegl/cfg_core.c:56
PVR: 30 - 128 bytes at 0x1499f8 - eurasiacon/imgegl/cfg_core.c:275
PVR: 31 - 32 bytes at 0x149808 - eurasiacon/imgegl/cfg_core.c:56
PVR: 32 - 32 bytes at 0x149790 - eurasiacon/imgegl/cfg_core.c:56
PVR: 33 - 32 bytes at 0x149718 - eurasiacon/imgegl/cfg_core.c:56
PVR: 34 - 32 bytes at 0x1496a0 - eurasiacon/imgegl/cfg_core.c:56
PVR: 35 - 84 bytes at 0x1495f8 - eurasiacon/imgegl/khronos_egl.c:4708
PVR: 36 - 4116 bytes at 0x1450c8 - eurasiacon/imgegl/tls.c:49
PVR:
PVR:(Error): PVRSRVCreateDCSwapChain: Error - 2 returned [520, /bridged_pvr_dc_glue.c]
PVR:(Error): PVR2DCreateFlipChain: can't create flipchain [221, /pvr2dflip.c]
PVR:(Error): KEGLGetDrawableParameters: Out of range render param width = 1920, height = 2160 [1081, /generic_ws.c]
PVR:(Error): SRV_CreateSurface: Couldn't get drawable params [140, /srv.c]
PVR:(Error): KEGLGetDrawableParameters: Out of range render param width = 1920, height = 2160 [1081, /generic_ws.c]
PVR:(Error): SRV_CreateSurface: Couldn't get drawable params [140, /srv.c]
Exit message has been set to: "PVRShell: Unable to create surface
".
InitAPI failed!
PVRShell: Unable to create surface

When i run the demo code come from QT like,

/opt/qt-4.7.3/examples/opengl/hellogl_es2/hellogl_es2 -qws,

 The screen is full with black.

Got Message as followed


root@localhost:/opt/ti81xx-geo/ti816x# /opt/qt-4.7.3/examples/opengl/hellogl_es2
/hellogl_es2 -qws
PVR: Hint: Setting ParamBufferSize to 33554432
PVR: Hint: Setting WindowSystem to libpvrQWSWSEGL.so
PVR:(Error): PVRSRVMetricsTimeNow: using (potentially) low resolution timer [110, /pvr_metrics.c]
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_PREGEN_BUFFER [803, /eglglue.c]
PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [57, /metrics.]
PVR: Bytes : 512 1024 2048 4096 8192 16384 32768 65536 131072
PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
PVR: H -> VB: 0.00 320.02 640.04 1280.08 1280.08 1280.08 1024.06 975.30 930.97
PVR: H -> H: 0.00 0.00 0.00 640.04 1280.08 1280.08 1137.85 1137.85 1050.32
PVR:
PVR: Texture allocation HWM = 8 bytes
PVR:(Warning): HW Recovery stats: Host: 0 uKernel: 0 [149, /sgxrender_context.c]
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 2139737 bytes
PVR:
PVR: 4116 bytes still allocated in 1 allocations
PVR:
PVR: 1 - 4116 bytes at 0x38bb0 - eurasiacon/imgegl/tls.c:49
PVR:
PVR:


/opt/qt-4.7.3/examples/opengl/hellogl_es2/hellogl_es2 -qws -display powervr,

 The screen is full with green.

Got Message as followed


root@localhost:/opt/ti81xx-geo/ti816x# /opt/qt-4.7.3/examples/opengl/hellogl_es2
/hellogl_es2 -qws -display powervr
PVR: Hint: Setting ParamBufferSize to 33554432
PVR: Hint: Setting WindowSystem to libpvrQWSWSEGL.so
PVR:(Error): PVRSRVMetricsTimeNow: using (potentially) low resolution timer [110, /pvr_metrics.c]
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 4116 bytes
PVR:
PVR: 4116 bytes still allocated in 1 allocations
PVR:
PVR: 1 - 41PVR_K:(Error): PVRSRVCreateDCSwapChainKM: Too few buffers [1007, Workdir_dm8168/dvrrdk_3.01/Current/Graphics_SDK_4_06_00_02/GF]
16 bytes at 0x266f0 - eurasiacon/imgegl/tls.c:49
PVR:
PVR:(Warning): PVR2DEnumerateDevices: display device name too long, truncating [161, /pvr2dinit.c]
PVR:
PVR: Memory Stats
PVR: ------------
PVR:
PVR: High Water Mark = 4116 bytes
PVR:
PVR: 4116 bytes still allocated in 1 allocations
PVR:
PVR: 1 - 4116 bytes at 0x266f0 - eurasiacon/imgegl/tls.c:49
PVR:
PVR:(Error): PVRSRVCreateDCSwapChain: Error - 2 returned [520, /bridged_pvr_dc_glue.c]
PVR:(Error): PVR2DCreateFlipChain: can't create flipchain [221, /pvr2dflip.c]
PVR:(Warning): InitContext: ignoring buffer type CBUF_TYPE_PDS_VERT_SECONDARY_PREGEN_BUFFER [803, /eglglue.c]
PVR:(Warning): Running StartUpMemSpeedTest. High memory watermark will be ruined. Disable using apphint EnableMemorySpeedTest [57, /metrics.]
PVR: Bytes : 512 1024 2048 4096 8192 16384 32768 65536 131072
PVR: ---------------|-------|-------|-------|-------|-------|-------|-------|-------|
PVR: H -> VB: 0.00 0.00 0.00 640.06 853.41 1024.09 930.99 975.33 999.12
PVR: H -> H: 0.00 0.00 0.00 640.06 1280.12 1024.09 1137.88 1137.88 1077.99
PVR:(Warning): PB Watermark Info - Alloc: 0x0 , Free: 0x21dd [497, /sgxrender_targets.c]
PVR:(Warning): PB Watermark Info - Alloc: 0x0 , Free: 0x21dd [497, /sgxrender_targets.c]


I am stuck in this problem for 2 week, i google and reference as much as i can.

I still have no idea to solve this issue.

Could someone help me?


  • I found the issue is coming from wrong display resolution setting

    After change as

    fbset -xres 1920 -yres 1080 -vxres 1920 -vyres 1080

    the sdkdemos is working.

    But when demos stop, the double free error popout as 

    PVR:(Warning): PB Watermark Info - Alloc: 0x160 , Free: 0x207d [497, /sgxrender_targets.c]
    *** glibc detected *** /opt/gfxsdkdemos/ogles/OGLESMouse: double free or corruption (!prev): 0x001fe3a8 ***
    ======= Backtrace: =========
    /lib/libc.so.6[0x2aea5f3c]
    /lib/libc.so.6(cfree+0xa0)[0x2aea7bd0]

    Does anyone know how to solve it?