Skip to content

Instantly share code, notes, and snippets.

@bradfa
Last active June 24, 2022 07:30
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bradfa/3721697 to your computer and use it in GitHub Desktop.
Save bradfa/3721697 to your computer and use it in GitHub Desktop.
QEMU cheat sheet

QEMU Cheat Sheet

Kernel Config

  • Decent x86_64 kernel, use the
  • Decent x86_32 kernel, use the
  • Decent ARMv5t (ARM9) kernel, use the versatile_defconfig
  • Decent ARMv7a (ARM Cortex-A9) kernel, use the vexpress_defconfig
  • Decent MIPS little endian o32 kernel, use the
  • Decent PowerPC 601e kernel, use the

QEMU Machines

  • ARMv5t uses versatilepb
  • ARM Cortex-A9 uses vexpress-a9
  • MIPS o32 uses
  • PowerPC 601e uses

Booting

Example boot without a disk (will kernel panic):

qemu-system-arm -M versatilepb -kernel src/linux-3.2.29/arch/arm/boot/zImage -append "root=/dev/sda1 console=ttyAMA0" -nographic

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment