X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fmarvell%2FREADME.md;h=012677aa6524447ee4b18a699efc38edffda4494;hb=8c8acc0;hp=300d5833b9e6dfc7fea713d0d456783f29d6114e;hpb=546ad855a63484fef46ecac61c52bb737a5764c9;p=vpp.git diff --git a/src/plugins/marvell/README.md b/src/plugins/marvell/README.md index 300d5833b9e..012677aa652 100644 --- a/src/plugins/marvell/README.md +++ b/src/plugins/marvell/README.md @@ -6,22 +6,32 @@ Code is developed and tested on [MACCHIATObin][2] board. ##Prerequisites Plugins depends on installed MUSDK and Marvell provided linux [kernel][3] with MUSDK provided kernel patches (see `patches/linux` in musdk repo and relevant documentation. -Kernel version used: **4.4.52 armada-17.10.1** -MUSDK version used: **armada-17.10.3** -MUSDK must be compiled with `--enable-bpool-dma=64` parameter. +Kernel version used: **4.14.22 armada-18.09.3** +MUSDK version used: **armada-18.09.3** Following kernel modules from MUSDK must be loaded for plugin to work: -* `musdk_uio.ko` +* `musdk_cma.ko` * `mv_pp_uio.ko` +##Musdk 18.09.3 compilation steps + +``` +./bootstrap +./configure --prefix=/opt/vpp/external/aarch64/ CFLAGS="-Wno-error=unused-result -g -fPIC" --enable-shared=no +sed -i -e 's/marvell,mv-pp-uio/generic-uio/' modules/pp2/mv_pp_uio.c +sed -i -e 's/O_CREAT/O_CREAT, S_IRUSR | S_IWUSR/' src/lib/file_utils.c +make +sudo make install +``` + ## Usage ### Interface Cration Interfaces are dynamically created with following CLI: ``` create interface marvell pp2 name eth0 -set interface state mv-ppio0/0 up +set interface state mv-ppio-0/0 up ``` -Where `eth0` is linux interface name and `mv-ppioX/Y` is VPP interface name where X is PP2 device ID and Y is PPIO ID +Where `eth0` is linux interface name and `mv-ppio-X/Y` is VPP interface name where X is PP2 device ID and Y is PPIO ID Interface needs to be assigned to MUSDK in FDT configuration and linux interface state must be up. ### Interface Deletion