Difference between revisions of "VPP/Alternative builds"

From fd.io
< VPP
Jump to: navigation, search
(vpp-lite)
m
Line 13: Line 13:
  
 
* make install-dep fails as the OS is not recognized, so install dependencies manually:
 
* make install-dep fails as the OS is not recognized, so install dependencies manually:
  <nowiki>apt-get install curl build-essential autoconf automake bison libssl-dev ccache
+
  <nowiki>apt-get install curl build-essential autoconf automake bison libssl-dev ccache \
debhelper dkms openjdk-8-jdk git libtool libganglia1-dev libapr1-dev dh-systemd
+
debhelper dkms openjdk-8-jdk git libtool libganglia1-dev libapr1-dev dh-systemd \
libconfuse-dev git-review exuberant-ctags cscope
+
libconfuse-dev git-review exuberant-ctags cscope</nowiki>
</nowiki>
+
  
 
* Build:
 
* Build:
<nowiki>export PLATFORM=arm32
+
<nowiki>export PLATFORM=arm32
 
make build</nowiki>
 
make build</nowiki>
  
Line 28: Line 27:
  
 
* raspbian kernel does not have hugepage support: modify the startup.conf file to specify the amount of RAM to allocate
 
* raspbian kernel does not have hugepage support: modify the startup.conf file to specify the amount of RAM to allocate
<nowiki>
+
<nowiki>
 
cpu {
 
cpu {
 
   main-core 3
 
   main-core 3
 
}
 
}
heapsize 64M
+
heapsize 64M</nowiki>
</nowiki>
+
  
 
* Finally, run as usual:
 
* Finally, run as usual:
 
  <nowiki>make run</nowiki>
 
  <nowiki>make run</nowiki>

Revision as of 23:30, 2 May 2016

vpp-lite

export PLATFORM=vpp_lite
make build
make run


raspi3 / arm aarch32

  • make install-dep fails as the OS is not recognized, so install dependencies manually:
apt-get install curl build-essential autoconf automake bison libssl-dev ccache \
debhelper dkms openjdk-8-jdk git libtool libganglia1-dev libapr1-dev dh-systemd \
libconfuse-dev git-review exuberant-ctags cscope
  • Build:

export PLATFORM=arm32 make build

  • raspbian default kernel does not enable userspace application access to the performance counters (this access is required by vpp to read the cycle counter)

- Download kernel module from github - This requires kernel headers: if you updated your kernel with rpi-update, you may have to download the whole kernel sources to retrieve kernel headers (see rpi-source) - build and test kmod (see included README)

  • raspbian kernel does not have hugepage support: modify the startup.conf file to specify the amount of RAM to allocate
cpu {
  main-core 3
}
heapsize 64M
  • Finally, run as usual:
make run