Jump to content

RK3566 Kernel with NPU support?


Recommended Posts

Posted

I'm curious to experiment with LLMs on an RK3566 TV Box. I managed to build a working Debian disto for it, but wasn't able to locate any NPU support in the kernel configuration.

 

Anyone know how to build such a kernel for the RK3566, with support for the inbuilt NPU, or preferably, how to add build a NPU kernel module that can be linked-in?

 

Any hints, suggestion or links greatly appreciated.

 

GBEM 👽

Posted (edited)

If you are on a relatively recent kernel, the kernel probably already has support, but the default DTB has it disabled.
This is from a bookworm nightly build for a radxa zero 3

~$ grep rknpu /usr/lib/modules/6.1.115-vendor-rk35xx/modules.builtin
kernel/drivers/rknpu/rknpu.ko

However, it's disabled in the DTB by default

$ cat /sys/firmware/devicetree/base/npu@fde40000/status 
disabled

For the board that I am using, the vendor publises a DTO source that enables it at https://github.com/radxa-pkg/radxa-overlays/blob/main/arch/arm64/boot/dts/rockchip/overlays/rk3568-npu-enable.dts

 

Which works well with armbian-add-overlay.

 

Though you may need to make a similar overlay for your DTB if it is different enough.

 

Note that the NPU in the 3566 and 3568 are interoperable.

Edited by Laikulo
formatting

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines