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 twlee2
Visitor
715 Views
Registered: ‎11-12-2018

Error: unable to open xlnk in Ubuntu 16.04

Hi,

I am using ZCU102 board and its OS is Ubuntu 16.04. I got stuck with this issue for a while and NEED HELP!

I used SDSoC to create and build lab1.elf (Matrix Multiplication and Addition) and copied all files inside the sd_card directory to the root of an SD card.

After boot ZCU102 and run lab1.elf (./lab1.elf), I get the following error : enable to open xlnk

Is it because linux-xlnx doesn't include xlnk driver? If so, could you please help how to add xlnk driver in building Linux image?

In building Petalinux image there is a step to add device tree fragment for APF driver but I don't know how to add this in building Linux image... 

 

 

0 Kudos
5 Replies
Explorer
Explorer
689 Views
Registered: ‎10-21-2015

Re: Error: unable to open xlnk in Ubuntu 16.04

Hi

As of v2018.2, xilinx linux kernel doesn't include APF driver as default(defconfig)

You have to build kernel image to include APF driver like this

Device Drivers -> Staging drivers
<*> Xilinx APF Accelerator driver ===> XILINX_APF=y

Device Drivers -> Staging drivers -> Xilinx APF Accelerator driver
[*] Xilinx APF DMA engines support ===> XILINX_DMA_APF=y

Then add this to your device tree

/ {
    xlnk {
        compatible = "xlnx,xlnk-1.0";
    };
};

 

Visitor twlee2
Visitor
606 Views
Registered: ‎11-12-2018

Re: Error: unable to open xlnk in Ubuntu 16.04

 

Thank you so much for your comment and I got the idea of what to do.

Can you help with more details of how to add this kind of script? I am new to building of linux kernel.

I built my Linux Kernel from linux-xlnx (v2018.2) of github.

Which file should I modify to include xlnk driver by adding the script? 

 

0 Kudos
Explorer
Explorer
593 Views
Registered: ‎10-21-2015

Re: Error: unable to open xlnk in Ubuntu 16.04

 

petalinux-config -c kernel for kernel configuration

vi <project directory>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi fore device-tree

Then petalinux-build

0 Kudos
Visitor twlee2
Visitor
548 Views
Registered: ‎11-12-2018

Re: Error: unable to open xlnk in Ubuntu 16.04

 

I really appreciate your help. I was able to boot zcu102 with Ubuntu.

But, now I am having another problem and looking for your advice.

I used SDSoC to create and build lab1.elf (Matrix Multiplication and Addition) and copied all files inside the sd_card directory to the root directory of second partition of SD card. First partition of SD card includes BOOT.BIN and image.ub created by petalinux. 

After boot ZCU102 and run lab1.elf (./lab1.elf), it shows

Testing 1024 iterations of 32x32 floating point mmultadd....

and hang there...

Please advise

 

0 Kudos
Observer liujiefei
Observer
95 Views
Registered: ‎12-23-2018

Re: Error: unable to open xlnk in Ubuntu 16.04

when i have to build kernel image to include APF driver and build the project, shows :

| 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/liujiefei/xilinx/petalinux/linux_project/XRT1800/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/Makefile.modpost:92: __modpost] Error 1
| make[2]: *** [/home/liujiefei/xilinx/petalinux/linux_project/XRT1800/build/tmp/work-shared/plnx-zynq7/kernel-source/Makefile:1213: modules] Error 2
| make[1]: *** [Makefile:146: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2

0 Kudos