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_OVERRIDE_LOGLEVEL
373 Set to "y" when the platform overrides the loglevel by providing
374 a get_console_loglevel routine.
376 if !CONSOLE_OVERRIDE_LOGLEVEL
379 prompt "Default console log level"
380 default DEFAULT_CONSOLE_LOGLEVEL_8 if CHROMEOS
381 default DEFAULT_CONSOLE_LOGLEVEL_7
383 config DEFAULT_CONSOLE_LOGLEVEL_8
386 Way too many details.
387 config DEFAULT_CONSOLE_LOGLEVEL_7
390 Debug-level messages.
391 config DEFAULT_CONSOLE_LOGLEVEL_6
394 Informational messages.
395 config DEFAULT_CONSOLE_LOGLEVEL_5
398 Normal but significant conditions.
399 config DEFAULT_CONSOLE_LOGLEVEL_4
403 config DEFAULT_CONSOLE_LOGLEVEL_3
407 config DEFAULT_CONSOLE_LOGLEVEL_2
411 config DEFAULT_CONSOLE_LOGLEVEL_1
414 Action must be taken immediately.
415 config DEFAULT_CONSOLE_LOGLEVEL_0
422 config DEFAULT_CONSOLE_LOGLEVEL
424 default 0 if DEFAULT_CONSOLE_LOGLEVEL_0
425 default 1 if DEFAULT_CONSOLE_LOGLEVEL_1
426 default 2 if DEFAULT_CONSOLE_LOGLEVEL_2
427 default 3 if DEFAULT_CONSOLE_LOGLEVEL_3
428 default 4 if DEFAULT_CONSOLE_LOGLEVEL_4
429 default 5 if DEFAULT_CONSOLE_LOGLEVEL_5
430 default 6 if DEFAULT_CONSOLE_LOGLEVEL_6
431 default 7 if DEFAULT_CONSOLE_LOGLEVEL_7
432 default 8 if DEFAULT_CONSOLE_LOGLEVEL_8
434 Map the log level config names to an integer.
438 config CONSOLE_USE_LOGLEVEL_PREFIX
439 bool "Use loglevel prefix to indicate line loglevel"
442 When enabled, if the code contains a:
443 `printk(BIOS_DEBUG, "This is a debug message!\n")`,
445 `[DEBUG] This is a debug message!`
447 config CONSOLE_USE_ANSI_ESCAPES
448 bool "Use ANSI escape sequences for console highlighting"
451 If enabled, certain consoles (e.g. UART) that are meant to be read on
452 a terminal will use ANSI escape sequences (like `ESC [1m`) to
453 highlight lines based on their log level. Disable this if your
454 terminal does not support ANSI escape sequences.
457 bool "Don't show any POST codes"
461 bool "Store post codes in CMOS for debugging"
462 depends on !NO_POST && PC80_SYSTEM
465 If enabled, coreboot will store post codes in CMOS and switch between
466 two offsets on each boot so the last post code in the previous boot
467 can be retrieved. This uses 3 bytes of CMOS.
469 config CMOS_POST_OFFSET
470 hex "Offset into CMOS to store POST codes"
474 If CMOS_POST is enabled then an offset into CMOS must be provided.
475 If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value
476 defined in the mainboard option table.
479 bool "Show POST codes on the debug console"
483 If enabled, coreboot will additionally print POST codes (which are
484 usually displayed using a so-called "POST card" ISA/PCI/PCI-E
485 device) on the debug console.
488 bool "Send POST codes to an external device"
493 prompt "Device to send POST codes to"
494 depends on POST_DEVICE
495 default POST_DEVICE_LPC if DEFAULT_POST_ON_LPC
496 default POST_DEVICE_NONE
498 config POST_DEVICE_NONE
500 config POST_DEVICE_LPC
503 config POST_DEVICE_PCI_PCIE
508 config DEFAULT_POST_ON_LPC
513 bool "Send POST codes to an IO port"
514 depends on PC80_SYSTEM && !NO_POST
517 If enabled, POST codes will be written to an IO port.
521 hex "IO port for POST codes"
524 POST codes on x86 are typically written to the LPC bus on port
525 0x80. However, it may be desirable to change the port number
526 depending on the presence of coprocessors/microcontrollers or if the
527 platform does not support IO in the conventional x86 manner.
529 config NO_EARLY_BOOTBLOCK_POSTCODES
532 Some chipsets require that the routing for the port 80h POST
533 code be configured before any POST codes are sent out. If this is
534 not done, the system can hang on the first POST code. This
535 initialization can be done in the boot block, but there are a couple
536 of POST codes that go out before the chipset's C bootblock
537 initialization can happen. This option suppresses all postcodes in
538 the early assembly code.
540 config HWBASE_DEBUG_CB
542 default y if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8
545 config HWBASE_DEBUG_NULL
547 depends on !HWBASE_DEBUG_CB