https://vadion.com/xen-hypervisor-setting-up-xen-userland-and-running-domu-guests-part-3/
https://wiki.xenproject.org/wiki/Xen_ARM_with_Virtualization_Extensions/CrossCompiling
sudo sbuild-createchroot --components=main,universe <your_ubuntu_codename> /srv/chroots/saucy-arm64-cross http://old-releases.ubuntu.com/ubuntu/The ubuntu codename can be printed with:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
you may need to patch some xenstore files if you face the xprintf compile error:
https://lists.xenproject.org/archives/html/xen-devel/2020-05/msg01273.html
on xenstored_core.h:
extern xengnttab_handle **xgt_handle;on utils.h:
extern void (*xprintf)(const char *fmt, ...);If you find something like “cc1: all warnings being treated as errors”
- just open the makefile of the directory referenced by the error and remove the
-WerrorfromCFLAGS - To find the directory, look for the last
make[4]: Entering directoryocurrence that was printed on thestdout- For Example:
make[4]: Entering directory '/home/sargx/Workspace/TCC/xenonarm/xen-4.12.2/tools/libxl- In this case, edit
tools/libxl/Makefile.
- For Example:
CFLAGS += -Werror