|
发表于 2019-8-15 12:06:31
楼主
出错原因:GPU 和 库文件不匹配。
ERROR: The DDK is not compatible with any of the Mali GPUs on the system.
The DDK was built for 0x750 r0p0 status range [1..1], but none of the GPUs matched:
/dev/mali0 detected as 0x750 r1p0 status 0
楼主可以查看一下 CPU 上的芯片信息,应该是类似 SAAKT23028W,带 ‘W’ 后缀。
启动脚本 /etc/init.d/S10libmali 会根据 GPU 链接对应库文件,但命令 `ln -s libmali-midgard-t76x-r14p0-r1p0-wayland.so libmali.so` 缺少 -f 参数导致链接没更新,而使用了默认链接,加上 -f 参数即可 `ln -sf libmali-midgard-t76x-r14p0-r1p0-wayland.so libmali.so`。
- #!/bin/sh
- #
- # Create libmali link for rk3288....
- #
- case "$1" in
- start)
- # create libmali.so link depend on chips type in the runtime
- GPU_VERSION=$(cat /sys/devices/platform/*gpu/gpuinfo)
- cd /usr/lib
- if [ "$GPU_VERSION" = 'Mali-T76x MP4 r1p0 0x0750' -o "$GPU_VERSION" = 'Mali-T76x 4 cores r1p0 0x0750' ];
- then
- #rk3288W, r1 version gpu chip
- ln -s libmali-midgard-t76x-r14p0-r1p0-wayland.so libmali.so
- else
- #rk3288, rk3288-C, rk3288-CG
- ln -s libmali-midgard-t76x-r14p0-r0p0-wayland.so libmali.so
- fi
- cd -
- ;;
- stop)
- printf "stop finished"
- ;;
- *)
- echo "Usage: $0 {start|stop}"
- exit 1
- ;;
- esac
- exit 0
复制代码
|
|