Requirements:
- LinuxMint 18.1 or Ubuntu ??.?
Build Xilinx QEMU
#!/bin/bash #TODO: Create "update" version of the script, package retrieving and cloning should be done one time only prerequisites="build-essential libglib2.0-dev libgcrypt20-dev zlib1g-dev autoconf automake libtool bison flex git" if [[ $EUID != 0 ]]; then echo "Please run as sudo"; exit; fi apt-get update apt-get install $prerequisites git clone git://github.com/Xilinx/qemu.git cd qemu git submodule update --init pixman dtc ./configure --target-list="aarch64-softmmu,microblazeel-softmmu" --enable-fdt --disable-kvm --disable-xen make -j4
QEMU start script
#!/bin/bash target_dir="./images/mymod" image="./beta_20170109.dd" dtb="devicetree.dtb" kernel="zImage" # Start QEMU ./qemu/aarch64-softmmu/qemu-system-aarch64 \ -M arm-generic-fdt-7series -machine linux=on -m 1024 \ -serial null -serial mon:stdio -nographic -boot mode=3 \ -dtb $target_dir/$dtb \ -kernel $target_dir/$kernel -append "root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 systemd.log_level=warning systemd.log_target=console kernel.sysrq=1 init=/usr/lib/systemd/systemd" \ -drive file=$target_dir/$image,if=sd,format=raw,index=0
TODO
- zImage (kernel) and .dtb (device tree) have to be supplied seprately, as boot bin has problems to start in QEMU, neds investigation
Current state
Boot works, needs some time. But further inspection is needed to verify that it works to the level where one can develop through remote debug for example.