Skip to content

Instantly share code, notes, and snippets.

@Gonzih
Created November 15, 2022 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gonzih/5beff49be3c61b09795f88a2b30ebb07 to your computer and use it in GitHub Desktop.
Save Gonzih/5beff49be3c61b09795f88a2b30ebb07 to your computer and use it in GitHub Desktop.
linux kernel development qemu script
sudo qemu-system-x86_64 \
-kernel arch/x86_64/boot/bzImage \
-initrd ramdisk.img \
-display none \
-serial stdio \
-append "root=/dev/vda console=ttyS0 nokaslr" \
-drive format=raw,file=/home/gnzh/mydev/linsicles/buildroot/output/images/rootfs.ext4,if=virtio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment