armbian / linux-rockchip

Improved Rockchip Linux
Other
169 stars 236 forks source link

Update RKNPU driver to 0.9.8 #265

Closed thbd5000 closed 1 month ago

thbd5000 commented 1 month ago

Rockchip has updated the RKNPU driver.

amazingfate commented 1 month ago

Build failed:

  [🐳|🔨]   drivers/rknpu/rknpu_devfreq.c:237:25: error: 'rockchip_opp_set_low_length' undeclared here (not in a function)
  [🐳|🔨]     237 |         .set_soc_info = rockchip_opp_set_low_length,
  [🐳|🔨]         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  [🐳|🔨]   make[4]: *** [scripts/Makefile.build:250: drivers/rknpu/rknpu_devfreq.o] Error 1
  [🐳|🔨]   make[3]: *** [scripts/Makefile.build:500: drivers/rknpu] Error 2
thbd5000 commented 1 month ago

Sorry, I didn't check enough.

Pelochus commented 3 weeks ago

Any news on this update?

amazingfate commented 3 weeks ago

Any news on this update?

rknpu kernel driver v0.9.8 depends on latest rkr4 kernel from sdk. We are using rkr3 now.

Pelochus commented 3 weeks ago

Thanks for the quick response. Any plans on updating to rkr4 anytime soon?

thbd5000 commented 3 weeks ago

@Pelochus For now, you can build the kernel by commenting out the line that causes the compile error. As far as I have confirmed, it works fine with RK3588. However, it may not work correctly with RK3576.

Pelochus commented 3 weeks ago

Cool thanks @thbd5000 !