我正在 Windows 上尝试这个:https : //github.com/cfenollosa/os-tutorial/tree/master/01-bootsector-barebones
E:\Code\MyOS\os>D:\qemu\qemu-system-x86_64.exe boot_sect_simple.bin
WARNING: Image format was not specified for 'boot_sect_simple.bin' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
Unexpected error in aio_context_set_poll_params() at /home/stefan/src/qemu/repo.or.cz/qemu/ar7/util/aio-win32.c:413:
D:\qemu\qemu-system-x86_64.exe: AioContext polling is not implemented on Windows
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
这也给出了同样的错误:
D:\qemu\qemu-system-x86_64.exe -drive format=raw,file=boot_sect_simple.bin
QEMU 版本:
E:\Code\MyOS\os>D:\qemu\qemu-system-x86_64.exe -version
QEMU emulator version 2.11.90 (v2.12.0-rc0-11704-g30195e9d53-dirty)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
NASM 版本:
E:\Code\MyOS\os>E:\Code\MyOS\nasm-2.13.03\nasm.exe -version
NASM version 2.13.03 compiled on Feb 7 2018
这是您正在使用的 QEMU (release-candidate rc0) 版本中的一个错误:https : //bugs.launchpad.net/qemu/+bug/1761027 它已在最终 2.12.0 版本中修复。所以你应该升级你的 QEMU(要么升级到 2.12.0,要么升级到最新的 3.0)。
一般来说,使用候选发布版本运行是一个坏主意,除非您在完整发布之前专门使用它们来测试它们。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句