airockchip / rknn-llm

Other
421 stars 37 forks source link

ERROR: modpost: "iommu_get_dma_cookie" [drivers/rknpu/rknpu.ko] undefined! #65

Open meanshe opened 5 months ago

meanshe commented 5 months ago

kernel更新了1.0.1的驱动后编译不通过:直接显示

CHK kernel/kheaders_data.tar.xz CC [M] drivers/rknpu/rknpu_drv.o CC [M] drivers/rknpu/rknpu_reset.o CC [M] drivers/rknpu/rknpu_job.o CC [M] drivers/rknpu/rknpu_debugger.o CC [M] drivers/rknpu/rknpu_iommu.o CC [M] drivers/rknpu/rknpu_devfreq.o CC [M] drivers/rknpu/rknpu_gem.o LD [M] drivers/rknpu/rknpu.o MODPOST Module.symvers ERROR: modpost: "iommu_get_dma_cookie" [drivers/rknpu/rknpu.ko] undefined! make[1]: [scripts/Makefile.modpost:186: Module.symvers] Error 1 make: [Makefile:2009: modpost] Error 2

woutermans commented 5 months ago

Did you find a solution to this problem?

meanshe commented 5 months ago

Did you find a solution to this problem?

My delevep board is base on nanopi6_linux_defconfig. So I try to enable IOMMU support.

# vim /kernel/arch/arm64/config/nanopi6_linux_defconfig

CONFIG_ROCKCHIP_IOMMU=y

It works well.

sabernagato commented 4 months ago

您好我也是 nanopiT6,但是我修改支持 IOMMU 依然出现这个错误,麻烦咨询一下您的环境