cd qemu; mkdir build; cd build;
install pkg-config
install zlib1g-dev zlib1g
ERROR: glib-2.22 gthread-2.0 is required to compile QEMU
install libglib2.0-devERROR: pixman >= 0.21.8 not present. Your options: …
install libpixman-1-devERROR: DTC (libfdt) version >= 1.4.0 not present. Your options: …
install libfdt-dev./configure –target-list=aarch64-softmmu –enable-fdt –enable-kvm –disable-werror
make
make install # better uninstall previous qemu version if had one.
qemu-system-aarch64 –version
root@linaro-developer:~/qemu/build# qemu-system-aarch64 –version
QEMU emulator version 2.5.50, Copyright (c) 2003-2008 Fabrice Bellard
In aarch64 ubuntu-16.04, there is doc: cnblogs.com/from-zero/p/14327440.html