下载了 http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html 网站的 Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin SDK包,并编译过了,下载到板子上后出现了如下问题:
/opt/gfxsdkdemos # ./335x-demo0x10205
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.
Disabling lock debugging due to kernel taint
/usr/local/bin/pvrsrvctl: SrvInit failed (already initialized?) (err=4)
/opt/gfxsdkdemos # lsmodpvrsrvkm 169072 0 – Live 0xbf000000 (O)
/opt/gfxsdkdemos # modprobe omaplfb
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = eec04000
[00000000] *pgd=aec73831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: omaplfb(O+) pvrsrvkm(O)
CPU: 0 Tainted: G O (3.2.0-EmbedSky #8)
PC is at AllocateDeviceID+0xc/0x68 [pvrsrvkm]
LR is at PVRSRVRegisterDCDeviceKM+0x160/0x198 [pvrsrvkm]
pc : [<bf00744c>] lr : [<bf002bb8>] psr: 40000013
sp : eebe9e18 ip : eebe9e28 fp : eebe9e24
r10: bf037244 r9 : bf037288 r8 : bf037080
r7 : 00000000 r6 : eec19404 r5 : eec1947c r4 : 00000000
r3 : edf56480 r2 : edf56480 r1 : edf56488 r0 : 00000000
Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c5387d Table: aec04019 DAC: 00000015
请大侠们指导指导!这里先拜谢了!
Jian Zhou:
首先确认下你的板子是AM3354的芯片么?
xie terry:
回复 Jian Zhou:
hello,板子用的是3358的芯片
Jian Zhou:
回复 xie terry:
看了下,你的gfxsdk用的比较新,确认下板子上跑的Linux SDK的是不是最新版本
xie terry:
回复 Jian Zhou:
用的是 3.2 的linux内核
Jian Zhou:
回复 xie terry:
3.2的kernel是比较老的版本了,最新的SDK是4.4的内核,我怀疑是gfxsdk的版本和Linux SDK的版本不匹配。
xie terry:
回复 Jian Zhou:
TI官网上只有 Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin SDK包可下载,有没有支持3.2内核的 GPU包??
或是3.2 的内核中做什么调整让其可用??
xie terry:
回复 Jian Zhou:
TI的官网上只有Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin SDK包可以下载,是否有支持3.2 kernel 的 SDK包?
或是3.2 kernel上需要做哪些调整就可以了?
Jian Zhou:
回复 xie terry:
最新的3.2内核的kernel是SDK06,你可以去下面地址下载完整的SDK包:
http://software-dl.ti.com/sitara_linux/esd/AM335xSDK/06_00_00_00/index_FDS.html
里面带有对应的GDK的安装包。
Yaoming Qin:
建议您升级到最新的sdk,另外可以参考 https://community.imgtec.com/developers/powervr/graphics-sdk/ 编译sgx demo
xie terry:
回复 Jian Zhou:
你好,下载了这个链接的资源后,基本正常了,但遇到了如下问题:
/opt/gfxsdkdemos # ogles2/OGLES2MagicLantern Can't open keypad input device (/dev/input/event0)Can't open remote control input device (/dev/ttyS1)Display stride is not a multiple of 32 pixels – accumulation will go wrongPVRShell: EGL 1.4 initialized
请问怎么解决??