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: 
Highlighted
Visitor aruocco
Visitor
195 Views
Registered: ‎11-04-2019

XEN baremetal guest (zcu102)

I have followed this guide: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842536/XEN+EL1+Baremetal+DomU but I am not able to build a simple baremetal app that works as a guest in xen: when I try to create a new guest with:

 xl -vvv create hw.cfg

It fails telling me:

libxl: debug: libxl_create.c:1708:do_domain_create: Domain 0:ao 0x55c6973bb0: create: how=(nil) callback=(nil) poller=0x55c697bc30
libxl: debug: libxl_arm.c:71:libxl__arch_domain_prepare_config: Configure the domain
libxl: debug: libxl_arm.c:74:libxl__arch_domain_prepare_config:  - Allocate 23 SPIs
libxl: debug: libxl_create.c:1042:initiate_domain_create: Domain 1:running bootloader
libxl: debug: libxl_bootloader.c:335:libxl__bootloader_run: Domain 1:no bootloader configured, using user supplied kernel
libxl: debug: libxl_event.c:686:libxl__ev_xswatch_deregister: watch w=0x55c6977550: deregister unregistered
domainbuilder: detail: xc_dom_allocate: cmdline="", features=""
libxl: debug: libxl_dom.c:784:libxl__build_pv: pv kernel mapped 0 path hw.bin
domainbuilder: detail: xc_dom_kernel_file: filename="hw.bin"
domainbuilder: detail: xc_dom_boot_xen_init: ver 4.11, caps xen-3.0-aarch64 xen-3.0-armv7l 
domainbuilder: detail: xc_dom_rambase_init: RAM starts at 40000
domainbuilder: detail: xc_dom_parse_image: called
domainbuilder: detail: xc_dom_find_loader: trying multiboot-binary loader ... 
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM64) loader ... 
domainbuilder: detail: xc_dom_probe_zimage64_kernel: kernel is not an arm64 Image
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying Linux zImage (ARM32) loader ... 
domainbuilder: detail: xc_dom_probe_zimage32_kernel: kernel is not an arm32 zImage
domainbuilder: detail: loader probe failed
domainbuilder: detail: xc_dom_find_loader: trying ELF-generic loader ... 
domainbuilder: detail: loader probe failed
xc: error: panic: xc_dom_core.c:692: xc_dom_find_loader: no loader found: Invalid kernel
libxl: error: libxl_dom.c:722:libxl__build_dom: xc_dom_parse_image failed
domainbuilder: detail: xc_dom_release: called
libxl: error: libxl_create.c:1302:domcreate_rebuild_done: Domain 1:cannot (re-)build domain: -3
libxl: debug: libxl_domain.c:1180:devices_destroy_cb: Domain 1:Forked pid 2455 for destroy of domain
libxl: debug: libxl_create.c:1745:do_domain_create: Domain 0:ao 0x55c6973bb0: inprogress: poller=0x55c697bc30, flags=i
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x55c6973bb0: complete, rc=-3
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x55c6973bb0: destroy
libxl: debug: libxl_domain.c:902:libxl_domain_destroy: Domain 1:ao 0x55c6970a90: create: how=(nil) callback=(nil) poller=0x55c697bc30
libxl: error: libxl_domain.c:1034:libxl__destroy_domid: Domain 1:Non-existant domain
libxl: error: libxl_domain.c:993:domain_destroy_callback: Domain 1:Unable to destroy guest
libxl: error: libxl_domain.c:920:domain_destroy_cb: Domain 1:Destruction of domain failed
libxl: debug: libxl_event.c:1869:libxl__ao_complete: ao 0x55c6970a90: complete, rc=-21
libxl: debug: libxl_domain.c:911:libxl_domain_destroy: Domain 1:ao 0x55c6970a90: inprogress: poller=0x55c697bc30, flags=ic
libxl: debug: libxl_event.c:1838:libxl__ao__destroy: ao 0x55c6970a90: destroy
xencall:buffer: debug: total allocations:58 total releases:58
xencall:buffer: debug: current allocations:0 maximum allocations:2
xencall:buffer: debug: cache current size:2
xencall:buffer: debug: cache hits:45 misses:2 toobig:11
xencall:buffer: debug: total allocations:0 total releases:0
xencall:buffer: debug: current allocations:0 maximum allocations:0
xencall:buffer: debug: cache current size:0
xencall:buffer: debug: cache hits:0 misses:0 toobig:0

In bold what I think is the main problem: it doesn't know how to properly load in memory the binary. Is there something I need to change somewhere?

 

Thanks

0 Kudos