ZCU102 NonRoot Boot
- Use the Linux kernel source code used during the Root boot to compile hvisor-tool, and the detailed compilation process can be found in Readme.
- Prepare the
virtio_cfg.json
andzone1_linux.json
needed to boot NonRoot. You can directly use theexample/zcu102-aarch64
in the hvisor-tool directory, which has been verified to ensure it can boot. - Prepare the Linux kernel Image, file system rootfs, and device tree linux1.dtb needed for NonRoot. The kernel and file system can be the same as Root, and Linux1.dtb can be configured as needed, or you can use the
images/aarch64/devicetree/zcu102-nonroot-aarch64.dts
in the hvisor directory. - Copy
hvisor.ko, hvisor, virtio_cfg, zone1_linux.json, linux1.dtb, Image, rootfs.ext4
to the file system used by Root Linux. - Enter the following commands in RootLinux to start NonRoot:
# Load the kernel module
insmod hvisor.ko
# Create virtio device
nohup ./hvisor virtio start virtio_cfg.json &
# Start NonRoot based on the json configuration file
./hvisor zone start zone1_linux.json
# View the output of NonRoot and interact.
screen /dev/pts/0
For more operation details, refer to hvisor-tool Readme