Lspci: Unable to load libkmod resources: error -12

I build image from lx2160a_build with DPDK,and deploy to LX2160A. But when I run this command,

dpdk-devbind.py -s

give me some error meeags,like those,

lspci: Unable to load libkmod resources: error -12
lspci: Unable to load libkmod resources: error -12
lspci: Unable to load libkmod resources: error -12
lspci: Unable to load libkmod resources: error -12
lspci: Unable to load libkmod resources: error -12
lspci: Unable to load libkmod resources: error -12
lspci: Unable to load libkmod resources: error -12
lspci: Unable to load libkmod resources: error -12

No 'Network' devices detected
=============================

No 'Baseband' devices detected
==============================

No 'Crypto' devices detected
============================

No 'Eventdev' devices detected
==============================

No 'Mempool' devices detected
=============================

No 'Compress' devices detected
==============================

No 'Misc (rawdev)' devices detected
===================================

No 'Regex' devices detected
===========================

how to fix it?

And you are following the instructions in NXP’s documentation? NXP

Yes,it’s completely step by step.

And there is no any Network devices detected.

I try to install dpdk from HomePage of DPDK,there is no this problom.
But I don’t think it can work with LX2160A, because no DPAA2 driver in that DPDK.

I am pretty sure dpaa2 support has been merged into mainline DPDK, or at least partially. I will need to double check that.

I expect a DPRC needs to be created with dynamic_dpl.sh

Yes ,I run

dynamic_dpl.sh dpmac.10
export DPRC=dprc.2

and then run dpdk_testpmd ,it is work. I’m wondering why there are no any network devices displayed and how to fix “Unable to load libkmod resources: error -12”.

ok , I will install mainline DPDK,and test it again.

You don’t use dpdk-devbind.py on DPAA2.

You need to control driver binding using the datapath device trees (DPL / DPC) and/or the NXP run-time scripts - dynamic_dpl.sh, ls-listmac, ls-addni, etc.

If by “no any network devices displayed” you mean in Linux (e.g. ifconfig / ip link) then you need to bind native interfaces to the dpmacs using ls-addni.

that is to say,dpdk-devbind.py has no use in DPAA2.