Re: [edk2] [PATCH] OvmfPkg VirtioScsiDxe: Fix build with VS2010

2012-10-22 Thread Jordan Justen
On Mon, Oct 22, 2012 at 5:08 PM, Laszlo Ersek wrote: > On 10/22/12 23:42, Jordan Justen wrote: >> Structures should not be directly assigned in EDK II >> code, since this leads to different behaviours on various >> compilers. > > Yes, structure assignment can be implemented by memberwise copy or >

Re: [edk2] [PATCH] OvmfPkg VirtioScsiDxe: Fix build with VS2010

2012-10-22 Thread Laszlo Ersek
On 10/22/12 23:42, Jordan Justen wrote: > Structures should not be directly assigned in EDK II > code, since this leads to different behaviours on various > compilers. Yes, structure assignment can be implemented by memberwise copy or blanket memcpy(), as allowed by ISO C99 6.2.6.1p6. Why is that

Re: [edk2] xen OVMF problem

2012-10-22 Thread Jordan Justen
On Mon, Oct 22, 2012 at 5:20 AM, Gonglei (Arei) wrote: > Hi, Jordan > What's your opinion about this problem? Thanks! Sorry. I'm still working to setup a Xen test environment. Bei, Andrei, How recently have you been able to test Xen with OVMF? Do you have time to verify that the lates

Re: [edk2] strod issues

2012-10-22 Thread Tim Lewis
Issue localized. Surprised that anyone with /W4 /WX on MS VC does not see this, since this code can be seen by any X64 build that I can try. MSVC detects that the union of an auto variable exceeds the storage on the stack. The problem is that word0 uses the following union: 1. typedef

[edk2] [PATCH] OvmfPkg VirtioScsiDxe: Fix build with VS2010

2012-10-22 Thread Jordan Justen
Structures should not be directly assigned in EDK II code, since this leads to different behaviours on various compilers. Instead, use ZeroMem to zero out the structures. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen --- OvmfPkg/VirtioScsiDxe/VirtioScsi.c

[edk2] strod issues

2012-10-22 Thread Tim Lewis
Anyone seen these before? I can get them in one config but not another. In X64 word0 evaluates to a UINTN * d:\bios\kernel\05.02.40\stdlib\libc\gdtoa\strtod.c(825) : error C2220: warning treated as error - no 'object' file generated d:\bios\kernel\05.02.40\stdlib\libc\gdtoa\strtod.c(825) : warni

Re: [edk2] [PATCH v2 3/5] OvmfPkg: Add LoadLinuxLib library implementation

2012-10-22 Thread Matt Fleming
On Mon, 2012-10-22 at 12:02 -0700, Jordan Justen wrote: > > > +STATIC > > > +EFI_STATUS > > > +SetupLinuxBootParams ( > > > + IN VOID *Kernel, > > > + IN OUT struct boot_params *Bp > > > + ) > > > +{ > > > + Bp->alt_mem_k = SIZE_32KB; > > > > This is a bit of legacy code and

Re: [edk2] New to EFI. help needed

2012-10-22 Thread Mcdaniel, Daryl
The old EFI toolkit is for the old EDK, not EDK II. There are some major differences in how services are presented in EDK II and the old way from the EDK. This is most noticeable with networking -- EDK Toolkit networking apps. will usually not work in EDK II. If you use the Toolkit version of

Re: [edk2] [PATCH v2 3/5] OvmfPkg: Add LoadLinuxLib library implementation

2012-10-22 Thread Jordan Justen
On Mon, 2012-10-22 at 10:45 +0100, Matt Fleming wrote: > On Sun, 2012-10-21 at 15:44 -0700, Jordan Justen wrote: > > This code is based on efilinux's bzimage support. > > git://git.kernel.org/pub/scm/boot/efilinux/efilinux.git > > > > Signed-off-by: Jordan Justen > > Cc: Matt Fleming > > --- > >

Re: [edk2] OVMF + Windows 2008 r2 sp1

2012-10-22 Thread Laszlo Ersek
On 10/22/12 18:52, Jeff VanDellen wrote: > I've come across the following information which seems relevant in > regards to Windows 7/2008's UEFI requirements. (The following passages are from [1], which I've referenced in section III of [2].) > > "Display at Boot Time > For a platform that has a

Re: [edk2] OVMF + Windows 2008 r2 sp1

2012-10-22 Thread Jeff VanDellen
I've come across the following information which seems relevant in regards to Windows 7/2008's UEFI requirements. "Display at Boot Time For a platform that has a console device, the UEFI 2.0 specification requires the firmware to implement the Simple Text Output Protocol. Optionally, the firmware

Re: [edk2] OVMF + Windows 2008 r2 sp1

2012-10-22 Thread Laszlo Ersek
On 10/22/12 18:10, Jeff VanDellen wrote: > > On Sat, Oct 20, 2012 at 3:19 PM, Laszlo Ersek wrote: >> I prepared an AutoUnattend.xml file for the DVD root with WAIK. It does >> get a bit farther (I can tell it from the VCPU load chart, it's very >> characteristic), but it still stops somewhere wa

Re: [edk2] OVMF + Windows 2008 r2 sp1

2012-10-22 Thread Jeff VanDellen
Greetings, On Sat, Oct 20, 2012 at 3:19 PM, Laszlo Ersek wrote: > On 10/16/12 16:58, Jeff VanDellen wrote: > >> -Additionally, I have installed windows 2008 via vmware workstation 9 >> to an LVM slice. > > Was that with OVMF? No, this was using vmware's implementation of EFI and installation

Re: [edk2] TrustZone support for VE Cortex A15?

2012-10-22 Thread Olivier Martin
Thanks Ryan, that's a good point! I was trying to reproduce the issue with the kernel he sent me on RTSM VE A9x4 and I do not see the Linux decompression statement. In the last email Nicola sent me, it looks he is using RTSM VE A15x2. -Original Message- From: Ryan Harkin [mailto:ryan.har..

Re: [edk2] TrustZone support for VE Cortex A15?

2012-10-22 Thread Ryan Harkin
Olivier, Nicola is referring to the A15-TC1 BSP that's in my tree, not to the RTSM version... Nicola, On 22 October 2012 10:58, Nicola Johnsen wrote: > So just that I understand this correctly: if there is no TZ controller on > the board, then secure memory is just emulated? As far as I could

Re: [edk2] xen OVMF problem

2012-10-22 Thread Gonglei (Arei)
Hi, Jordan What's your opinion about this problem? Thanks! Best Regards! Arei -Original Message- From: Gonglei (Arei) Sent: Wednesday, October 17, 2012 9:00 AM To: 'Jordan Justen' Cc: gbtj...@gmail.com; Andrei Warkentin Subject: RE: xen OVMF problem Jordan, My environment is x

Re: [edk2] New to EFI. help needed

2012-10-22 Thread Krishna Joshi
hi, This is what I observed: 1) In EDK 2 bios, the efi\tools is not automatically recognised 2) i am unable to use the python.efi generated from building AppPkg. I do not know the reason why. The same efi i use in APTIO and works fine. 3) When I use the python.efi generated by efi t

