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