type
status
slug
summary
tags
category
icon
password
new update day
Property
Oct 31, 2024 08:00 AM
created days
Last edited time
Oct 31, 2024 08:00 AM

step.0 系统环境准备

  • 开启 CentOS 9 CRB repo
  • 更新系统

安装编译依赖

step.1 获取 DPDK 源码并编译

以 22.11.6 为例,通过下面的链接可以下载 DPDK 对应版本的源码。

1. 解压 DPDK 源码

The DPDK is composed of several directories, including:
  • doc: DPDK Documentation
  • license: DPDK license information
  • lib: Source code of DPDK libraries
  • drivers: Source code of DPDK poll-mode drivers
  • app: Source code of DPDK applications (automatic tests)
  • examples: Source code of DPDK application examples
  • config, buildtools: Framework-related scripts and configuration
  • usertools: Utility scripts for end-users of DPDK applications
  • devtools: Scripts for use by DPDK developers
  • kernel: Kernel modules needed for some operating systems

2 编译并安装 DPDK

配置 DPDK 编译参数

开始编译

step2.获取 dpdk-kmods 并编译

如果需要使用到 igb_uio.ko 那么需要单独克隆对应的代码,进行手动编译,因为在 22.11 之后,对应的代码独立出来了。

获取 dpdk-kmods 源码

开始编译

加载驱动

查看驱动加载情况

参考文献

Relate Posts
在 CentOS 9 上编译 DPDK 与 pktgen 24.07
Lazy loaded image
在 CentOS 9 上启用 CRB 源
Lazy loaded image
在 Arch Linux 上通过 OneDrive 进行 rime 的用户词库同步
Lazy loaded image
使用 gdb + qemu 进行驱动程序调试
Lazy loaded image
在树莓派官网系统 Raspberry Pi OS 上吃鹅全过程
Lazy loaded image
[MIT 6.s081] Lab: Copy-on-Write Fork for xv6 实验记录
Lazy loaded image
在 CentOS 9 上编译 DPDK 与 pktgen 24.07在 CentOS 9 上启用 CRB 源
Loading...
tangcuyu
tangcuyu
一只尘世中努力争渡的🐠
Latest posts
自建 tailscaler derper 中继服务
2024-11-9
在 CentOS 9 上编译 DPDK 与 pktgen 24.07
2024-11-1
CentOS 9 DPDK 源码编译
2024-10-31
在 CentOS 9 上启用 CRB 源
2024-10-16
Rime 小狼毫定时用户词库同步设置
2024-5-1
在 Arch Linux 上通过 OneDrive 进行 rime 的用户词库同步
2024-4-20