Re: [edk2] Boot Linux on ARM: how to pass in FDT?

2012-10-22 Thread Olivier Martin
Do you mind to send me your kernel and device tree by email? Please, do not send to the mailing-list. From: Nicola Johnsen [mailto:nicolajohn...@yahoo.co.uk] Sent: 22 October 2012 10:59 To: edk2-devel@lists.sourceforge.net Subject: [edk2] Boot Linux on ARM: how to pass in FDT? Yes it w

[edk2] Boot Linux on ARM: how to pass in FDT?

2012-10-22 Thread Nicola Johnsen
Yes it works booting the zImage from the local directory now, using semihosting, however, I still get the same error when the kernel boots: Error: unrecognized/unsupported device tree compatible list: [ '(null)' ] Is there a way that I can check that the right DTB is passed to the kernel? A

Re: [edk2] TrustZone support for VE Cortex A15?

2012-10-22 Thread Nicola Johnsen
So just that I understand this correctly: if there is no TZ controller on the board, then secure memory is just emulated? From: Olivier Martin To: 'Nicola Johnsen' ; edk2-devel@lists.sourceforge.net Sent: Monday, 22 October 2012, 10:43 Subject: RE: [edk2] T

Re: [edk2] Boot Linux on ARM: how to pass in FDT?

2012-10-22 Thread Olivier Martin
Sorry, I forgot this point. Yes, the default folder is the one where you start the simulator from. Some Fast Model allows to redefines the semihosting root (it does not seem to be the case on the Fast Model version I have). From: Nicola Johnsen [mailto:nicolajohn...@yahoo.co.uk] Sent: 22 Octob

Re: [edk2] Boot Linux on ARM: how to pass in FDT?

2012-10-22 Thread Nicola Johnsen
Thanks, that helps a lot. If I use semihosting, where on the host filesystem does it look for files? In the directory that I run the simulator from? Cheers. From: Olivier Martin To: 'Nicola Johnsen' ; edk2-devel@lists.sourceforge.net Sent: Monday, 22 Octob

Re: [edk2] TrustZone support for VE Cortex A15?

2012-10-22 Thread Olivier Martin
Hi again, New section about the Fast Model & Trustzone: https://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatform Pkg/ArmVExpressPkg#Example:_Trustzone_on_the_Fast_Model Let me know if that answers your questions. Cheers, Olivier -Original Message- From: Nicola Johnse

Re: [edk2] Boot Linux on ARM: how to pass in FDT?

2012-10-22 Thread Olivier Martin
Hi, After updating the FDT with "[4] Update FDT path", do you restart the model? I have just started a new section for Booting Linux on ARM Fast Model: https://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/ArmVExpressPkg#Example:_Booting_Linux_on_the_Model Cheers

[edk2] TrustZone support for VE Cortex A15?

2012-10-22 Thread Nicola Johnsen
Hi, I was wondering how I can enable to boot into the Secure World on the VE board with 2 Cortex-A15 CPUs?  It seems as if ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibCTA15x2/CTA15x2Sec.c says that there is no support for TZ on that board, but as far as I understand, the Cortex-A15 has

Re: [edk2] undefined reference to `__stack_chk_fail'

2012-10-22 Thread Olivier Martin
Hi Nicola, If you apply the pending BaseTools patches: patch -p0 < ArmPlatformPkg/Documentation/patches/BaseTools-Pending-Patches.patch that should solve your build errors. The ARMLINUXGCC flags have been updated in the BaseTools repository but the BaseTools have not been synced up with EDK2 repos

[edk2] undefined reference to `__stack_chk_fail'

2012-10-22 Thread Nicola Johnsen
Hi, I'm using the latest EDK2 code and I'm trying to build a boot loader for the VE board with the Cortex-A15: build -a ARM -p ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-RTSM-A15_MPCore.dsc -t ARMLINUXGCC But I get the following error: /code/uefi/tianocore/edk2/Build/ArmVExpress-RTSM-A15_MPCore

[edk2] Boot Linux on ARM: how to pass in FDT?

2012-10-22 Thread Nicola Johnsen
Hi I'm using the latest edk2 code and the ARM Fast Model simulator to run Linux. I used the guidance described here http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/ArmVExpressPkg#Booting_Linux and here http://sourceforge.net/apps/mediawiki/tianocore/index.php?ti