Hi,
I am new to coreboot. Do you guys know where printk() statement go in coreboot source code?
e.g. printk(BIOS_DEBUG, "%s\n", msg);
Thank you very much!
Best, Fengwei
fengwei zhang wrote:
I am new to coreboot.
Welcome.
Do you guys know where printk() statement go in coreboot source code?
e.g. printk(BIOS_DEBUG, "%s\n", msg);
Typically to the first serial port on the board. Some chipsets/boards can also use EHCI Debug Port. And finally there is support for sending console output over UDP using a RTL8029 NIC.
If coreboot is configured to initialize a VGA option ROM (rare and not recommended, normally handled by SeaBIOS) then any printk() following that initi (usually none) would also be visible on the monitor.
//Peter
On Wed, Oct 13, 2010 at 4:05 PM, fengwei zhang namedylan@gmail.com wrote:
Hi,
I am new to coreboot. Do you guys know where printk() statement go in coreboot source code?
e.g. printk(BIOS_DEBUG, "%s\n", msg);
LXR can be helpful for browsing the code. printk is a macro defined in console.h
http://lxr.linux.no/#coreboot+r5940/src/include/console/console.h#L66
Thanks, Myles