public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Tian, Hot" <hot.tian@intel.com>
To: Prem Kumar <perry.prem@gmail.com>, "afish@apple.com" <afish@apple.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>,
	"Gao, Liming" <liming.gao@intel.com>,
	"Ni, Ruiyu" <ruiyu.ni@intel.com>
Subject: Re: Building EmulatorPkg and EDK2 project issue.
Date: Sat, 3 Nov 2018 23:45:50 +0000	[thread overview]
Message-ID: <97159AD15C0F454180C255F8DA66135535E90D4B@SHSMSX104.ccr.corp.intel.com> (raw)
In-Reply-To: <CAG+YCe1WTHsmnknAP+Qo9HEPuJ9c--p1aDcQVULmLGKS4ngMHw@mail.gmail.com>

Are you using the latest EDKII master code? Windows support is added recently by https://bugzilla.tianocore.org/show_bug.cgi?id=1112. + Ruiyu Ni.

Thanks,
Hot

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Prem Kumar
Sent: Sunday, November 04, 2018 4:55
To: afish@apple.com
Cc: edk2-devel@lists.01.org; Gao, Liming <liming.gao@intel.com>
Subject: Re: [edk2] Building EmulatorPkg and EDK2 project issue.

Hi Andrew,
 Thanks for your explanation.

After building for x64 I could see below error.

C:\UEFIWorkspace\edk2-master_2018_Latest\Build\EmulatorX64\DEBUG_VS2015x86\X64>WinHost.exe

EDK II WIN Host Emulation Environment from http://www.tianocore.org/edk2/
  BootMode 0x00
  OS Emulator passing in 128 KB of temp RAM at 0x65e70000 to SEC ERROR : Can not open Firmware Device File ../FV/FV_RECOVERY.fd (0xE).
Exiting.


*I've searched for FV_RECOVERY.fd in entire project and found no such file generated after built.*

--
Thanks & Regards,
Prem.



On Sun, Nov 4, 2018 at 1:56 AM Andrew Fish <afish@apple.com> wrote:

> Prem,
>
> I've not run the emulator on Windows in a very very long time. But 
> lets take a look at your error message.
>
> /Volumes/Case/UDK2018(vUDK2018)>git grep "Could not allocate 
> PeiServicesTablePage"
> EmulatorPkg/Unix/Host/Host.c:508:      printf ("MapFd0(): *Could not
> allocate PeiServicesTablePage* @ %lx\n", (long unsigned 
> int)EmuMagicPage);
>
> That seems to point to PcdPeiServicesTablePage 
> /Volumes/Case/UDK2018(vUDK2018)>git grep PcdPeiServicesTablePage -- 
> *.dec
> EmulatorPkg/EmulatorPkg.dec:73:  gEmulatorPkgTokenSpaceGuid.
> *PcdPeiServicesTablePage*|0x1003000000|UINT64|0x0000101b
>
> Which has a default value of 0x1003000000. But since you built for 
> IA32 it gets truncated to 0x03000000
>
> Do you need 32-bit IA32? Can do a 64-bit build and use X64. Something like:
>
> build -p EmulatorPkg\EmulatorPkg.dsc -t VS2015x86 -D WIN_SEC_BUILD -a
> X64 -m EmulatorPkg/Win/Host/WinHost.inf
>
> It looks like that is hard coded address that needs to get allocated 
> in the emulator, and in your case that allocation is failing.
>
> Thanks,
>
> Andrew Fish
>
> PS I'm not sure the printf is correct:       printf ("MapFd0(): Could not
> allocate PeiServicesTablePage @ %lx\n", (long unsigned 
> int)EmuMagicPage); Given the width of long is different on different 
> platforms. UINT64 uses long long to make sure things are 64-bits. Not 
> to mention EmuMagicPage is a pointer, not an long unsigned int.
>
>
> On Nov 3, 2018, at 12:26 PM, Prem Kumar <perry.prem@gmail.com> wrote:
>
> Hi Andrew,
>  Thanks for your reply.
>
> Below is the error when trying to launch Emulator after successful 
> build,
>
> *1.Launching Emulator using below command:* 
> C:\UEFIWorkspace\edk2-master_2018_Latest>cd
> Build\EmulatorIA32\DEBUG_VS2015x86\IA32\ && WinHost.exe
>
> EDK II WIN Host Emulation Environment from http://www.tianocore.org/edk2/
>   BootMode 0x00
>   OS Emulator passing in 128 KB of temp RAM at 0x04400000 to SEC ERROR 
> : Could not allocate PeiServicesTablePage @ 03000000
>
> *2. Launching WinHose.exe directly:*
>
> C:\UEFIWorkspace\edk2-master_2018_Latest\Build\EmulatorIA32\DEBUG_VS20
> 15x86\IA32>WinHost.exe
>
> EDK II WIN Host Emulation Environment from http://www.tianocore.org/edk2/
>   BootMode 0x00
>   OS Emulator passing in 128 KB of temp RAM at 0x04ab0000 to SEC ERROR 
> : Could not allocate PeiServicesTablePage @ 03000000
>
>
>
> --
> Regards,
> Prem.
>
>
>
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


  reply	other threads:[~2018-11-03 23:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-30 14:04 Building EmulatorPkg and EDK2 project issue Prem Kumar
2018-10-30 23:57 ` Gao, Liming
2018-10-31 12:18   ` Prem Kumar
2018-11-03  8:42     ` Prem Kumar
2018-11-03 17:11       ` Andrew Fish
2018-11-03 19:26         ` Prem Kumar
2018-11-03 20:26           ` Andrew Fish
2018-11-03 20:55             ` Prem Kumar
2018-11-03 23:45               ` Tian, Hot [this message]
2018-11-04  2:04                 ` Prem Kumar
2018-11-04  2:18                   ` Prem Kumar
2018-11-04 18:05               ` Andrew Fish
2018-11-04 18:41                 ` Prem Kumar
2018-11-05  6:31                   ` Ni, Ruiyu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97159AD15C0F454180C255F8DA66135535E90D4B@SHSMSX104.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox