LS2088ARDB - How to load kernel module pktgen?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LS2088ARDB - How to load kernel module pktgen?

跳至解决方案
2,450 次查看
tsungmin_wang
Contributor III

Hi dears,

I have a ls2088ardb board, and I want to test the network with kernel module pktgen.

But I found that I can't "modprobe pktgen" even I have turn pktgen on in kernel.

I have tried to get information by "modinfo pktgen".

And I got "modinfo: ERROR: Module pktgen not found."

 

I build kernel from https://source.codeaurora.org/external/qoriq/qoriq-components/linux

Here are the commands I build kernel.

  • make defconfig lsdk.config
  • make menuconfig
  • make
  • make modules

I built kernel on ls2088ardb, and I follow the manual to copy the files to /boot.

  • cp arch/arm64/boot/Image.gz /boot/
  • cp arch/arm64/boot/dts/freescale/*.dtb /boot/
  • make modules_install

 

After rebooting ls2088ardb, it looks like that pktgen is not compiled,

I can't find pktgen.ko in /lib/modules or the compiled source directory.

Can someone tell me how to include the pktgen module (/proc/net/pktgen) ?

 

Board: LS2088ARDB

SDK: LSDK-20.04-V5.4-update-290520 

Kernel Version: 5.4.3 

 

0 项奖励
回复
1 解答
2,439 次查看
tsungmin_wang
Contributor III

Hi, dears.

I have solved the problem.

It should use flex-builder to build the custom kernel.

 

 

flex-builder -c linux:custom -a arm64
flex-builder -c linux -a arm64

 

 

Thanks.

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,440 次查看
tsungmin_wang
Contributor III

Hi, dears.

I have solved the problem.

It should use flex-builder to build the custom kernel.

 

 

flex-builder -c linux:custom -a arm64
flex-builder -c linux -a arm64

 

 

Thanks.

0 项奖励
回复