当前位置:   article > 正文

RK3588+ubuntu转植maliGpu_rk3588 libmali.so

rk3588 libmali.so

文件系统为官方ubuntu,未集成maliGpu,故需要移植安装maliGpu。

为保证版本兼容性,故打算firefly官方文件系统直接移植版本。

1. 在firefly官方文件系统中,使用 find  / -name "*mali*" 找到所有相关文件,并挑选了Gpu相关的文件(如下图)拷贝到新系统中。

  1. ./etc/OpenCL/vendors/mali.icd
  2. ./etc/ld.so.conf.d/00-aarch64-mali.conf
  3. ./usr/lib/aarch64-linux-gnu/libmali.so.1
  4. ./usr/lib/aarch64-linux-gnu/libmali.so.1.9.0
  5. ./usr/lib/aarch64-linux-gnu/mali
  6. ./usr/lib/aarch64-linux-gnu/libmali_hook.so
  7. ./usr/lib/aarch64-linux-gnu/dri/mali-dp_dri.so
  8. ./usr/lib/aarch64-linux-gnu/libmali-valhall-g610-g6p0-x11-wayland-gbm.so
  9. ./usr/lib/aarch64-linux-gnu/libmali_hook.so.1
  10. ./usr/lib/aarch64-linux-gnu/pkgconfig/mali.pc
  11. ./usr/lib/aarch64-linux-gnu/libmali_hook.so.1.9.0
  12. ./usr/lib/aarch64-linux-gnu/libmali.so
  13. ./usr/lib/firmware/mali_csffw.bin
  14. ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.triggers
  15. ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.shlibs
  16. ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.list
  17. ./var/lib/dpkg/info/libmali-valhall-g610-g6p0-x11-wayland-gbm.conffiles
  18. ./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

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号