os-tutorial icon indicating copy to clipboard operation
os-tutorial copied to clipboard

Stuck at 01

Open ge1mina023 opened this issue 3 years ago • 3 comments

My qemu version is 6.2.0, and I did all of this in my M1 MacBook(Monterey 12.1) Before the problem, I can get right results about the tutorial(chapter 01). After I input the command of "qemu-system-aarch64 -S -drive file=boot_sect_simple.bin,format=raw -machine virt-5.2" There is nothing in my qemu console. The picture is as below. Screen Shot 2022-03-24 at 10 23 10 AM

I did not get the message of "Booting from Hard Disk..." in chapter 01.

ge1mina023 avatar Mar 24 '22 02:03 ge1mina023

I am so confused.But it is works by using qemu-system-x86_64 instead.

ge1mina023 avatar Mar 24 '22 11:03 ge1mina023

After I input the command of "qemu-system-aarch64 -S -drive file=boot_sect_simple.bin,format=raw -machine virt-5.2"

Is this when running the binary fi e (= the one you got by manually creating the boot sector ?). The binary code is for an x86-64 architecture. When you run qemu-system-aarch64, you are running an arm processor, which uses a very different set of instructions.

agodfrind avatar Apr 10 '22 09:04 agodfrind

You use aarch64 architecture for x86 instructions. Install qemu-system-x86 then run the qemu-system-x86_64 version of command, same parameters.

McBakonMahn avatar Apr 12 '24 20:04 McBakonMahn