大家好:
我现在在用AM3354,想要使用SGX530来进行图形加速。
然后下载了Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin
安装完毕
改了Rules.make,目前交叉编译器是arm-none-linux-gnueabi-的4.4.6编译器
然后
make BUILD=release OMAPES=8.x all_km
make BUILD=release OMAPES=8.x install_km
安装到了目标rootfs里面,也没问题。
执行
cd /etc/init.d/335x-demo的时候,遇到个错误,如下:
./rc.pvr: line 110: /usr/local/bin/pvrsrvctl: not found
不知哪位大神知道这是怎么回事?
我看网上有人说是因为编译pvrsrvctl的编译器,和我自己使用的编译器版本不一致造成的。因为pvrsrvctl是事先编译好的,不知是不是这个问题?
或者还有没有什么别的解决办法?
完整的log如下:
/etc/init.d # ./335x-demo
0x10205
release8.x
installing 8.x SGX release user libraries
Installing PowerVR Consumer/Embedded DDK 'sgxddk_1.10@2359475' on target
File system installation root is /
Uninstalling existing version sgxddk_1.10@2359475
Uninstallation completed.
boot script rc.pvr -> /etc/init.d/rc.pvr
kernel module pvrsrvkm.ko -> /lib/modules/3.2.0-EmbedSky/extra/pvrsrvkm.ko
kernel module omaplfb.ko -> /lib/modules/3.2.0-EmbedSky/extra/omaplfb.ko
shared library libGLES_CM.so -> /usr/lib/libGLES_CM.so.1.10.2359475
shared library libusc.so -> /usr/lib/libusc.so.1.10.2359475
shared library libGLESv2.so -> /usr/lib/libGLESv2.so.1.10.2359475
shared library libglslcompiler.so -> /usr/lib/libglslcompiler.so.1.10.2359475
shared library libIMGegl.so -> /usr/lib/libIMGegl.so.1.10.2359475
shared library libEGL.so -> /usr/lib/libEGL.so.1.10.2359475
shared library libpvr2d.so -> /usr/lib/libpvr2d.so.1.10.2359475
shared library libpvrPVR2D_BLITWSEGL.so -> /usr/lib/libpvrPVR2D_BLITWSEGL.so.1.10.2359475
shared library libpvrPVR2D_FLIPWSEGL.so -> /usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.10.2359475
shared library libpvrPVR2D_FRONTWSEGL.so -> /usr/lib/libpvrPVR2D_FRONTWSEGL.so.1.10.2359475
shared library libpvrPVR2D_LINUXFBWSEGL.so -> /usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.10.2359475
shared library libsrv_um.so -> /usr/lib/libsrv_um.so.1.10.2359475
shared library libsrv_init.so -> /usr/lib/libsrv_init.so.1.10.2359475
shared library libPVRScopeServices.so -> /usr/lib/libPVRScopeServices.so.1.10.2359475
binary pvrsrvctl -> /usr/local/bin/pvrsrvctl
binary sgx_init_test -> /usr/local/bin/sgx_init_test
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
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
Installation complete!
You may now reboot your target.
./rc.pvr: line 110: /usr/local/bin/pvrsrvctl: not found
dong yan1:
更新下进展
我用的是3.2.0的kernel
我把编译器从code sourcery的换成gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux
这个错误没有了
但是也没能成功加载驱动。执行335x-demo的结果如下:
[root@H init.d]# ./335x-demo0x10205release8.xinstalling 8.x SGX release user libraries
Installing PowerVR Consumer/Embedded DDK 'sgxddk_1.10@2359475' on target
File system installation root is /
Nothing to un-install.boot script rc.pvr -> /etc/init.d/rc.pvrkernel module pvrsrvkm.ko -> /lib/modules/3.2.0-EmbedSky/extra/pvrsrvkm.kokernel module omaplfb.ko -> /lib/modules/3.2.0-EmbedSky/extra/omaplfb.koshared library libGLES_CM.so -> /usr/lib/libGLES_CM.so.1.10.2359475shared library libusc.so -> /usr/lib/libusc.so.1.10.2359475shared library libGLESv2.so -> /usr/lib/libGLESv2.so.1.10.2359475shared library libglslcompiler.so -> /usr/lib/libglslcompiler.so.1.10.2359475shared library libIMGegl.so -> /usr/lib/libIMGegl.so.1.10.2359475shared library libEGL.so -> /usr/lib/libEGL.so.1.10.2359475shared library libpvr2d.so -> /usr/lib/libpvr2d.so.1.10.2359475shared library libpvrPVR2D_BLITWSEGL.so -> /usr/lib/libpvrPVR2D_BLITWSEGL.so.1.10.2359475shared library libpvrPVR2D_FLIPWSEGL.so -> /usr/lib/libpvrPVR2D_FLIPWSEGL.so.1.10.2359475shared library libpvrPVR2D_FRONTWSEGL.so -> /usr/lib/libpvrPVR2D_FRONTWSEGL.so.1.10.2359475shared library libpvrPVR2D_LINUXFBWSEGL.so -> /usr/lib/libpvrPVR2D_LINUXFBWSEGL.so.1.10.2359475shared library libsrv_um.so -> /usr/lib/libsrv_um.so.1.10.2359475shared library libsrv_init.so -> /usr/lib/libsrv_init.so.1.10.2359475shared library libPVRScopeServices.so -> /usr/lib/libPVRScopeServices.so.1.10.2359475binary pvrsrvctl -> /usr/local/bin/pvrsrvctlbinary sgx_init_test -> /usr/local/bin/sgx_init_testbinary services_test -> /usr/local/bin/services_testbinary sgx_blit_test -> /usr/local/bin/sgx_blit_testbinary sgx_clipblit_test -> /usr/local/bin/sgx_clipblit_testbinary sgx_flip_test -> /usr/local/bin/sgx_flip_testbinary sgx_render_flip_test -> /usr/local/bin/sgx_render_flip_testbinary pvr2d_test -> /usr/local/bin/pvr2d_testshader glsltest1_vertshader.txt -> /usr/local/bin/glsltest1_vertshader.txtshader glsltest1_fragshaderA.txt -> /usr/local/bin/glsltest1_fragshaderA.txtshader glsltest1_fragshaderB.txt -> /usr/local/bin/glsltest1_fragshaderB.txt
Installation complete!You may now reboot your target.
Module pvrsrvkm failed to load. Retrying.Running /sbin/depmodDisabling lock debugging due to kernel taint
就没了
[root@H extra]# lsmodModule Size Used by Tainted: Gpvrsrvkm 170202 0
加载的module也不全。
此时强行加载omaplfb.ko,会crash
Unable to handle kernel NULL pointer dereference at virtual address 00000000pgd = dfbe0000[00000000] *pgd=9fbe7831, *pte=00000000, *ppte=00000000Internal error: Oops: 17 [#1]Modules linked in: omaplfb(O+) pvrsrvkm(O)CPU: 0 Tainted: G O (3.2.0-EmbedSky #1)PC is at AllocateDeviceID+0xc/0x54 [pvrsrvkm]LR is at PVRSRVRegisterDCDeviceKM+0xfc/0x188 [pvrsrvkm]pc : [<bf006d2c>] lr : [<bf00299c>] psr: 40000013sp : dfbb9e18 ip : dfbb9e28 fp : dfbb9e24r10: bf06e434 r9 : bf06e1ec r8 : bf06e080r7 : dfb9b47c r6 : 00000000 r5 : dfb9b404 r4 : 00000000r3 : dfab56c0 r2 : 00000001 r1 : dfab56c8 r0 : 00000000Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment userControl: 10c5387d Table: 9fbe0019 DAC: 00000015
SP: 0xdfbb9d98:9d98 c05d9a28 c05d9680 dfbb9dbc dfbb9db0 c0034b9c bf006d2c 40000013 ffffffff9db8 dfbb9e04 bf06e080 dfbb9e24 dfbb9dd0 c05dad18 c0008380 00000000 dfab56c89dd8 00000001 dfab56c0 00000000 dfb9b404 00000000 dfb9b47c bf06e080 bf06e1ec9df8 bf06e434 dfbb9e24 dfbb9e28 dfbb9e18 bf00299c bf006d2c 40000013 ffffffff9e18 dfbb9e4c dfbb9e28 bf00299c bf006d2c dfb14780 dfab56c0 dfb9b400 bf0702cc9e38 bf06e0a8 bf06e094 dfbb9e8c dfbb9e50 bf06edbc bf0028ac c004d1d4 dee63ec09e58 00000000 dee63ec0 00000000 bf070198 bf070198 c08ff800 dfbb8000 0000001c9e78 bf0701e0 bf072000 dfbb9e9c dfbb9e90 bf072010 bf06ea7c dfbb9ef4 dfbb9ea0
IP: 0xdfbb9da8:9da8 c0034b9c bf006d2c 40000013 ffffffff dfbb9e04 bf06e080 dfbb9e24 dfbb9dd09dc8 c05dad18 c0008380 00000000 dfab56c8 00000001 dfab56c0 00000000 dfb9b4049de8 00000000 dfb9b47c bf06e080 bf06e1ec bf06e434 dfbb9e24 dfbb9e28 dfbb9e189e08 bf00299c bf006d2c 40000013 ffffffff dfbb9e4c dfbb9e28 bf00299c bf006d2c9e28 dfb14780 dfab56c0 dfb9b400 bf0702cc bf06e0a8 bf06e094 dfbb9e8c dfbb9e509e48 bf06edbc bf0028ac c004d1d4 dee63ec0 00000000 dee63ec0 00000000 bf0701989e68 bf070198 c08ff800 dfbb8000 0000001c bf0701e0 bf072000 dfbb9e9c dfbb9e909e88 bf072010 bf06ea7c dfbb9ef4 dfbb9ea0 c0008704 bf07200c c0058284 c01ff914
FP: 0xdfbb9da4:9da4 dfbb9db0 c0034b9c bf006d2c 40000013 ffffffff dfbb9e04 bf06e080 dfbb9e249dc4 dfbb9dd0 c05dad18 c0008380 00000000 dfab56c8 00000001 dfab56c0 000000009de4 dfb9b404 00000000 dfb9b47c bf06e080 bf06e1ec bf06e434 dfbb9e24 dfbb9e289e04 dfbb9e18 bf00299c bf006d2c 40000013 ffffffff dfbb9e4c dfbb9e28 bf00299c9e24 bf006d2c dfb14780 dfab56c0 dfb9b400 bf0702cc bf06e0a8 bf06e094 dfbb9e8c9e44 dfbb9e50 bf06edbc bf0028ac c004d1d4 dee63ec0 00000000 dee63ec0 000000009e64 bf070198 bf070198 c08ff800 dfbb8000 0000001c bf0701e0 bf072000 dfbb9e9c9e84 dfbb9e90 bf072010 bf06ea7c dfbb9ef4 dfbb9ea0 c0008704 bf07200c c0058284
R1: 0xdfab5648:5648 fff7bff6 f7ff6fff ffff7ffa ffffff21 d6ff36ab 9ffbf8f2 ffff3d5d fe7e7e985668 fffeb97d ffff9bdd fbbbdfaf ffb7fdfa feff9bb7 dbfff1eb f7df7f47 efff5b365688 dfffc9df fbffc7ce bfbff7de fbffffff dbffe7ff fdff57cf ff7f9ff9 ff7ffe7c56a8 ffff7bdb ffff16fa f7ff2fdf ff7fe598 fbffffe0 dfbfbfff 00000009 0000000156c8 00000000 00000000 00000000 00000001 00000000 00000000 00000000 0000000056e8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000005708 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000005728 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
R3: 0xdfab5640:5640 f7ff36ff effff3dd fff7bff6 f7ff6fff ffff7ffa ffffff21 d6ff36ab 9ffbf8f25660 ffff3d5d fe7e7e98 fffeb97d ffff9bdd fbbbdfaf ffb7fdfa feff9bb7 dbfff1eb5680 f7df7f47 efff5b36 dfffc9df fbffc7ce bfbff7de fbffffff dbffe7ff fdff57cf56a0 ff7f9ff9 ff7ffe7c ffff7bdb ffff16fa f7ff2fdf ff7fe598 fbffffe0 dfbfbfff56c0 00000009 00000001 00000000 00000000 00000000 00000001 00000000 0000000056e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000005700 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000000005720 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
R5: 0xdfb9b384:b384 00000001 00400007 5050ceff 0b532b82 5050ceff 0b532b82 5050ceff 0b532b82b3a4 00000000 00000000 00000000 00000000 00000000 00000007 00000001 dfb9b3c0b3c4 dfb9b3c0 00000000 00000000 00000000 dfb9b3d4 dfb9b3d4 dfb9b3dc dfb9b3dcb3e4 dfb9b53c dfb9b28c df4d6710 df4d6710 00000001 0000000c 00000000 00000000b404 00000000 00000000 00000000 00000000 00000000 dfb9b400 00000200 dfb9b420b424 dfb9b420 bf06f214 00000000 9f000000 ffb00000 00000000 00000000 00000000b444 00000038 bf0028a0 bf0027d8 bf01b7c8 bf000eb0 bf000de8 bf000d1c bf0022c4b464 bf001fc4 00000000 bf00228c bf0027b4 bf0022a8 bf00279c 00000048 bf06e894
R7: 0xdfb9b3fc:b3fc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 dfb9b400b41c 00000200 dfb9b420 dfb9b420 bf06f214 00000000 9f000000 ffb00000 00000000b43c 00000000 00000000 00000038 bf0028a0 bf0027d8 bf01b7c8 bf000eb0 bf000de8b45c bf000d1c bf0022c4 bf001fc4 00000000 bf00228c bf0027b4 bf0022a8 bf00279cb47c 00000048 bf06e894 bf06e0e4 bf06e000 bf06e148 bf06e050 bf06e1a8 bf06e1ecb49c bf06e514 bf06e434 bf06e080 bf06e094 bf06e0a8 bf06e0bc bf06e300 bf06e0d0b4bc bf06e3ec 00000000 002ee000 00177000 00177000 00000320 000001e0 00000c80b4dc 0000005a 00000036 9f000000 ffb00000 00000014 00000000 00000000 00000000Process insmod (pid: 393, stack limit = 0xdfbb82f0)Stack: (0xdfbb9e18 to 0xdfbba000)9e00: dfbb9e4c dfbb9e289e20: bf00299c bf006d2c dfb14780 dfab56c0 dfb9b400 bf0702cc bf06e0a8 bf06e0949e40: dfbb9e8c dfbb9e50 bf06edbc bf0028ac c004d1d4 dee63ec0 00000000 dee63ec09e60: 00000000 bf070198 bf070198 c08ff800 dfbb8000 0000001c bf0701e0 bf0720009e80: dfbb9e9c dfbb9e90 bf072010 bf06ea7c dfbb9ef4 dfbb9ea0 c0008704 bf07200c9ea0: c0058284 c01ff914 dfbb9edc 00000000 c0058d0c c0058280 00000000 dfbb9ec89ec0: bf070198 bf070198 dfb14880 bf070198 bf070198 dfb14880 00000001 0000001c9ee0: bf0701e0 c006684c dfbb9fa4 dfbb9ef8 c0067cdc c00085e8 bf0701a4 c05dc4189f00: 00000000 c006694c e0e12be8 e0e15c34 00000000 00000000 df3ad940 c07e23749f20: 00000000 00000000 00000000 00000000 00000000 00000000 e0e10000 000082ab9f40: e0e1575c e0e15623 e0e17a4c dfb9b400 000022d4 000028a4 00000000 000000009f60: 0000001e 0000001f 0000000f 0000000d 0000000c 00000000 dfbb9fa4 000082ab9f80: beaace09 00000319 00000080 c00139a8 dfbb8000 00000000 00000000 dfbb9fa89fa0: c0013800 c0067904 000082ab beaace09 400da000 000082ab 000ae008 beaace099fc0: 000082ab beaace09 00000319 00000080 beaace09 00000079 00000000 000000009fe0: beaacb38 beaacb28 0001d71d 402488f0 80000010 400da000 00000000 00000000Backtrace:[<bf006d20>] (AllocateDeviceID+0x0/0x54 [pvrsrvkm]) from [<bf00299c>] (PVRSRVRegisterDCDeviceKM+0xfc/0x188 [pvrsrvkm])[<bf0028a0>] (PVRSRVRegisterDCDeviceKM+0x0/0x188 [pvrsrvkm]) from [<bf06edbc>] (OMAPLFBInit+0x34c/0x588 [omaplfb]) r7:bf06e094 r6:bf06e0a8 r5:bf0702cc r4:dfb9b400[<bf06ea70>] (OMAPLFBInit+0x0/0x588 [omaplfb]) from [<bf072010>] (OMAPLFB_Init+0x10/0x34 [omaplfb])[<bf072000>] (OMAPLFB_Init+0x0/0x34 [omaplfb]) from [<c0008704>] (do_one_initcall+0x128/0x1a8)[<c00085dc>] (do_one_initcall+0x0/0x1a8) from [<c0067cdc>] (sys_init_module+0x3e4/0x1b3c)[<c00678f8>] (sys_init_module+0x0/0x1b3c) from [<c0013800>] (ret_fast_syscall+0x0/0x30)Code: e89da830 e1a0c00d e92dd800 e24cb004 (e5902000)—[ end trace 8648c7b0d90bf863 ]—Segmentation fault
user4725089:
回复 dong yan1:
问题解决了么?咨询下,确定 pvrsrvctl 这个是事先编译好? 还是自己源码编译的时候产生的啊。想对 pvrsrvctl 分析分析。
dong yan1:
回复 user4725089:
没有解决
我们现在不是用graphic_sdk独立安装了
直接使用processor sdk了
02或者03版本都可以直接支持图形加速
Jian Zhou:
回复 dong yan1:
有些应用程序应该是那个大而全的文件系统里自带的。
xiyuan ma:
回复 dong yan1:
你有没有,用起GPU后,跑QT的QML例子,就是会自动调用GPU渲染
然后工作12小时以上?
老的SDK版本,,发现工作几个小时活,会花屏。。。因为DRM驱动的BUG
Steven Liu1:
回复 xiyuan ma:
估计你说的是老版本的GPU代码会出现sync lost的问题,在花屏的时候是不是有sync lost的相关信息提示?这个网上是已经有个patch把问题解决了。