DPDK for Ubuntu / Debian, let's do it?
Martinx - ジェームズ
thiagocmartinsc at gmail.com
Sun Jul 12 04:39:28 UTC 2015
BTW, there is a RPM spec file there:
dpdk-1.8.0/pkg/dpdk-core.spec
Might be helpful...
On 12 July 2015 at 00:32, Martinx - ジェームズ <thiagocmartinsc at gmail.com> wrote:
> Awesome! :-D
>
>
> I really want to start playing with DPDK, specially when we talk about
> OpenStack and Open vSwitch...
>
> Well, to start, I'll share how I'm compiling DPDK-1.8.0 on Ubuntu Trusty
> with Linux 3.19.
>
>
> Complete procedure:
>
>
> 1- Build dependencies:
>
> apt-get install linux-generic-lts-vivid
>
> reboot
>
> apt-get install make coreutils gcc binutils linux-headers-`uname
> -r` libc6-dev-i386 libpcap0.8-dev fakeroot
>
>
> 2- Get DPDK and a patch to compile it against Linux 3.19:
>
>
> mkdir dpdk ; cd dpdk
>
> wget http://dpdk.org/browse/dpdk/snapshot/dpdk-1.8.0.tar.gz
>
> tar xf dpdk-1.8.0.tar.gz
>
> curl -s http://dpdk.org/dev/patchwork/patch/4001/raw/ -o
> dpdk-dev-kni-fix-compilation-issue-on-kernel-3.19.patch
>
> cd dpdk-1.8.0
>
> patch -p1 < ../dpdk-dev-kni-fix-compilation-issue-on-kernel-3.19.patch
>
>
> 4- Compiling and installing it to a TMP DESTDIR:
>
>
> make config T=x86_64-native-linuxapp-gcc
>
> sed -ri 's,(PMD_PCAP=).*,\1y,' build/.config
>
> make
>
> mkdir /tmp/dpdk-1.8.0-destdir
>
> DESTDIR=/tmp/dpdk-1.8.0-destdir fakeroot make install
> T=x86_64-native-linuxapp-gcc
>
> ls -l /tmp/dpdk-1.8.0-destdir
>
>
> Done?!
>
>
> NOTES:
>
>
> * If you're building it under a Trusty KVM Virtual Machine, make sure your
> VM CPU configuration have all the flags from the host.
>
>
> - I'll need some kind of direction here, to package it according, mostly
> because of:
>
>
> * What is DPDK? A Library? A Kernel module? User-space drivers, what? Does
> it have headers (.h files) (yes, it have)?
>
>
> Plus, its DESTDIR looks very different from "regular software" after
> install... So, how to package it according (to Debian / Ubuntu rules)?
>
>
> * How we'll call its packages? libdpdk1, libdpdk1-bin, libdpdk1-dev,
> dpdk1-kernel-modules (for igb_uio.ko and rte_kni.ko) ... ?
>
>
> * Do we need to patch DPDK to change the destination paths (to make it
> Debian/Ubuntu compliance)?
>
> * Will it compiles on Ubuntu Launchpad PPA infrastructure? I have a
> pbuilder env ready but, no package yet.
>
> * I would like to use "git-buildpackage" and host our "dpdk-1.8.0/debian"
> subdir on Github. I like Launchpad but dislike bazaar.
>
>
> BTW, I'm starting with DPDK-1.8.0 because DPDK-2.0.0 have some problems,
> also, I think that it will be a good start pointing.
>
>
> Also, can we learn something from DPDK Fedora / RedHat RPM package? They
> already have it.
>
> http://rpmfind.net/linux/rpm2html/search.php?query=dpdk - Not sure about
> its quality, since it is for, you know, RedHat...
>
>
> Hope to hear more from you guys!
>
> Best,
> Thiago
>
> On 11 July 2015 at 11:49, Dimitri John Ledkov <xnox at ubuntu.com> wrote:
>
>> Heya,
>>
>> On 11 July 2015 at 05:06, Martinx - ジェームズ <thiagocmartinsc at gmail.com>
>> wrote:
>> > Hey guys,
>> >
>> > Any plans to package Intel DPDK for Ubuntu?
>> >
>> > Also, what about integrating Open vSwitch with DPDK (after package
>> ready)?
>> >
>>
>> I'd be interested in doing this in Debian (and thus in Ubuntu). My
>> networking knowledge is limited however, but this sounds like fun
>> though.
>>
>> --
>> Regards,
>>
>> Dimitri.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20150712/a22f9f3a/attachment.html>
More information about the Ubuntu-devel-discuss
mailing list