On Do, 2015-05-28 at 16:14 +0000, Ma, Maurice wrote:
> Hi, Gerb,
> 
> The current UEFI payload can support 16550 UART compatible UART only.
> 
> The serial port I/O base and type (I/O or MMIO) are passed from coreboot to 
> the UEFI payload.

So I probably need serial console support in coreboot to get this going.

Ah, yes.  Now I at least get some output:

$ qemu-system-x86_64 \
   -bios /usr/share/coreboot.git/coreboot-i440fx-tianocore.rom \
   -serial stdio
[ ... ]
Loading driver at 0x0000774A000 EntryPoint=0x0000774A2AF CpuDxe.efi
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 7788B18
PROGRESS CODE: V03040002 I0
InstallProtocolInterface: 26BACCB1-6F42-11D4-BCE7-0080C73C8881 77593A0
!!!! X64 Exception Type - 0000000000000000     CPU Apic ID -
00000000 !!!!
RIP  - 000000000774FD1C, CS  - 0000000000000028, RFLAGS -
0000000000000202
RAX  - 000000000774FD16, RCX - 00000000077593A0, RDX - 00000000077593A0
RBX  - 0000000007F5A260, RSP - 0000000007F59618, RBP - 0000000007F59640
RSI  - 0000000000000007, RDI - 0000000000000001
R8   - 0000000000000000, R9  - 00000000077889D8, R10 - 00000000000000C7
R11  - 000000000000003C, R12 - 0000000000000000, R13 - 0000000000000000
R14  - 0000000000000000, R15 - 0000000000000000
DS   - 0000000000000008, ES  - 0000000000000008, FS  - 0000000000000008
GS   - 0000000000000008, SS  - 0000000000000008
CR0  - 0000000080000011, CR2 - 0000000000000000, CR3 - 0000000007B37000
CR4  - 0000000000000228, CR8 - 0000000000000000
DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 0000000007B24DD8 000000000000003F, LDTR - 0000000000000000
IDTR - 000000000778B018 0000000000000FFF,   TR - 0000000000000000
FXSAVE_STATE - 0000000007F59270
!!!! Find PE
image 
/var/lib/jenkins/jobs/edk2/workspace/rpmbuild/rpm/BUILD/edk2.git/Build/CorebootPayloadPkgX64/DEBUG_GCC48/X64/UefiCpuPkg/CpuDxe/CpuDxe/DEBUG/CpuDxe.dll
 (ImageBase=000000000774A000, EntryPoint=000000000774A2AF) !!!!
[ ... hangs here ... ]

Any idea what this could be?

Note that on qemu the coreboot hardware initialization is alot simpler
than on real hardware, so it could simply be that CorebootPkg expects
some information from coreboot which simply isn't there in the qemu
case.

Given that CorebootPkg seems to crash in cpu initialization you might
want to have a look at the very simple coreboot cpu driver for qemu, in
src/cpu/qemu-x86/

cheers,
  Gerd



------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to