public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Configuring Tianocore Logging
@ 2016-11-14 18:27 Janne Heß
  2016-11-14 18:58 ` Laszlo Ersek
  0 siblings, 1 reply; 2+ messages in thread
From: Janne Heß @ 2016-11-14 18:27 UTC (permalink / raw)
  To: edk2-devel

[-- Attachment #1: Type: text/plain, Size: 692 bytes --]

Hello everyone,

I'm currently trying to get Tianocore running as a coreboot payload, but
it just resets the machine, so I tried to increase the log level.
As a EDK II newbie, it's really hard to figure out where to raise the
log level.
I found  the Debug FAQ which tells me about PcdDebugPropertyMask and
PcdDebugPrintErrorLevel.
So I looked the values up and found that they are set in MdePkg/MdePkg.dsc.
After setting these to 0xff... I rebuilt but there is still no output at
all. I also switched the TARGET to DEBUG, but it doesn't help.
So what am I missing here?
I tried building both Ovmf and the Coreboot payload, but neither of them
logs anything.

Regards
Janne


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Configuring Tianocore Logging
  2016-11-14 18:27 Configuring Tianocore Logging Janne Heß
@ 2016-11-14 18:58 ` Laszlo Ersek
  0 siblings, 0 replies; 2+ messages in thread
From: Laszlo Ersek @ 2016-11-14 18:58 UTC (permalink / raw)
  To: Janne Heß, edk2-devel

On 11/14/16 19:27, Janne Heß wrote:
> Hello everyone,
> 
> I'm currently trying to get Tianocore running as a coreboot payload, but
> it just resets the machine, so I tried to increase the log level.
> As a EDK II newbie, it's really hard to figure out where to raise the
> log level.
> I found  the Debug FAQ which tells me about PcdDebugPropertyMask and
> PcdDebugPrintErrorLevel.
> So I looked the values up and found that they are set in MdePkg/MdePkg.dsc.
> After setting these to 0xff... I rebuilt but there is still no output at
> all. I also switched the TARGET to DEBUG, but it doesn't help.
> So what am I missing here?
> I tried building both Ovmf and the Coreboot payload, but neither of them
> logs anything.

Generally:

You need a DebugLib library instance that logs to a device that you can
observe.

The most common such DebugLib instance is

MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf

which writes to the serial port.

In turn that depends on "SerialPortLib", which is really
platform-specific. Two examples are:

PcAtChipsetPkg/Library/SerialIoLib/SerialIoLib.inf
ArmPlatformPkg/Library/PL011SerialPortLib/PL011SerialPortLib.inf

Specifically:

- For capturing the OVMF debug log with QEMU, please look at OvmfPkg/README.

- For CoreBoot*Pkg, I guess
<https://github.com/tianocore/tianocore.github.io/wiki/Coreboot_UEFI_payload>
is the documentation.

Thanks
Laszlo



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-14 18:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-14 18:27 Configuring Tianocore Logging Janne Heß
2016-11-14 18:58 ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox