From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-fo.cableone.cmh.synacor.com (smtp-fo.cableone.cmh.synacor.com [64.8.70.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BA6B11A1E1F for ; Wed, 5 Oct 2016 22:45:19 -0700 (PDT) X_CMAE_Category: , , X-CNFS-Analysis: v=2.2 cv=ZZVfDYdA c=1 sm=1 tr=0 a=F7HL8DhlWvVqsgDc77s/Qg==:117 a=FKkrIqjQGGEA:10 a=m0sRR0la7fUA:10 a=IkcTkHD0fZMA:10 a=20KFwNOVAAAA:8 a=otLtsZP2AAAA:8 a=i3X5FwGiAAAA:8 a=GyNZkYvlqZb291F7uhoA:9 a=QEXdDO2ut3YA:10 a=e_O65bzb51kRm2y5VmPK:22 a=gVyqtFkygESWxkzkOzyS:22 a=mmqRlSCDY2ywfjPLJ4af:22 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine X-Authed-Username: c3BhbWNvbGxlY3RvckBjYWJsZW9uZS5uZXQ= Received: from [10.203.0.111] ([10.203.0.111:45036] helo=md11.cableone.synacor.com) by mail.cableone.net (envelope-from ) (ecelerity 3.6.6.45965 r(Core:3.6.6.0)) with ESMTP id 72/22-07644-EE4E5F75; Thu, 06 Oct 2016 01:45:18 -0400 Date: Thu, 6 Oct 2016 01:45:18 -0400 (EDT) From: spam collector To: Laszlo Ersek Cc: edk2-devel@ml01.01.org Message-ID: <360734730.99846163.1475732718290.JavaMail.zimbra@cableone.net> In-Reply-To: <280e3403-1821-396e-5243-54b770dcb01a@redhat.com> References: <1825038664.87486514.1475464584880.JavaMail.zimbra@cableone.net> <9f2b0b8c-9bfb-dd73-f7cb-cd6df775c237@redhat.com> <812341546.91963700.1475549145141.JavaMail.zimbra@cableone.net> <5c54ce38-9f0c-ac8d-c926-570ebc3dd720@redhat.com> <1747186652.93714260.1475599157436.JavaMail.zimbra@cableone.net> <94a76bd7-732c-c8f6-b8be-8175dd061b86@redhat.com> <1410853764.96270806.1475635626572.JavaMail.zimbra@cableone.net> <280e3403-1821-396e-5243-54b770dcb01a@redhat.com> MIME-Version: 1.0 X-Originating-IP: [174.126.140.68] X-Mailer: Zimbra 8.0.7_GA_6021 (ZimbraWebClient - FF49 (Win)/8.0.7_GA_6021) Thread-Topic: OVMF.fd and placement of EfiBootServicesData Thread-Index: mYhAHJfsqyohKq32IR03pCmaKMaefQ== Subject: Re: OVMF.fd and placement of EfiBootServicesData X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2016 05:45:20 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit ----- Original Message ----- > From: "Laszlo Ersek" > To: "spam collector" > Cc: edk2-devel@ml01.01.org > Sent: Wednesday, October 5, 2016 8:28:46 AM > Subject: Re: [edk2] OVMF.fd and placement of EfiBootServicesData > > I recommend trying the following (32-bit command line), with Gerd's package: > > FW_BIN=/usr/share/edk2.git/ovmf-ia32/OVMF_CODE-pure-efi.fd > VARS_TMPL=/usr/share/edk2.git/ovmf-ia32/OVMF_VARS-pure-efi.fd > VARS=myvars.fd > SHELL_ISO=/usr/share/edk2.git/ovmf-ia32/UefiShell.iso > if ! [ -e "$VARS" ]; then > cp -v -- "$VARS_TMPL" "$VARS" > fi > > qemu-system-i386 \ > -m 2048 \ > -machine accel=kvm \ > \ > -drive if=pflash,format=raw,unit=0,readonly,file="$FW_BIN" \ > -drive if=pflash,format=raw,unit=1,file="$VARS" \ > \ > -device virtio-scsi-pci,id=scsi0 \ > -drive if=none,format=raw,readonly,file="$SHELL_ISO",id=shell \ > -device scsi-cd,bus=scsi0.0,drive=shell,bootindex=1 \ > \ > -chardev file,id=debugfile,path=ovmf.log \ > -device isa-debugcon,iobase=0x402,chardev=debugfile > > This will boot the shell for you, and even save the OVMF debug log in > the file "ovmf.log". I used the following command line (again, a WinXP DOS Session .BAT file): "..\qemu-system-i386w.exe" -m 256 -drive if=pflash,format=raw,unit=0,readonly,file=..\OVMF_CODE.fd -drive if=pflash,format=raw,unit=1,file=..\OVMF_VARS.fd -device virtio-scsi-pci,id=scsi0 -drive if=none,format=raw,readonly,file=..\UefiShell.iso,id=shell -device scsi-cd,bus=scsi0.0,drive=shell,bootindex=1 -chardev file,id=debugfile,path=ovmf.log -device isa-debugcon,iobase=0x402,chardev=debugfile -drive file=uefi.bin.vhd,format=raw,if=ide,media=disk,index=0 The shell booted up as expected. However, my BOOT.efi file is now a: "image is not an application" I don't think I mentioned before, my BOOT.efi is an OS loader, not a UEFI driver or other type application. Sorry, I should have mentioned that earlier, hope that did not confuse you. My BOOT.efi file has a value of 0x0B as the Subsystem value. PE Optional Header: Subsystem: 0x000B I removed the UefiShell.iso part: "..\qemu-system-i386w.exe" -m 256 -drive if=pflash,format=raw,unit=0,readonly,file=..\OVMF_CODE.fd -drive if=pflash,format=raw,unit=1,file=..\OVMF_VARS.fd -device virtio-scsi-pci,id=scsi0 -chardev file,id=debugfile,path=ovmf.log -device isa-debugcon,iobase=0x402,chardev=debugfile -drive file=uefi.bin.vhd,format=raw,if=ide,media=disk,index=0 and the shell was loaded, with the same result, "not an application". Anyway, thanks for your help. I will figure this out, I am sure of it :-) Ben