3 config NO_BOOTBLOCK_CONSOLE
6 config BOOTBLOCK_CONSOLE
7 bool "Enable early (bootblock) console output."
8 depends on !NO_BOOTBLOCK_CONSOLE
11 Use console during the bootblock if supported
13 config POSTCAR_CONSOLE
14 bool "Enable console output during postcar."
15 depends on POSTCAR_STAGE
18 Use console during the postcar if supported
20 config SQUELCH_EARLY_SMP
21 bool "Squelch AP CPUs from early console."
25 When selected only the BSP CPU will output to early console.
27 Console drivers have unpredictable behaviour if multiple threads
28 attempt to share the same resources without a spinlock.
33 bool "Serial port console output"
35 depends on DRIVERS_UART
37 Send coreboot debug output to a serial port.
39 The type of serial port driver selected based on your configuration is
40 shown on the following menu line. Supporting multiple different types
41 of UARTs in one build is not supported.
43 config FIXED_UART_FOR_CONSOLE
46 Select to remove the prompt from UART_FOR_CONSOLE in case a
47 specific UART has to be used (e.g. when the platform code
48 performs dangerous configurations).
50 if CONSOLE_SERIAL || CONSOLE_CBMEM_DUMP_TO_UART
52 comment "I/O mapped, 8250-compatible"
53 depends on DRIVERS_UART_8250IO
55 comment "memory mapped, 8250-compatible"
56 depends on DRIVERS_UART_8250MEM
58 comment "device-specific UART"
59 depends on HAVE_UART_SPECIAL
61 config OVERRIDE_UART_FOR_CONSOLE
64 Set to "y" when the platform overrides the index of uart port by providing
65 a get_uart_for_console routine.
67 if !OVERRIDE_UART_FOR_CONSOLE
69 config UART_FOR_CONSOLE
71 prompt "Index for UART port to use for console" if !FIXED_UART_FOR_CONSOLE
74 Select an I/O port to use for serial console:
75 0 = 0x3f8, 1 = 0x2f8, 2 = 0x3e8, 3 = 0x2e8
77 # FIXME: Early programming in romstage is incorrect as we should
78 # program different LDN to actually change the physical port.
81 depends on DRIVERS_UART
82 default 0x3f8 if UART_FOR_CONSOLE = 0
83 default 0x2f8 if UART_FOR_CONSOLE = 1
84 default 0x3e8 if UART_FOR_CONSOLE = 2
85 default 0x2e8 if UART_FOR_CONSOLE = 3
87 Map the COM port number to the respective I/O port.
89 comment "Serial port base address = 0x3f8"
90 depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 0
91 comment "Serial port base address = 0x2f8"
92 depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 1
93 comment "Serial port base address = 0x3e8"
94 depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 2
95 comment "Serial port base address = 0x2e8"
96 depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 3
100 config UART_OVERRIDE_BAUDRATE
103 Set to "y" when the platform overrides the baudrate by providing
104 a get_uart_baudrate routine.
106 if !UART_OVERRIDE_BAUDRATE
110 default CONSOLE_SERIAL_115200
112 config CONSOLE_SERIAL_921600
115 Set serial port Baud rate to 921600.
116 config CONSOLE_SERIAL_460800
119 Set serial port Baud rate to 460800.
120 config CONSOLE_SERIAL_230400
123 Set serial port Baud rate to 230400.
124 config CONSOLE_SERIAL_115200
127 Set serial port Baud rate to 115200.
128 config CONSOLE_SERIAL_57600
131 Set serial port Baud rate to 57600.
132 config CONSOLE_SERIAL_38400
135 Set serial port Baud rate to 38400.
136 config CONSOLE_SERIAL_19200
139 Set serial port Baud rate to 19200.
140 config CONSOLE_SERIAL_9600
143 Set serial port Baud rate to 9600.
147 #FIXME(dhendrix): Change name to SERIAL_BAUD? (Stefan sayz: yes!!)
150 default 921600 if CONSOLE_SERIAL_921600
151 default 460800 if CONSOLE_SERIAL_460800
152 default 230400 if CONSOLE_SERIAL_230400
153 default 115200 if CONSOLE_SERIAL_115200
154 default 57600 if CONSOLE_SERIAL_57600
155 default 38400 if CONSOLE_SERIAL_38400
156 default 19200 if CONSOLE_SERIAL_19200
157 default 9600 if CONSOLE_SERIAL_9600
159 Map the Baud rates to an integer.
163 # TODO: Allow user-friendly selection of settings other than 8n1.
167 depends on DRIVERS_UART_8250IO || DRIVERS_UART_8250MEM
169 endif # CONSOLE_SERIAL
172 bool "spkmodem (console on speaker) console output"
176 Send coreboot debug output through speaker
179 bool "USB dongle console output"
183 Send coreboot debug output to USB.
185 Configuration for USB hardware is under menu Generic Drivers.
188 # TODO: Improve description.
190 bool "Network console over NE2000 compatible Ethernet adapter"
194 Send coreboot debug output to a Ethernet console, it works
195 same way as Linux netconsole, packets are received to UDP
196 port 6666 on IP/MAC specified with options below.
197 Use following netcat command: nc -u -l -p 6666
199 config CONSOLE_NE2K_DST_MAC
200 depends on CONSOLE_NE2K
201 string "Destination MAC address of remote system"
202 default "00:13:d4:76:a2:ac"
204 Type in either MAC address of logging system or MAC address
207 config CONSOLE_NE2K_DST_IP
208 depends on CONSOLE_NE2K
209 string "Destination IP of logging system"
212 This is IP address of the system running for example
213 netcat command to dump the packets.
215 config CONSOLE_NE2K_SRC_IP
216 depends on CONSOLE_NE2K
217 string "IP address of coreboot system"
220 This is the IP of the coreboot system
222 config CONSOLE_NE2K_IO_PORT
223 depends on CONSOLE_NE2K
224 hex "NE2000 adapter fixed IO port address"
227 This is the IO port address for the IO port
228 on the card, please select some non-conflicting region,
229 32 bytes of IO spaces will be used (and align on 32 bytes
230 boundary, qemu needs broader align)
233 bool "Send console output to a CBMEM buffer"
236 Enable this to save the console output in a CBMEM buffer. This would
237 allow to see coreboot console output from Linux space.
241 config CONSOLE_CBMEM_BUFFER_SIZE
242 hex "Room allocated for console output in CBMEM"
245 Space allocated for console output storage in CBMEM. The default
246 value (128K or 0x20000 bytes) is large enough to accommodate
247 even the BIOS_SPEW level.
249 config CONSOLE_CBMEM_DUMP_TO_UART
250 depends on !CONSOLE_SERIAL
251 bool "Dump CBMEM console on resets"
254 Enable this to have CBMEM console buffer contents dumped on the
255 serial output in case serial console is disabled and the device
256 resets itself while trying to boot the payload.
258 config CONSOLE_CBMEM_PRINT_PRE_BOOTBLOCK_CONTENTS
261 Pre-bootblock stages (i.e., VBOOT_STARTS_BEFORE_BOOTBLOCK) might not
262 have the ability to log to the UART, so their console messages are
263 inaccessible until the boot processes gets into the payload or OS.
264 This feature will dump the pre-bootblock CBMEM console immediately
265 after the bootblock console is initialized.
268 config CONSOLE_SPI_FLASH
269 bool "SPI Flash console output"
271 depends on BOOT_DEVICE_SPI_FLASH
272 select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if !COMMON_CBFS_SPI_WRAPPER
274 Send coreboot debug output to the SPI Flash in the FMAP CONSOLE area
276 This option can cause premature wear on the SPI flash and should not
277 be used as a normal means of debugging. It is only to be enabled and
278 used when porting a new motherboard which has no other console
279 available (no UART, no POST, no cbmem access(non bootable)). Since
280 a non bootable machine will require the use of an external SPI Flash
281 programmer, the developer can grab the console log at the same time.
283 The flash console will not be erased on reboot, so once it is full,
284 the flashconsole driver will stop writing to it. This is to avoid
285 wear on the flash, and to avoid erasing sectors (which may freeze
286 the SPI controller on skylake).
288 The 'CONSOLE' area can be extracted from the FMAP with :
289 cbfstool rom.bin read -r CONSOLE -f console.log
291 config CONSOLE_SPI_FLASH_BUFFER_SIZE
292 hex "Room allocated for console output in FMAP"
294 depends on CONSOLE_SPI_FLASH
296 Space allocated for console output storage in FMAP. The default
297 value (128K or 0x20000 bytes) is large enough to accommodate
298 even the BIOS_SPEW level.
300 config CONSOLE_I2C_SMBUS
301 bool "SMBus console output"
302 depends on SOUTHBRIDGE_INTEL_COMMON_SMBUS
304 Send coreboot debug output to the SMBus.
305 The output can be read with an I2C slave device connected
306 the SMBus. Please refer to the technotes section of the
307 coreboot documentation for more details.
310 comment "Set logging device address and data register address"
312 config CONSOLE_I2C_SMBUS_SLAVE_ADDRESS
313 hex "I2C slave address of the logging device"
314 default 0x48 if SC16IS7XX_INIT
316 I2C address of the device which logs the data.
318 config CONSOLE_I2C_SMBUS_SLAVE_DATA_REGISTER
319 hex "Data register address of the I2C logging device"
320 default 0x00 if SC16IS7XX_INIT
322 This an 8-bit data register.
324 config SC16IS7XX_INIT
325 bool "Initialize SC16IS7XX I2C to UART converter chip"
327 SC16IS7XX is a slave I2C to UART converter chip. Enabling
328 this option will initialize the chip.
330 The default I2C slave address value 0x48 is the address of
331 SC16IS7XX I2C to UART converter chip when the A1 and A0 pins
334 The default data register address value 0x00 is the data
335 register address of SC16IS7XX I2C to UART converter chip.
337 endif # CONSOLE_I2C_SMBUS
339 config CONSOLE_QEMU_DEBUGCON
340 bool "QEMU debug console output"
341 depends on CPU_QEMU_X86
344 Send coreboot debug output to QEMU's isa-debugcon device:
347 -chardev file,id=debugcon,path=/dir/file.log \
348 -device isa-debugcon,iobase=0x402,chardev=debugcon
350 config CONSOLE_QEMU_DEBUGCON_PORT
351 hex "QEMU debug console port"
352 depends on CONSOLE_QEMU_DEBUGCON
355 config EM100PRO_SPI_CONSOLE
356 bool "EM100Pro SPI debug console output"
357 depends on HAVE_EM100PRO_SPI_CONSOLE_SUPPORT && !DEBUG_SPI_FLASH
359 Enable support for the debug console on the Dediprog EM100Pro.
360 This is currently working only in ramstage due to how the spi
363 config CONSOLE_SYSTEM76_EC
364 bool "System76 EC console output"
366 depends on EC_SYSTEM76_EC
368 Send coreboot debug output to a System76 embedded controller.
370 config CONSOLE_AMD_SIMNOW
371 bool "AMD SimNow console output"
373 depends on SOC_AMD_COMMON && !POST_IO
376 Send coreboot debug output to IO ports for SimNow
378 config CONSOLE_OVERRIDE_LOGLEVEL
381 Set to "y" when the platform overrides the loglevel by providing
382 a get_console_loglevel routine.
384 if !CONSOLE_OVERRIDE_LOGLEVEL
387 prompt "Default console log level"
388 default DEFAULT_CONSOLE_LOGLEVEL_8 if CHROMEOS
389 default DEFAULT_CONSOLE_LOGLEVEL_7
391 config DEFAULT_CONSOLE_LOGLEVEL_8
394 Way too many details.
395 config DEFAULT_CONSOLE_LOGLEVEL_7
398 Debug-level messages.
399 config DEFAULT_CONSOLE_LOGLEVEL_6
402 Informational messages.
403 config DEFAULT_CONSOLE_LOGLEVEL_5
406 Normal but significant conditions.
407 config DEFAULT_CONSOLE_LOGLEVEL_4
411 config DEFAULT_CONSOLE_LOGLEVEL_3
415 config DEFAULT_CONSOLE_LOGLEVEL_2
419 config DEFAULT_CONSOLE_LOGLEVEL_1
422 Action must be taken immediately.
423 config DEFAULT_CONSOLE_LOGLEVEL_0
430 config DEFAULT_CONSOLE_LOGLEVEL
432 default 0 if DEFAULT_CONSOLE_LOGLEVEL_0
433 default 1 if DEFAULT_CONSOLE_LOGLEVEL_1
434 default 2 if DEFAULT_CONSOLE_LOGLEVEL_2
435 default 3 if DEFAULT_CONSOLE_LOGLEVEL_3
436 default 4 if DEFAULT_CONSOLE_LOGLEVEL_4
437 default 5 if DEFAULT_CONSOLE_LOGLEVEL_5
438 default 6 if DEFAULT_CONSOLE_LOGLEVEL_6
439 default 7 if DEFAULT_CONSOLE_LOGLEVEL_7
440 default 8 if DEFAULT_CONSOLE_LOGLEVEL_8
442 Map the log level config names to an integer.
446 config CONSOLE_USE_LOGLEVEL_PREFIX
447 bool "Use loglevel prefix to indicate line loglevel"
450 When enabled, if the code contains a:
451 `printk(BIOS_DEBUG, "This is a debug message!\n")`,
453 `[DEBUG] This is a debug message!`
455 config CONSOLE_USE_ANSI_ESCAPES
456 bool "Use ANSI escape sequences for console highlighting"
457 default y if !CONSOLE_AMD_SIMNOW
459 If enabled, certain consoles (e.g. UART) that are meant to be read on
460 a terminal will use ANSI escape sequences (like `ESC [1m`) to
461 highlight lines based on their log level. Disable this if your
462 terminal does not support ANSI escape sequences.
465 bool "Don't show any POST codes"
469 bool "Store post codes in CMOS for debugging"
470 depends on !NO_POST && PC80_SYSTEM
473 If enabled, coreboot will store post codes in CMOS and switch between
474 two offsets on each boot so the last post code in the previous boot
475 can be retrieved. This uses 3 bytes of CMOS.
477 config CMOS_POST_OFFSET
478 hex "Offset into CMOS to store POST codes"
482 If CMOS_POST is enabled then an offset into CMOS must be provided.
483 If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value
484 defined in the mainboard option table.
487 bool "Show POST codes on the debug console"
491 If enabled, coreboot will additionally print POST codes (which are
492 usually displayed using a so-called "POST card" ISA/PCI/PCI-E
493 device) on the debug console.
496 bool "Send POST codes to an external device"
501 prompt "Device to send POST codes to"
502 depends on POST_DEVICE
503 default POST_DEVICE_LPC if DEFAULT_POST_ON_LPC
504 default POST_DEVICE_NONE
506 config POST_DEVICE_NONE
508 config POST_DEVICE_LPC
511 config POST_DEVICE_PCI_PCIE
516 config DEFAULT_POST_ON_LPC
521 bool "Send POST codes to an IO port"
522 depends on PC80_SYSTEM && !NO_POST
525 If enabled, POST codes will be written to an IO port.
529 hex "IO port for POST codes"
532 POST codes on x86 are typically written to the LPC bus on port
533 0x80. However, it may be desirable to change the port number
534 depending on the presence of coprocessors/microcontrollers or if the
535 platform does not support IO in the conventional x86 manner.
537 config NO_EARLY_BOOTBLOCK_POSTCODES
540 Some chipsets require that the routing for the port 80h POST
541 code be configured before any POST codes are sent out. If this is
542 not done, the system can hang on the first POST code. This
543 initialization can be done in the boot block, but there are a couple
544 of POST codes that go out before the chipset's C bootblock
545 initialization can happen. This option suppresses all postcodes in
546 the early assembly code.
548 config HWBASE_DEBUG_CB
550 default y if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
553 config HWBASE_DEBUG_NULL
555 depends on !HWBASE_DEBUG_CB