1 This is intended to be used with LEDE project to provide image for use with
4 Run with qemu-system-arm
6 # boot with initramfs embedded in
7 qemu-system-arm -nographic -M virt -m 64 -kernel lede-armvirt-32-zImage-initramfs
10 qemu-system-arm -nographic -M virt,accel=kvm -cpu host -m 64 -kernel
11 lede-armvirt-32-zImage-initramfs
13 # boot with a separate rootfs
14 qemu-system-arm -nographic -M virt -m 64 -kernel lede-armvirt-32-zImage \
15 -drive file=lede-armvirt-32-root.ext4,format=raw,if=virtio -append 'root=/dev/vda rootwait'
17 # boot with local dir as rootfs
18 qemu-system-arm -nographic -M virt -m 64 -kernel lede-armvirt-32-zImage \
19 -fsdev local,id=rootdev,path=root-armvirt/,security_model=none \
20 -device virtio-9p-pci,fsdev=rootdev,mount_tag=/dev/root \
21 -append 'rootflags=trans=virtio,version=9p2000.L,cache=loose rootfstype=9p'
25 # start a named machine
26 lkvm run -k lede-armvirt-32-zImage -i lede-armvirt-32-rootfs.cpio --name armvirt0
28 # start with virtio-9p rootfs
29 lkvm run -k lede-armvirt-32-zImage -d root-armvirt/
32 lkvm stop --name armvirt0
37 The multi-platform ARMv8 target can be used with QEMU:
39 qemu-system-aarch64 -machine virt -cpu cortex-a57 -nographic \
40 -kernel lede-armvirt-64-Image-initramfs \