赞
踩
文件系统为官方ubuntu,未集成maliGpu,故需要移植安装maliGpu。
为保证版本兼容性,故打算firefly官方文件系统直接移植版本。
1. 在firefly官方文件系统中,使用 find / -name "*mali*" 找到所有相关文件,并挑选了Gpu相关的文件(如下图)拷贝到新系统中。
./etc/OpenCL/vendors/mali.icd ./etc/ld.so.conf.d/00-aarch64-mali.conf ./usr/lib/aarch64-linux-gnu/libmali.so.1 ./usr/lib/aarch64-linux-gnu/libmali.so.1.9.0 ./usr/lib/aarch64-linux-gnu/mali ./usr/lib/aarch64-linux-gnu/libmali_hook.so ./usr/lib/aarch64-linux-gnu/dri/mali-dp_dri.so ./usr/lib/aarch64-linux-gnu/libmali-valhall-g610-g6p0-x11-wayland-gbm.so ./usr/lib/aarch64-linux-gnu/libmali_hook.so.1 ./usr/lib/aarch64-linux-gnu/pkgconfig/mali.pc ./usr/lib/aarch64-linux-gnu/libmali_hook.so.1.9.0 ./usr/lib/aarch64-linux-gnu/libmali.so ./usr/lib/firmware/mali_csffw.bin ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.triggers ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.shlibs ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.list ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.conffiles ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.md5sums
2. Download OpenCL ICD loader
sudo apt install mesa-opencl-icd
3.Download and install libOpenCL
sudo apt install ocl-icd-opencl-dev
4.Download and install dependencies for Mali OpenCL
sudo apt install libxcb-dri2-0 libxcb-dri3-0 libwayland-client0 libwayland-server0 libx11-xcb1 clinfo
参考资料:
llm-rk3588/README.md at main · Chrisz236/llm-rk3588 · GitHub
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。