Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck at 01 #239

Open
ge1mina023 opened this issue Mar 24, 2022 · 3 comments
Open

Stuck at 01 #239

ge1mina023 opened this issue Mar 24, 2022 · 3 comments

Comments

@ge1mina023
Copy link

ge1mina023 commented Mar 24, 2022

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 ge1mina023 changed the title Can not see the output of "Booting from Hard Disk..." Stuck at 01 Mar 24, 2022
@ge1mina023
Copy link
Author

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

@agodfrind
Copy link

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.

@McBakonMahn
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants