Re: [edk2] Running EFI Shell

2012-10-26 Thread Валерий Бицоев
>>I think it might be easier to change code in the newer UEFI shell. Which newer UEFI Shell code you mean? I tried manually load HiiDatabase.efi and DevicePathDxe.efi, but after that i got new error: ASSERT_EFI_ERROR(Status= Device Error) at that lines of code Status = ShellCommandLibConstructor

[edk2] When to call ArmEnableInterrupts()?

2012-10-26 Thread nicolas
hi, ARM experts: I am studying ARM code. I found ArmPlatformSec code had call ArmDisableInterrupts(). So, when to enable interrupts? It seemed PEI phase did not need timer interrupt. But DXE phase need timer interrupt to schedule tasks. best wishes,--

Re: [edk2] Running EFI Shell

2012-10-26 Thread Валерий Бицоев
I resoved that assert by additional loading Uc2OnUcThunk.efi and then Shell started. But now I have new question: how to load those *.efi files from Shell code? -- Valery. 2012/10/26 Валерий Бицоев > >>I think it might be easier to change code in the newer UEFI shell. > Which newer UEFI Shell co

[edk2] gArmGlobalVariableGuid hob question

2012-10-26 Thread nicolas
hi, ARM experts: I have a question about gArmGlobalVariableGuid hob. It seemed PlatformPeim would create a gArmGlobalVariableGuid hob to describe global variable area. Based on dsc/dec file, it seemed only pre-reserved 0x04 bytes for global variable on the top of primary core stack. So, who wil

Re: [edk2] EFI_FILE_PROTOCOL.Delete() failing with EFI_WARN_DELETE_FAILURE

