Hello David,
On 03/08/18 02:08, david moheban wrote:
>
> Hi,
>
> I am having difficulty loading Duet image via Qemu x86-64 or Bochs in
> Windows 10-64. Command line I type ‘Qemu -fda floppy.img’ and does
> not get past ‘Welcome to Efi World’ but if I burn the image to a
> flash usb drive it will boot up just fine. Are there any settings or
> drivers that need to be included in the compilation process?
I saw your last query too on the mailing list:
[edk2] How load Duet Floppy.IMG File in Bochs or Quemu?
https://lists.01.org/pipermail/edk2-devel/2018-March/022313.html
I could have followed up there, but I decided not to, because (a) I
didn't want to appear as questioning your use case, and (b) I really
cannot help with the DUET firmware platform of edk2. I assumed what you
really cared about was running DUET on physical machines, and meant to
use QEMU only as a testbed of sorts.
However, seeing how this may be important to you, I can no longer avoid
questioning your use case -- are you perhaps targeting QEMU as your main
platform? Because, in that case, I certainly recommend that you drop
DUET and use OVMF instead.
So what's your ultimate goal here? For example, if you have individual
UEFI_DRIVER modules (not upstreamed to edk2) that you'd like to test on
QEMU first, and then use "for real" on physical machines, you could
build the driver into both OVMF and DUET. For testing, you can use OVMF
on QEMU, and DUET on physical machines with traditional BIOS firmware.
With regard to running OVMF on QEMU, I personally recommend a wrapper
script like the following (this example will launch a UEFI-bootable ISO
image):
ISO=/.../.iso
CODE=Build/OvmfX64/.../FV/OVMF_CODE.fd
TMPL=Build/OvmfX64/.../FV/OVMF_VARS.fd
DEBUG=ovmf.debug.log
cp $TMPL varstore.fd
qemu-system-x86_64 \
-m 2048 \
-drive if=pflash,format=raw,file=$CODE,readonly \
-drive if=pflash,format=raw,file=varstore.fd \
-drive if=none,format=raw,file=$ISO,readonly,id=cdrom \
-device ide-cd,drive=cdrom,bootindex=0 \
-debugcon file:$DEBUG \
-global isa-debugcon.iobase=0x402 \
-monitor stdio
Laszlo
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel