cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ssiddiqui
Visitor
Visitor
286 Views
Registered: ‎10-28-2020

Vitis Emulation-SW error: No xml meta data in xclbin

Hi,

My first vitis project for Alveo U200 card builds software-emulation binaries successfully, however, the run fails with the following error:

[XRT] ERROR: No xml meta data in xclbin
[XRT] ERROR: Failed to load xclbin.

======

Following these errors, the kernel load exits with error code -44, followed by messages:

[XRT] ERROR: No such CU at address: 131072
[XRT] ERROR: program is nullptr

OS: CentOS 8.2
xrt: built from source
uname -r :   4.18.0-193.el8.x86_64

 

If I run the program directly from terminal I get error code -22. The dmesg logs following:

 

Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 _xocl_drvinst_open: OPEN 1
Nov 2 15:51:21 localhost kernel: [drm] creating scheduler client for pid(49624), ret: 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: xmc.u.18874368 ffff8d9e41f6f810 xmc_read_from_peer: reading from peer
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: mailbox.u.9437184 ffff8d8f011be810 mailbox_request: sending request: 10 via HW
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: mailbox.m.9437184 ffff8d9e5a620010 process_request: received request from peer: 10, passed on
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: xclmgmt_read_subdev_req: req kind 0
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: mailbox.m.9437184 ffff8d9e5a620010 mailbox_post_response: posting response for: 10 via HW
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: icap.u.22020096 ffff8d9e41f6e810 icap_read_from_peer: reading from peer
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: mailbox.u.9437184 ffff8d8f011be810 mailbox_request: sending request: 10 via HW
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: mailbox.m.9437184 ffff8d9e5a620010 process_request: received request from peer: 10, passed on
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: xclmgmt_read_subdev_req: req kind 1
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: clock.m.28311552 ffff8d8f011b9810 clock_get_freq_by_id: freq = 250
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: clock.m.28311552 ffff8d8f011b9810 clock_get_freq_by_id: freq = 500
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: clock.m.28311552 ffff8d8f011b9810 clock_get_freq_by_id: freq = 0
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: clock.m.28311552 ffff8d8f011b9810 clock_get_freq_counter_khz: khz: 249996
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: clock.m.28311552 ffff8d8f011b9810 clock_get_freq_counter_khz: khz: 499991
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: clock.m.28311552 ffff8d8f011b9810 clock_get_freq_counter_khz: khz: 0
Nov 2 15:51:21 localhost kernel: xclmgmt 0000:65:00.0: mailbox.m.9437184 ffff8d9e5a620010 mailbox_post_response: posting response for: 10 via HW
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: icap.u.22020096 ffff8d9e41f6e810 icap_cached_ocl_frequency: no cached data for 3
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: rom.u.0 ffff8d9e38747010 verify_timestamp: Shell timestamp: 0x5d1211e8
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: rom.u.0 ffff8d9e38747010 verify_timestamp: Verify timestamp: 0x5d1211e8
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: trying to find section header for axlf section 20
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 6
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 8
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 7
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 14
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 4
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 27
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: saw section header: 26
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_axlf_section_header: skip section header 20
Nov 2 15:51:21 localhost kernel: [drm] Finding MEM_TOPOLOGY section header
Nov 2 15:51:21 localhost kernel: [drm] Section MEM_TOPOLOGY details:
Nov 2 15:51:21 localhost kernel: [drm] offset = 0x312fe0
Nov 2 15:51:21 localhost kernel: [drm] size = 0xa30
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_cleanup_mem_nolock: Taking down DDR : 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_cleanup_mem_nolock: Taking down DDR : 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_cleanup_mem_nolock: Taking down DDR : 2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_cleanup_mem_nolock: Taking down DDR : 3
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: icap.u.22020096 ffff8d9e41f6e810 icap_download_bitstream_axlf: err: -22
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 exec_reset: exec_reset(1) cfg(0)
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 exec_reset: exec_reset resets
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 exec_reset: exec->xclbin(00000000-0000-0000-0000-000000000000),xclbin(00000000-0000-0000-0000-000000000000)
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Topology count = 7, data_length = 280
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_init: already initialized
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Memory Bank: bank0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Base Address:0x4000000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Type:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Used:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Memory Bank: bank1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Base Address:0x5000000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Type:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Used:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Memory Bank: bank2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Base Address:0x6000000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Type:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Used:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Memory Bank: bank3
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Base Address:0x7000000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Type:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Used:1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Memory Bank: PLRAM[0]
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Base Address:0x3000000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Size:0x20000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Type:2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Used:0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Memory Bank: PLRAM[1]
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Base Address:0x3000200000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Size:0x20000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Type:2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Used:0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Memory Bank: PLRAM[2]
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Base Address:0x3000400000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Size:0x20000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Type:2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Used:0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_map: map bank addr 0x4000000000, size 17179869184, offset 0, len 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: bank addr 4000000000, sz 17179869184, slots 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Allocating Memory Bank: bank0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: base_addr:0x4000000000, total size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Found a new memory region
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_map: map bank addr 0x5000000000, size 17179869184, offset 0, len 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: bank addr 5000000000, sz 17179869184, slots 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Allocating Memory Bank: bank1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: base_addr:0x5000000000, total size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Found a new memory region
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_map: map bank addr 0x6000000000, size 17179869184, offset 0, len 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: bank addr 6000000000, sz 17179869184, slots 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Allocating Memory Bank: bank2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: base_addr:0x6000000000, total size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Found a new memory region
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_map: map bank addr 0x7000000000, size 17179869184, offset 0, len 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: bank addr 7000000000, sz 17179869184, slots 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Allocating Memory Bank: bank3
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: base_addr:0x7000000000, total size:0x400000000
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: Found a new memory region
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_map: map bank addr 0xffffffffffffffff, size 131072, offset 0, len 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: bank addr ffffffffffffffff, sz 131072, slots 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: mark 0 - 0 chunks
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_map: map bank addr 0xffffffffffffffff, size 131072, offset 0, len 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: bank addr ffffffffffffffff, sz 131072, slots 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_mem_map: map bank addr 0xffffffffffffffff, size 131072, offset 0, len 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: p2p.u.10485760 ffff8d9e38741810 p2p_bar_map: bank addr ffffffffffffffff, sz 131072, slots 1
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: drm_mm_init called for the available memory range
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_init_mem: ret 0
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_read_axlf_helper: Failed to download xclbin, err: -22
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: icap.u.22020096 ffff8d9e41f6e810 icap_cached_ocl_frequency: no cached data for 3
Nov 2 15:51:21 localhost kernel: [drm] client exits pid(49624)
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_drvinst_close: CLOSE 2
Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_drvinst_close: NOTIFY 000000001c1f0d9d

0 Kudos
Reply
1 Reply
emeryw
Xilinx Employee
Xilinx Employee
184 Views
Registered: ‎12-06-2019

Hi @ssiddiqui ,

Thanks for reaching out. We may have several issues at play here. I see you have CentOS 8.2 and XRT was built from source, but can you share some additional details about which XRT version was installed, as well as the U200 shell that you are targeting?

One thing that immediately stood out to me in the dmesg is this:

Nov 2 15:51:21 localhost kernel: xocl 0000:65:00.1: ffff8d9e5f6b30b0 xocl_read_axlf_helper: Failed to download xclbin, err: -22

Are you able to run validate successfully on your U200? Can you please post the outputs of the following:

sudo xbmgmt flash --scan
xbutil query

 

Best,

-Emery

-------------------------------------------------------------------------

Don’t forget to reply, kudo, and accept as solution.

-------------------------------------------------------------------------

0 Kudos
Reply