Skip to content

Instantly share code, notes, and snippets.

@ahhajlou
Last active June 7, 2025 12:52
Show Gist options
  • Save ahhajlou/635bd51e9ed9390ead20e9ce848bea1b to your computer and use it in GitHub Desktop.
Save ahhajlou/635bd51e9ed9390ead20e9ce848bea1b to your computer and use it in GitHub Desktop.
qemu-system-aarch64 \
-M virt \
-cpu cortex-a72 \
-m 256 \
-kernel ./Image \
-initrd initrd.cpio \
-append "console=ttyAMA0 maxcpus=1 rdinit=/init" \
-nographic
qemu-system-aarch64 \
-M versatilepb \
-cpu arm1176 \
-m 256 \
-kernel ./kernel-qemu-5.10.63-bullseye \
-dtb ./versatile-pb-bullseye-5.10.63.dtb \
--nographic
qemu-system-aarch64 \
-M virt \
-cpu cortex-a72 \
-m 256 \
-bios ./u-boot.bin \
-nographic \
-device virtio-net-pci,netdev=net0 \
-netdev user,id=net0,hostfwd=tcp::2222-:22,tftp=/var/lib/tftpboot
qemu-system-aarch64 \
-M virt \
-cpu cortex-a72 \
-m 256 \
-kernel ./vmlinux \
-append "console=ttyAMA0 root=/dev/vda rw" \
-drive if=virtio,file=rootfs.img,format=raw \
-nographic
qemu-system-aarch64 \
-M virt \
-cpu cortex-a72 \
-m 256 \
-kernel ./Image \
-append "console=ttyAMA0 root=/dev/vda rootwait ro maxcpus=1" \
-nographic \
-drive file=./rootfs.img,if=virtio
qemu-system-aarch64 \
-M virt \
-cpu cortex-a72 \
-m 256 \
-kernel ./vmlinux \
-append "console=ttyAMA0" \
-nographic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment