UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor jorisbolsens
Visitor
831 Views
Registered: ‎10-02-2018

Petalinux XLNK compile error

Jump to solution

I am trying to compile petalinux for SDSoC as stated here (UG1146) but am getting a compile error building the xlnx kernel with xlnk. I am running Ubuntu 16.04 and I am able to petalinux-build just fine with the xilinx drivers turned off.

 

| ERROR: "xlnk_init_config" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_get_config" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_set_config" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_config_clear_block" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_config_dma_type" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_wait" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_submit" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_release_all_channels" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_release_channel" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_request_channel" [drivers/staging/apf/xlnk.ko] undefined!
| make[3]: *** [/home/joris/zedboard/build/tmp/work-shared/zedboard-zynq7/kernel-source/scripts/Makefile.modpost:92: __modpost] Error 1
| make[2]: *** [/home/joris/zedboard/build/tmp/work-shared/zedboard-zynq7/kernel-source/Makefile:1213: modules] Error 2
| make[1]: *** [Makefile:146: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| make: Leaving directory '/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/linux-zedboard_zynq7-standard-build'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile_kernelmodules (log file is located at /home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/temp/log.do_compile_kernelmodules.33063)

Full output:

joris@ubuntu:~/zedboard$ petalinux-build 
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 3423 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:04
Parsing of 2552 .bb files complete (2514 cached, 38 parsed). 3425 targets, 148 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:20
Checking sstate mirror object availability: 100% |###############| Time: 0:00:20
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: fsbl: compiling from external source tree /opt/Xilinx/peta/tools/hsm/data/embeddedsw
ERROR: linux-xlnx-4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0 do_compile_kernelmodules: oe_runmake failed
ERROR: linux-xlnx-4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0 do_compile_kernelmodules: Function failed: do_compile_kernelmodules (log file is located at /home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/temp/log.do_compile_kernelmodules.33063)
ERROR: Logfile of failure stored in: /home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/temp/log.do_compile_kernelmodules.33063
Log data follows:
| DEBUG: Executing shell function do_compile_kernelmodules
| NOTE: make HOSTCC=gcc  -isystem/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/recipe-sysroot-native/usr/lib -L/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/recipe-sysroot-native/lib -Wl,-O1 HOSTCPP=gcc  -E -C /home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/linux-zedboard_zynq7-standard-build -j 8 modules CC=arm-xilinx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd -ffile-prefix-map=/home/joris/zedboard/build/tmp/work-shared/zedboard-zynq7/kernel-source=/kernel-source/  LD=arm-xilinx-linux-gnueabi-ld.bfd   UIMAGE_LOADADDR=0x8000
| make: Entering directory '/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/linux-zedboard_zynq7-standard-build'
|   CHK     include/config/kernel.release
|   GEN     ./Makefile
|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
|   Using /home/joris/zedboard/build/tmp/work-shared/zedboard-zynq7/kernel-source as source for kernel
|   CC      scripts/mod/empty.o
|   CC      scripts/mod/devicetable-offsets.s
|   MKELF   scripts/mod/elfconfig.h
|   CHK     scripts/mod/devicetable-offsets.h
|   HOSTCC  scripts/mod/modpost.o
|   HOSTCC  scripts/mod/file2alias.o
|   CHK     include/generated/timeconst.h
|   CHK     include/generated/bounds.h
|   CHK     include/generated/asm-offsets.h
|   CALL    /home/joris/zedboard/build/tmp/work-shared/zedboard-zynq7/kernel-source/scripts/checksyscalls.sh
|   HOSTCC  scripts/mod/sumversion.o
|   HOSTLD  scripts/mod/modpost
|   CC [M]  net/802/p8022.o
|   CC [M]  crypto/crypto_engine.o
|   CC [M]  crypto/echainiv.o
|   CC [M]  crypto/hmac.o
|   CC [M]  crypto/sha256_generic.o
|   CC [M]  net/802/psnap.o
|   CC [M]  drivers/crypto/virtio/virtio_crypto_algs.o
|   CC [M]  drivers/crypto/virtio/virtio_crypto_mgr.o
|   CC [M]  crypto/authenc.o
|   CC [M]  net/8021q/vlan.o
|   CC [M]  net/8021q/vlan_dev.o
|   CC [M]  drivers/crypto/virtio/virtio_crypto_core.o
|   CC [M]  net/8021q/vlan_netlink.o
|   CC [M]  net/802/stp.o
|   CC [M]  crypto/authencesn.o
|   CC [M]  crypto/drbg.o
|   CC [M]  net/8021q/vlanproc.o
|   LD [M]  drivers/crypto/virtio/virtio_crypto.o
|   CC [M]  crypto/jitterentropy.o
|   CC [M]  net/bridge/br.o
|   CC [M]  crypto/jitterentropy-kcapi.o
|   CC [M]  net/bridge/br_device.o
|   CC [M]  net/bridge/br_fdb.o
|   CC [M]  net/bridge/br_forward.o
|   LD [M]  net/8021q/8021q.o
|   LD [M]  crypto/jitterentropy_rng.o
|   CC [M]  net/llc/llc_core.o
|   CC [M]  net/bridge/br_if.o
|   CC [M]  net/ipv4/ipip.o
|   CC [M]  net/bridge/br_input.o
|   CC [M]  net/bridge/br_ioctl.o
|   CC [M]  net/bridge/br_stp.o
|   CC [M]  net/bridge/br_stp_bpdu.o
|   CC [M]  net/llc/llc_input.o
|   CC [M]  net/bridge/br_stp_if.o
|   CC [M]  net/bridge/br_stp_timer.o
|   CC [M]  net/bridge/br_netlink.o
|   CC [M]  net/bridge/br_netlink_tunnel.o
|   CC [M]  net/bridge/br_sysfs_if.o
|   CC [M]  net/bridge/br_sysfs_br.o
|   CC [M]  net/llc/llc_output.o
|   CC [M]  net/bridge/br_multicast.o
|   CC [M]  net/bridge/br_mdb.o
|   LD [M]  net/llc/llc.o
|   CC [M]  drivers/rpmsg/rpmsg_core.o
|   CC [M]  drivers/remoteproc/zynq_remoteproc.o
|   CC [M]  drivers/rpmsg/virtio_rpmsg_bus.o
|   CC [M]  drivers/staging/apf/xlnk-config.o
|   CC [M]  drivers/staging/apf/xlnk.o
|   CC [M]  drivers/staging/apf/xlnk-eng.o
|   CC [M]  drivers/uio/uio_pdrv_genirq.o
|   CC [M]  drivers/usb/gadget/usbstring.o
|   CC [M]  drivers/usb/gadget/config.o
|   CC [M]  drivers/usb/gadget/epautoconf.o
|   CC [M]  drivers/usb/gadget/composite.o
|   CC [M]  drivers/usb/gadget/functions.o
|   CC [M]  drivers/usb/gadget/configfs.o
|   CC [M]  drivers/usb/gadget/u_f.o
|   CC [M]  drivers/usb/gadget/function/f_loopback.o
|   LD [M]  net/bridge/bridge.o
|   CC [M]  drivers/usb/gadget/legacy/zero.o
|   CC [M]  drivers/usb/gadget/function/f_sourcesink.o
|   CC [M]  drivers/usb/gadget/function/f_mass_storage.o
|   CC [M]  drivers/usb/gadget/function/storage_common.o
|   LD [M]  drivers/usb/gadget/legacy/g_zero.o
|   LD [M]  drivers/usb/gadget/libcomposite.o
|   LD [M]  drivers/usb/gadget/function/usb_f_ss_lb.o
|   LD [M]  drivers/usb/gadget/function/usb_f_mass_storage.o
|   Building modules, stage 2.
|   MODPOST 27 modules
| ERROR: "xlnk_init_config" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_get_config" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_set_config" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_config_clear_block" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xlnk_config_dma_type" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_wait" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_submit" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_release_all_channels" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_release_channel" [drivers/staging/apf/xlnk.ko] undefined!
| ERROR: "xdma_request_channel" [drivers/staging/apf/xlnk.ko] undefined!
| make[3]: *** [/home/joris/zedboard/build/tmp/work-shared/zedboard-zynq7/kernel-source/scripts/Makefile.modpost:92: __modpost] Error 1
| make[2]: *** [/home/joris/zedboard/build/tmp/work-shared/zedboard-zynq7/kernel-source/Makefile:1213: modules] Error 2
| make[1]: *** [Makefile:146: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| make: Leaving directory '/home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/linux-zedboard_zynq7-standard-build'
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile_kernelmodules (log file is located at /home/joris/zedboard/build/tmp/work/zedboard_zynq7-xilinx-linux-gnueabi/linux-xlnx/4.14-xilinx-v2018.2+gitAUTOINC+ad4cd988ba-r0/temp/log.do_compile_kernelmodules.33063)
ERROR: Task (/opt/Xilinx/peta/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.2.bb:do_compile_kernelmodules) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6793 tasks of which 5194 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/Xilinx/peta/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2018.2.bb:do_compile_kernelmodules
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
0 Kudos
1 Solution

Accepted Solutions
Xilinx Employee
Xilinx Employee
798 Views
Registered: ‎02-20-2014

Re: Petalinux XLNK compile error

Jump to solution

See if the error goes away by making xlnk module part of linux kernel i.e CONFIG_XILINX_APF=y (instead of module 'm').

 

Thanks,

Radhey

3 Replies
Xilinx Employee
Xilinx Employee
799 Views
Registered: ‎02-20-2014

Re: Petalinux XLNK compile error

Jump to solution

See if the error goes away by making xlnk module part of linux kernel i.e CONFIG_XILINX_APF=y (instead of module 'm').

 

Thanks,

Radhey

Visitor jorisbolsens
Visitor
789 Views
Registered: ‎10-02-2018

Re: Petalinux XLNK compile error

Jump to solution

that seems to have fixed it!

0 Kudos
Observer santosh_ts
Observer
314 Views
Registered: ‎01-02-2019

Re: Petalinux XLNK compile error

Jump to solution

Hi,

Where should i make CONFIG_XILINX_APF=y ?

Which command i need to use ?

0 Kudos