[dpdk-dev] [dpdk-announce] DPDK support in Buildroot

Jan Viktorin viktorin at rehivetech.com
Fri Oct 30 14:55:10 CET 2015


Hello all,

as the ARM port is finding its way into the DPDK, I've prepared a
DPDK integration package [1] for the Buildroot project [2]. Buildroot is
used to build custom Linux distributions for embedded systems and it
covers the cross-compilation very well.

It is possible to build and test the ARMv7/v8 ports by using qemu and
Buildroot. How to do it:

$ git clone https://github.com/RehiveTech/buildroot.git
$ git checkout dpdk-support # 773b7bc9925

 * or try the official git with the patch referred in [2]

$ cd buildroot

$ make qemu_aarch64_virt_defconfig

 * or qemu_arm_vexpress_defconfig for ARMv7

$ make menuconfig

 * set libc library to glibc
 * enable DPDK, testpmd, tests in Target packages/Libraries/Networking/DPDK
 * point DPDK to https://github.com/RehiveTech/dpdk.git arm-support-v5
   or download the patches and configure Buildroot for patching
   or do it your way...

$ make linux-menuconfig

 * enable UIO, PCI and MSI-X (if applicable)

$ make
$ ls output/images

Try in QEMU (ARMv8):

$ qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt \
  -nographic -smp 1 -m 2048 -kernel output/images/Image -append "console=ttyAMA0"

or (ARMv7):

$ qemu-system-arm -M vexpress-a9 -kernel output/images/zImage \
  -dtb output/images/vexpress-v2p-ca9.dtb -drive file=output/images/rootfs.ext2,if=sd \
  -append "console=ttyAMA0,115200 root=/dev/mmcblk0" -smp 1 -m 1024 -nographic

* now login as root (in QEMU) and try:

buildroot # /usr/bin/test [--no-huge] [--no-pci]

Regards
Jan Viktorin

[1] http://lists.busybox.net/pipermail/buildroot/2015-October/143413.html
[2] http://buildroot.uclibc.org/

-- 
   Jan Viktorin                  E-mail: Viktorin at RehiveTech.com
   System Architect              Web:    www.RehiveTech.com
   RehiveTech
   Brno, Czech Republic


More information about the dev mailing list