LSDK 20.12 Can't build VPP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LSDK 20.12 Can't build VPP

2,063 Views
d-z-c
Contributor III

Hi,

I just compiled a VPP app according to LSDKUG_Rev20.12.pdf,page:1212-1213. as follow,but but there are some errors occur when building process,So that it cannot be compiled.How to solve it ?

 1. Setup flexbuild environment
    <Fetch Flexbuild as per steps in LSDK Documentation>
    cd flexbuild_<version>
    source setup.env
2. Enable VPP in Flexbuild
    By default VPP is not enabled for compilation/packaging in Flexbuild. This can be enabled by setting     the following in the
    build configuration file ( build_lsdk.cfg
    CONFIG_APP_VPP=y
3. Compile VPP
    flex-builder -c vpp
    After this step, the debian package files deb would be available in the       build/apps/components_LS_arm64/usr/local/vpp/ . Then, using the merge-components this would be available in rootfs in /usr/local/vpp

 

=============Error logs================

 

Installing dpdk-extras .../home/j/wk/flex/flexbuild_lsdk2012/build/apps/components_LS_arm64_ubuntu Build dpdk [Done] make[3]: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps' make[2]: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012' [sudo] password for j: make[2]: Entering directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp' Hit:1 http://mirrors.163.com/ubuntu bionic InRelease Hit:2 http://mirrors.163.com/ubuntu bionic-security InRelease Hit:3 http://mirrors.163.com/ubuntu bionic-updates InRelease Hit:4 http://mirrors.163.com/ubuntu bionic-proposed InRelease Hit:5 http://mirrors.163.com/ubuntu bionic-backports InRelease Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done autoconf is already the newest version (2.69-11). automake is already the newest version (1:1.15.1-3ubuntu2). build-essential is already the newest version (12.4ubuntu1). ccache is already the newest version (3.4.1-1). exuberant-ctags is already the newest version (1:5.9~svn20110310-11). indent is already the newest version (2.2.11-5). libapr1-dev is already the newest version (1.6.3-2). libffi-dev is already the newest version (3.2.1-8). libffi6 is already the newest version (3.2.1-8). libtool is already the newest version (2.4.6-2). pkg-config is already the newest version (0.29.1-0ubuntu2). python-all is already the newest version (2.7.15~rc1-1). python-dev is already the newest version (2.7.15~rc1-1). python-ply is already the newest version (3.11-1). check is already the newest version (0.10.0-3build2). chrpath is already the newest version (0.16-2). cscope is already the newest version (15.8b-3). lcov is already the newest version (1.13-3). libboost-all-dev is already the newest version (1.65.1.0ubuntu1). libmbedtls-dev is already the newest version (2.8.0-1). ninja-build is already the newest version (1.8.2-1). python-virtualenv is already the newest version (15.1.0+ds-1.1). curl is already the newest version (7.58.0-2ubuntu3.13). default-jdk-headless is already the newest version (2:1.11-68ubuntu1~18.04.1). git is already the newest version (1:2.17.1-1ubuntu0.8). libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.9). uuid-dev is already the newest version (2.31.1-0.4ubuntu3.7). libconfuse-dev is already the newest version (3.2.1+dfsg-4ubuntu0.1). python-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.4). cmake is already the newest version (3.10.2-1ubuntu2.18.04.1). debhelper is already the newest version (11.1.6ubuntu2). dkms is already the newest version (2.3-3ubuntu9.7). libnuma-dev is already the newest version (2.0.11-2.1ubuntu0.1). clang-format is already the newest version (1:6.0-41~exp5~ubuntu1). dh-systemd is already the newest version (11.1.6ubuntu2). git-review is already the newest version (1.27.0-0ubuntu0.18.04.1). The following packages were automatically installed and are no longer required: gir1.2-geocodeglib-1.0 libegl1-mesa libwayland-egl1-mesa ubuntu-web-launchers Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded. make[2]: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp' make[2]: Entering directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root' rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/build-*/ rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/build-tool-* rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/install-* rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/images-* rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/tools rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/*.deb rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/*.rpm rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/*.changes rm -rf /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/python if [ -e /usr/bin/dh ];then (cd /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/deb/;debian/rules clean); fi make[3]: Entering directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/deb' dh clean --with systemd,python2 --buildsystem=pybuild tail: cannot open 'debian/changelog' for reading: No such file or directory dpkg-parsechangelog: error: tail of debian/changelog subprocess returned exit status 1 dh_auto_clean -O--buildsystem=pybuild I: pybuild base:217: python setup.py clean running clean removing '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/deb/.pybuild/cpython2_3.6_vpp-api-python/build' (and everything under it) 'build/bdist.linux-x86_64' does not exist -- can't clean it 'build/scripts-2.7' does not exist -- can't clean it dh_clean -O--buildsystem=pybuild make[3]: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/deb' rm -f /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/deb/debian/*.install rm -f /home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root/deb/debian/changelog make[2]: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root' make[2]: Entering directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root' make[2]: *** No rule to make target 'vpp-package-deb'. Stop. make[2]: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps/networking/vpp/build-root' ls: cannot access '/home/j/wk/flex/flexbuild_lsdk2012/build/rfs/rootfs_lsdk2012_ubuntu_main_arm64/usr/local/vpp': No such file or directory Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Build vpp [Done] make[1]: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012/packages/apps' make: Leaving directory '/home/j/wk/flex/flexbuild_lsdk2012' j@pc:~/wk/flex/flexbuild_lsdk2012$

Have a good day.
Tags (3)
0 Kudos
Reply
3 Replies

2,048 Views
Pavel
NXP Employee
NXP Employee

See below recommendations for LSDK 2004.

Change these recommendations for LSDK 2012.

 

  1. Change the default config as below in <flexbuild>/configs/build_lsdk.cfg
    -CONFIG_APP_VPP=n
    +CONFIG_APP_VPP=y

-FETCH_PREBUILT_LSDK_RFS=y
+FETCH_PREBUILT_LSDK_RFS=n

-dpdk_repo_tag=LSDK-20.04
+dpdk_repo_tag=LSDK-19.06

diff --git a/packages/apps/networking/networking.mk b/packages/apps/networking/networking.mk
index 4e696ca..c20b9b2 100644
— a/packages/apps/networking/networking.mk
+++ b/packages/apps/networking/networking.mk
@@ -124,7 +124,7 @@ ifeq ($(DESTARCH),arm64)
- export EXTRA_INC=$(RFSDIR)/usr/include/aarch64-linux-gnu && export EXTRA_LIBS=$(RFSDIR)/lib/aarch64-linux-gnu && \
+ export EXTRA_INC="$(DESTDIR)/usr/local/dpdk4vpp/include/dpdk:$(RFSDIR)/usr/include/aarch64-linux-gnu" && export EXTRA_LIBS=$(RFSDIR)/lib/aarch64-linux-gnu && \

 

  1. build as the steps:

$ rm -rf packages/apps/networking/dpdk
$ flex-builder -i clean-rfs
$ flex-builder -i clean-apps
$ flex-builder -c vpp
$ flex-builder -i merge-component
$ flex-builder -i packrfs

2,036 Views
d-z-c
Contributor III

Hello Pavel,

  I have downloaded the LSDK 20.04 source by flexbuild_lsdk2004_update_290520,And make changes according to your recommendations, The Compling is smoothly,But there are some issues exist when installing and executing. For more details,please check the attachments.

Thank you.

 

  --- installing issue ---

   dpkg-deb (subprocess): cannot copy archive member from 'vpp-dbg_19.06-LSDK~gff7bf7bdc_arm64.deb' to decompressor pipe: unexpected end of file or stream

  --- exeucting issues ---

dpkg-deb (subprocess): cannot copy archive member from 'vpp-dbg_19.06-LSDK~gff7bf7bdc_arm64.deb' to decompressor pipe: unexpected end of file or stream

vpp[935]: dpdk: EAL init args: -c 3 -n 1 --in-memory --huge-dir /mnt/hugepages --no-pci --file-prefix vpp --master-lcore 0
EAL: FATAL: Cannot get hugepage information.
vpp[935]: dpdk_config: rte_eal_init returned -1
root@localhost:~#

--------

Best regards.

Jack.

 

Have a good day.
0 Kudos
Reply

2,006 Views
Pavel
NXP Employee
NXP Employee

Use the following command sequence for LSDK 2004 installing:

 

sudo apt-get install git

 

sudo apt install -y binfmt-support qemu-system-common qemu-user-static

 

tar xvzf flexbuild_lsdk2004_update_290520.tgz

source setup.env

 

flex-builder -i mkrfs -a arm64

 

flex-builder -c linux -a arm64

0 Kudos
Reply