Issue 36391 in chromium-os: U-Boot for x86 needs a default serial console for panic() to use

9 views
Skip to first unread message

chrom...@googlecode.com

unread,
Nov 14, 2012, 10:30:41 PM11/14/12
to chromium...@chromium.org
Status: Untriaged
Owner: ----
CC: gabebl...@chromium.org, s...@chromium.org
Labels: Type-Bug Pri-2 Area-BIOS Sev-2

New issue 36391 by wfric...@chromium.org: U-Boot for x86 needs a default
serial console for panic() to use
http://code.google.com/p/chromium-os/issues/detail?id=36391

If you invoke a U-Boot that doesn't have an FDT, then fdtdec_check_fdt()
detects that fact and calls panic("No valid fdt found...").

But panic() just calls vprintf() to display the message, then reboots.

On x86, there is no default serial configuration and the FDT itself is used
to initialize the serial port. So that makes it kind of tricky to debug
these cases.

If I could follow the byzantine morass of #ifdefs that is
drivers/serial/serial.c, perhaps I could figure out how to fix this
myself...



chrom...@googlecode.com

unread,
Nov 15, 2012, 2:05:07 PM11/15/12
to chromium...@chromium.org

Comment #1 on issue 36391 by s...@chromium.org: U-Boot for x86 needs a
default serial console for panic() to use
http://code.google.com/p/chromium-os/issues/detail?id=36391

We should consider adding a function like board_panic() to handle this,
then implement it in coreboot.c to hard-code the serial settings and output
the message


chrom...@googlecode.com

unread,
Nov 19, 2012, 5:44:12 PM11/19/12
to chromium...@chromium.org
Updates:
Status: Available
Labels: Uboot

Comment #2 on issue 36391 by arsc...@chromium.org: U-Boot for x86 needs a
default serial console for panic() to use
http://code.google.com/p/chromium-os/issues/detail?id=36391

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages