• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    How to update coolpi-4b npu driver in ubuntu?

    Scheduled Pinned Locked Moved AI Algorithm
    npuubunturknpudriver
    4 Posts 2 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      traceback
      last edited by

      I'm going to try rknn-llm, which need at least v0.9.6 driver version. The version in official ubuntu 22.04 is:

      cat /sys/kernel/debug/rknpu/version
      RKNPU driver: v0.8.2
      

      I have tried built the rknpu v0.9.6 from rknn-llm repository,but it terminates with error

      drivers/rknpu/rknpu_gem.c: In function 'rknpu_gem_mmap_buffer':
      drivers/rknpu/rknpu_gem.c:988:9: error: implicit declaration of function 'vm_flags_clear' [-Werror=implicit-function-declaration]
        988 |         vm_flags_clear(vma, VM_PFNMAP);
            |         ^~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      

      Above outputs are raisen when I compile rknpu 0.9.6 under coolpi-kernel 5.10.110
      Are there any way to solve the error or update the npu driver?

      Thanks in advance!

      G 1 Reply Last reply Reply Quote 0
      • G
        george @traceback
        last edited by

        @traceback
        We will update the kernel to 6.1 soon, please be patient.

        T 1 Reply Last reply Reply Quote 0
        • T
          traceback @george
          last edited by

          @george Is new kernel available now? Thank you!

          T 1 Reply Last reply Reply Quote 0
          • T
            traceback @traceback
            last edited by

            @traceback
            I found the solution in github:
            FirstSecond

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post