Git Product home page Git Product logo

Comments (9)

phil-opp avatar phil-opp commented on September 18, 2024

Two ideas:

  • Try run-args = ["-L", "~/Code/QEMU/pc-bios"] to pass it as two string parameters instead of one.
  • Try to replace the ~ with your /home/xxx directory (normally your shell does this, but we don't invoke it in a shell).

from bootimage.

lmatz avatar lmatz commented on September 18, 2024

Thanks for the ideas, I tried both at the same time.

[package.metadata.bootimage]
run-args = ["-L", "/Users/XXX/Code/QEMU/pc-bios"]

However, the error still exists:

Running: qemu-system-x86_64 -drive format=raw,file=target/minikernel/debug/bootimage-minikernel.bin -L /Users/XXX/Code/QEMU/pc-bios
Error: Failed to execute "qemu-system-x86_64" "-drive" "format=raw,file=target/minikernel/debug/bootimage-minikernel.bin" "-L" "/Users/XXX/Code/QEMU/pc-bios": No such file or directory (os error 2)

from bootimage.

phil-opp avatar phil-opp commented on September 18, 2024

Have you tried executing the printed run command manually:

qemu-system-x86_64 -drive format=raw,file=target/minikernel/debug/bootimage-minikernel.bin -L /Users/XXX/Code/QEMU/pc-bios

Maybe directly invoking QEMU gives a better error message.

The error message sounds like either the path to your pc-bios or the path to your bootimage-minikernel.bin are wrong. Could you check whether both files exist at the printed locations?

from bootimage.

lmatz avatar lmatz commented on September 18, 2024

Directly executing this command would successfully invoke the qemu, and no errors in qemu or shell pops out.

These two paths indeed exist. I am also really confused about this.

from bootimage.

phil-opp avatar phil-opp commented on September 18, 2024

That's strange. Could you also try it with the quotes:

"qemu-system-x86_64" "-drive" "format=raw,file=target/minikernel/debug/bootimage-minikernel.bin" "-L" "/Users/XXX/Code/QEMU/pc-bios"

from bootimage.

lmatz avatar lmatz commented on September 18, 2024

Sorry for the late reply

Yes, executing with quotes can invoke qemu successfully.

from bootimage.

phil-opp avatar phil-opp commented on September 18, 2024

Ah, I think I interpreted the error message wrong. The "No such file or directory" might refer to the QEMU executable. Are you sure that it's in your PATH?

from bootimage.

lmatz avatar lmatz commented on September 18, 2024

Oh, after I change the qemu path in PATH variable to be the absolute path instead of "~/XXX", it works! Thank you!

from bootimage.

phil-opp avatar phil-opp commented on September 18, 2024

Perfect!

from bootimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.