From 3d50359a4428611bb8bda3302fd710092e43a583 Mon Sep 17 00:00:00 2001 From: Raduta Alexandru <116392593+Raduta-Alexandru@users.noreply.github.com> Date: Sat, 15 Nov 2025 14:05:01 +0200 Subject: [PATCH] Update QEMU command syntax for x86_64 Changed `qemu-system` commands to `qemu-system-x86_64` --- docs/linux_kernel_development/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/linux_kernel_development/index.mdx b/docs/linux_kernel_development/index.mdx index 247ecb7..ccabcb0 100644 --- a/docs/linux_kernel_development/index.mdx +++ b/docs/linux_kernel_development/index.mdx @@ -175,7 +175,7 @@ provides a minimal bootloader that can load a `multiboot v1` compatible kernel t supplied using the `-kernel` argument. The Linux kernel is compatible. ```bash -$ qemu-system -kernel arch/x86_64/boot/bzImage -nographic -append "earlyprintk=serial,ttyS0 console=ttyS0 debug" +$ qemu-system-x86_64 -kernel arch/x86_64/boot/bzImage -nographic -append "earlyprintk=serial,ttyS0 console=ttyS0 debug" ``` Running QEMU should print an output similar to: @@ -354,7 +354,7 @@ $ find . -print0 | cpio --null -ov --format=newc | gzip -9 > ../initramfs.cpio.g We have to add the `--initrd` argument to QEMU. ```bash -$ qemu-system -kernel arch/x86_64/boot/bzImage -nographic -append "earlyprintk=serial,ttyS0 console=ttyS0 debug" --initrd initramfs.cpio.gz +$ qemu-system-x86_64 -kernel arch/x86_64/boot/bzImage -nographic -append "earlyprintk=serial,ttyS0 console=ttyS0 debug" --initrd initramfs.cpio.gz ``` **The kernel boots, but it seems to show use the same panic!**