2012-10-26 Thread duck wilson
Opening the file in create mode is the problem. Change this: status = root->Open ( root, file, L"\\EFI\\BOOT\\FILE.TXT", EFI_FILE_MODE_READ | EFI_FILE_MODE_WRITE | EFI_FILE_MODE_CREATE, 0

Re: [edk2] Both legacy OpROM and UEFI BSD loaded

2012-10-26 Thread Li, Elvin
We can run both UEFI and Legacy OpROM start in preboot, but it will bring potential problem as device configuration will be possibly messed up, unless the BIOS or UEFI/Legacy OpROM aware this. BlockIo protocol is used to access storage device in preboot phase, BlockIo protocol is based on either

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

2012-10-26 Thread Nicola Johnsen
As far as I understand, I can enable secure memory on the simulator by setting daughterboard.secure_memory=1. That way the model partitions SRAM and DRAM into secure and non-secure memory and marks Boot ROM as secure memory. With that configuration the VE memory map changes as described here ht

Re: [edk2] xen OVMF problem

2012-10-26 Thread Bei Guan
2012/10/25 Gonglei (Arei) > Hi, Bei > > >I have installed an UEFI OS using the config like this: > > >disk = [ 'file:/root/xen_img/hvm_ubuntu1010_uefi2.img,ioemu:hda,w', > 'file:/root/ubuntu-10.10-desktop-amd64.iso,hdc:cdrom,r' ] > > ** ** > > I have tried ubuntu-10.10-desktop-amd64.

[edk2] [PATCH v3 1/4] OvmfPkg: Add Linux bzimage include file

2012-10-26 Thread Jordan Justen
This file is from the efilinux project where it resides under the path loaders/bzimage/bzimage.h. Signed-off-by: Jordan Justen Cc: Matt Fleming --- OvmfPkg/Include/IndustryStandard/LinuxBzimage.h | 164 +++ 1 file changed, 164 insertions(+) create mode 100644 OvmfPkg/Inclu

[edk2] [PATCH v3 4/4] OvmfPkg: Add support for qemu's -kernel parameter

2012-10-26 Thread Jordan Justen
If QEMU's -kernel parameter was used, then download the kernel from the FwCfg interface, and launch it. (See -kernel, -initrd, -append) The application uses the LoadLinuxLib to boot the kernel image. Signed-off-by: Jordan Justen --- OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c |5 + Ov

[edk2] [PATCH v3 0/4] OvmfPkg: Add support for QEMU's -kernel option

2012-10-26 Thread Jordan Justen
This series adds support for QEMU's -kernel option by porting the efilinux project into OvmfPkg. v3: * Fix memory allocation ranges for kernel setup and initrd * Use ramdisk_max kernel setup field properly * Port GOP based framebuffer init from efilinux * Cleanup unused portions of LinuxGdt.c

[edk2] [PATCH v3 2/4] OvmfPkg: Add LoadLinuxLib library interface

2012-10-26 Thread Jordan Justen
Signed-off-by: Jordan Justen --- OvmfPkg/Include/Library/LoadLinuxLib.h | 212 OvmfPkg/OvmfPkg.dec|4 + 2 files changed, 216 insertions(+) create mode 100644 OvmfPkg/Include/Library/LoadLinuxLib.h diff --git a/OvmfPkg/Include/Library/Loa

[edk2] [PATCH v3 3/4] OvmfPkg: Add LoadLinuxLib library implementation

2012-10-26 Thread Jordan Justen
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 --- OvmfPkg/Library/LoadLinuxLib/Ia32/JumpToKernel.S | 29 + OvmfPkg/Library/LoadLinuxLib/Ia32/JumpToKernel.asm | 35 ++ OvmfPkg/Library/

Re: [edk2] Serial Protocol Implementation in BeagleBoardPkg

2012-10-26 Thread Eugene Khoruzhenko
Hi Olivier, It looks like there is a bug in this commit (13773). The SerialPortGetControl (OUT *Control) function must return something in its Control argument. As is, the function just returns SUCCESS and Control has garbage, which causes ConIn to intermittently fail. I think the SerialPortExt

Re: [edk2] Serial Protocol Implementation in BeagleBoardPkg

2012-10-26 Thread Eugene Khoruzhenko
I think there are also the following cosmetic issues in TemplateSerialPortLib.c: 1. The type of SerialPortGetControl is RETURN_STATUS, but it returns EFI_SUCCESS, it should return RETURN_SUCCESS. 2. The type of SerialPortPoll is BOOLEAN, so it should return TRUE/FALSE, not 0. Regar

[edk2] SerialPortExtLib - Re: SF.net SVN: edk2:[13773] trunk/edk2

2012-10-26 Thread Jordan Justen
Olivier, This change doesn't seem quite right. If you are introducing a library interface, then EmbeddedPkg/SerialDxe/SerialDxe.inf should have that library listed since it uses it. In other words, shouldn't EmbeddedPkg/SerialDxe/SerialDxe.inf have SerialPortExtLib listed in its LibraryClasses se

Re: [edk2] Running EFI Shell

2012-10-26 Thread Jordan Justen
On Fri, Oct 26, 2012 at 12:43 AM, Валерий Бицоев wrote: > I resoved that assert by additional loading Uc2OnUcThunk.efi and then Shell > started. > But now I have new question: how to load those *.efi files from Shell code? Maybe a .nsh script could be used to load them and then the shell? -Jorda

[edk2] no PcdGetSize macro?

2012-10-26 Thread Tim Lewis
Part of the PCD infrastructure is the size of the data item. There are PPI and Protocol functions for this. And it is in the .DEC. But the EDK2 infrastructure does provide a way to get this in a generic fashion. It does not generate a #define for it, or provide a PcdLib.h macro. Any plans to co

Re: [edk2] no PcdGetSize macro?

2012-10-26 Thread Gao, Liming
Lewis: Do you request this macro works for all PCD types (Fixed, Patchable, Dynamic, DynamicEx) or just for DynamicEx? Thanks Liming From: Tim Lewis [mailto:tim.le...@insyde.com] Sent: Saturday, October 27, 2012 7:34 AM To: edk2-devel@lists.sourceforge.net Subject: [edk2] no PcdGetSize macro?

Re: [edk2] no PcdGetSize macro?

2012-10-26 Thread Tim Lewis
I want it to work for all types here VOID * is supported. Otherwise, there is no way to do a CopyMem from the data structure. And I would prefer to not have the module be dependent on Dynamic or DynamicEx From: Gao, Liming [mailto:liming@intel.com] Sent: Friday, October 26, 2012 8:42 PM To: