Stefan Reinauer | 1b34226 | 2011-01-05 02:27:53 +0000 | [diff] [blame] | 1 | menu "Console" |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 2 | |
Nico Huber | f86baf3 | 2019-01-15 00:05:46 +0100 | [diff] [blame] | 3 | config NO_BOOTBLOCK_CONSOLE |
| 4 | bool |
| 5 | |
Gabe Black | fbb11cf | 2013-06-06 00:21:20 -0700 | [diff] [blame] | 6 | config BOOTBLOCK_CONSOLE |
| 7 | bool "Enable early (bootblock) console output." |
Arthur Heymans | 494b031 | 2019-11-28 16:22:06 +0100 | [diff] [blame] | 8 | depends on !NO_BOOTBLOCK_CONSOLE |
Nico Huber | 1d748c5 | 2019-01-13 13:14:04 +0100 | [diff] [blame] | 9 | default y |
Gabe Black | fbb11cf | 2013-06-06 00:21:20 -0700 | [diff] [blame] | 10 | help |
| 11 | Use console during the bootblock if supported |
| 12 | |
Lee Leahy | 049b462 | 2016-07-31 11:53:28 -0700 | [diff] [blame] | 13 | config POSTCAR_CONSOLE |
| 14 | bool "Enable console output during postcar." |
| 15 | depends on POSTCAR_STAGE |
Kyösti Mälkki | 9fc12e0 | 2019-08-09 07:09:48 +0300 | [diff] [blame] | 16 | default y |
Lee Leahy | 049b462 | 2016-07-31 11:53:28 -0700 | [diff] [blame] | 17 | help |
| 18 | Use console during the postcar if supported |
| 19 | |
Kyösti Mälkki | 361cd81 | 2013-08-12 23:29:57 +0300 | [diff] [blame] | 20 | config SQUELCH_EARLY_SMP |
| 21 | bool "Squelch AP CPUs from early console." |
| 22 | default y |
Lee Leahy | f2ad50f | 2016-02-08 16:19:56 -0800 | [diff] [blame] | 23 | depends on SMP |
Kyösti Mälkki | 361cd81 | 2013-08-12 23:29:57 +0300 | [diff] [blame] | 24 | help |
| 25 | When selected only the BSP CPU will output to early console. |
| 26 | |
| 27 | Console drivers have unpredictable behaviour if multiple threads |
| 28 | attempt to share the same resources without a spinlock. |
| 29 | |
| 30 | If unsure, say Y. |
| 31 | |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 32 | config CONSOLE_SERIAL |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 33 | bool "Serial port console output" |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 34 | default y |
Nico Huber | 755db95 | 2018-11-11 01:42:17 +0100 | [diff] [blame] | 35 | depends on DRIVERS_UART |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 36 | help |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 37 | Send coreboot debug output to a serial port. |
David Hendricks | 6a503b6 | 2012-12-31 17:28:43 -0800 | [diff] [blame] | 38 | |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 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. |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 42 | |
Nico Huber | da8c12b | 2019-01-11 10:38:02 +0100 | [diff] [blame] | 43 | config FIXED_UART_FOR_CONSOLE |
| 44 | bool |
| 45 | help |
| 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). |
| 49 | |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 50 | if CONSOLE_SERIAL |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 51 | |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 52 | comment "I/O mapped, 8250-compatible" |
| 53 | depends on DRIVERS_UART_8250IO |
| 54 | |
| 55 | comment "memory mapped, 8250-compatible" |
| 56 | depends on DRIVERS_UART_8250MEM |
| 57 | |
| 58 | comment "device-specific UART" |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 59 | depends on HAVE_UART_SPECIAL |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 60 | |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 61 | config UART_FOR_CONSOLE |
Nico Huber | a96e66a | 2018-11-11 02:51:14 +0100 | [diff] [blame] | 62 | int |
| 63 | prompt "Index for UART port to use for console" if !FIXED_UART_FOR_CONSOLE |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 64 | default 0 |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 65 | help |
| 66 | Select an I/O port to use for serial console: |
| 67 | 0 = 0x3f8, 1 = 0x2f8, 2 = 0x3e8, 3 = 0x2e8 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 68 | |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 69 | # FIXME: Early programming in romstage is incorrect as we should |
| 70 | # program different LDN to actually change the physical port. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 71 | config TTYS0_BASE |
| 72 | hex |
Gabe Black | 77ffa0d | 2013-09-30 21:25:49 -0700 | [diff] [blame] | 73 | depends on DRIVERS_UART |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 74 | default 0x3f8 if UART_FOR_CONSOLE = 0 |
| 75 | default 0x2f8 if UART_FOR_CONSOLE = 1 |
| 76 | default 0x3e8 if UART_FOR_CONSOLE = 2 |
| 77 | default 0x2e8 if UART_FOR_CONSOLE = 3 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 78 | help |
Kyösti Mälkki | 70342a7 | 2014-03-14 22:28:29 +0200 | [diff] [blame] | 79 | Map the COM port number to the respective I/O port. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 80 | |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 81 | comment "Serial port base address = 0x3f8" |
Martin Roth | 3c2e287 | 2019-07-11 12:54:12 -0600 | [diff] [blame] | 82 | depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 0 |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 83 | comment "Serial port base address = 0x2f8" |
Martin Roth | 3c2e287 | 2019-07-11 12:54:12 -0600 | [diff] [blame] | 84 | depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 1 |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 85 | comment "Serial port base address = 0x3e8" |
Martin Roth | 3c2e287 | 2019-07-11 12:54:12 -0600 | [diff] [blame] | 86 | depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 2 |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 87 | comment "Serial port base address = 0x2e8" |
Martin Roth | 3c2e287 | 2019-07-11 12:54:12 -0600 | [diff] [blame] | 88 | depends on DRIVERS_UART_8250IO && UART_FOR_CONSOLE = 3 |
Martin Roth | ac76ed9 | 2015-11-19 11:40:43 -0700 | [diff] [blame] | 89 | |
Julien Viard de Galbert | 235daa4 | 2018-02-20 11:45:48 +0100 | [diff] [blame] | 90 | config UART_OVERRIDE_BAUDRATE |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 91 | bool |
Julien Viard de Galbert | 235daa4 | 2018-02-20 11:45:48 +0100 | [diff] [blame] | 92 | help |
| 93 | Set to "y" when the platform overrides the baudrate by providing |
| 94 | a get_uart_baudrate routine. |
| 95 | |
| 96 | if !UART_OVERRIDE_BAUDRATE |
| 97 | |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 98 | choice |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 99 | prompt "Baud rate" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 100 | default CONSOLE_SERIAL_115200 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 101 | |
Lee Leahy | cda71b8 | 2016-02-20 05:39:10 -0800 | [diff] [blame] | 102 | config CONSOLE_SERIAL_921600 |
| 103 | bool "921600" |
| 104 | help |
| 105 | Set serial port Baud rate to 921600. |
| 106 | config CONSOLE_SERIAL_460800 |
| 107 | bool "460800" |
| 108 | help |
| 109 | Set serial port Baud rate to 460800. |
| 110 | config CONSOLE_SERIAL_230400 |
| 111 | bool "230400" |
| 112 | help |
| 113 | Set serial port Baud rate to 230400. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 114 | config CONSOLE_SERIAL_115200 |
| 115 | bool "115200" |
| 116 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 117 | Set serial port Baud rate to 115200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 118 | config CONSOLE_SERIAL_57600 |
| 119 | bool "57600" |
| 120 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 121 | Set serial port Baud rate to 57600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 122 | config CONSOLE_SERIAL_38400 |
| 123 | bool "38400" |
| 124 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 125 | Set serial port Baud rate to 38400. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 126 | config CONSOLE_SERIAL_19200 |
| 127 | bool "19200" |
| 128 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 129 | Set serial port Baud rate to 19200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 130 | config CONSOLE_SERIAL_9600 |
| 131 | bool "9600" |
| 132 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 133 | Set serial port Baud rate to 9600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 134 | |
| 135 | endchoice |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 136 | |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 137 | #FIXME(dhendrix): Change name to SERIAL_BAUD? (Stefan sayz: yes!!) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 138 | config TTYS0_BAUD |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 139 | int |
Lee Leahy | cda71b8 | 2016-02-20 05:39:10 -0800 | [diff] [blame] | 140 | default 921600 if CONSOLE_SERIAL_921600 |
| 141 | default 460800 if CONSOLE_SERIAL_460800 |
| 142 | default 230400 if CONSOLE_SERIAL_230400 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 143 | default 115200 if CONSOLE_SERIAL_115200 |
| 144 | default 57600 if CONSOLE_SERIAL_57600 |
| 145 | default 38400 if CONSOLE_SERIAL_38400 |
| 146 | default 19200 if CONSOLE_SERIAL_19200 |
| 147 | default 9600 if CONSOLE_SERIAL_9600 |
| 148 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 149 | Map the Baud rates to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 150 | |
Julien Viard de Galbert | 235daa4 | 2018-02-20 11:45:48 +0100 | [diff] [blame] | 151 | endif |
| 152 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 153 | # TODO: Allow user-friendly selection of settings other than 8n1. |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 154 | config TTYS0_LCS |
| 155 | int |
| 156 | default 3 |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 157 | depends on DRIVERS_UART_8250IO || DRIVERS_UART_8250MEM |
| 158 | |
| 159 | endif # CONSOLE_SERIAL |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 160 | |
Vladimir Serbinenko | 45988da | 2013-03-30 02:02:13 +0100 | [diff] [blame] | 161 | config SPKMODEM |
| 162 | bool "spkmodem (console on speaker) console output" |
| 163 | default n |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 164 | depends on ARCH_X86 |
Vladimir Serbinenko | 45988da | 2013-03-30 02:02:13 +0100 | [diff] [blame] | 165 | help |
| 166 | Send coreboot debug output through speaker |
| 167 | |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 168 | config CONSOLE_USB |
| 169 | bool "USB dongle console output" |
| 170 | depends on USBDEBUG |
Nico Huber | 06125eb | 2018-10-03 12:02:09 +0200 | [diff] [blame] | 171 | default y |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 172 | help |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 173 | Send coreboot debug output to USB. |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 174 | |
Kyösti Mälkki | ab94bbf | 2014-02-25 12:06:14 +0200 | [diff] [blame] | 175 | Configuration for USB hardware is under menu Generic Drivers. |
Kyösti Mälkki | d2dac0a | 2013-08-23 23:33:16 +0300 | [diff] [blame] | 176 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 177 | # TODO: Deps? |
| 178 | # TODO: Improve description. |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 179 | config CONSOLE_NE2K |
| 180 | bool "Network console over NE2000 compatible Ethernet adapter" |
| 181 | default n |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 182 | depends on PCI |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 183 | help |
| 184 | Send coreboot debug output to a Ethernet console, it works |
| 185 | same way as Linux netconsole, packets are received to UDP |
| 186 | port 6666 on IP/MAC specified with options bellow. |
| 187 | Use following netcat command: nc -u -l -p 6666 |
| 188 | |
| 189 | config CONSOLE_NE2K_DST_MAC |
| 190 | depends on CONSOLE_NE2K |
| 191 | string "Destination MAC address of remote system" |
| 192 | default "00:13:d4:76:a2:ac" |
| 193 | help |
| 194 | Type in either MAC address of logging system or MAC address |
| 195 | of the router. |
| 196 | |
| 197 | config CONSOLE_NE2K_DST_IP |
| 198 | depends on CONSOLE_NE2K |
| 199 | string "Destination IP of logging system" |
| 200 | default "10.0.1.27" |
| 201 | help |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 202 | This is IP address of the system running for example |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 203 | netcat command to dump the packets. |
| 204 | |
| 205 | config CONSOLE_NE2K_SRC_IP |
| 206 | depends on CONSOLE_NE2K |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 207 | string "IP address of coreboot system" |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 208 | default "10.0.1.253" |
| 209 | help |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 210 | This is the IP of the coreboot system |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 211 | |
| 212 | config CONSOLE_NE2K_IO_PORT |
| 213 | depends on CONSOLE_NE2K |
| 214 | hex "NE2000 adapter fixed IO port address" |
| 215 | default 0xe00 |
| 216 | help |
| 217 | This is the IO port address for the IO port |
| 218 | on the card, please select some non-conflicting region, |
| 219 | 32 bytes of IO spaces will be used (and align on 32 bytes |
| 220 | boundary, qemu needs broader align) |
| 221 | |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 222 | config CONSOLE_CBMEM |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 223 | bool "Send console output to a CBMEM buffer" |
Paul Menzel | 60ef456 | 2014-03-08 10:46:52 +0100 | [diff] [blame] | 224 | default y |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 225 | help |
| 226 | Enable this to save the console output in a CBMEM buffer. This would |
| 227 | allow to see coreboot console output from Linux space. |
| 228 | |
Kyösti Mälkki | 8659e40 | 2014-12-21 08:55:47 +0200 | [diff] [blame] | 229 | if CONSOLE_CBMEM |
| 230 | |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 231 | config CONSOLE_CBMEM_BUFFER_SIZE |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 232 | hex "Room allocated for console output in CBMEM" |
Vladimir Serbinenko | eb67a04 | 2014-09-13 20:55:58 +0200 | [diff] [blame] | 233 | default 0x20000 |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 234 | help |
| 235 | Space allocated for console output storage in CBMEM. The default |
Vladimir Serbinenko | eb67a04 | 2014-09-13 20:55:58 +0200 | [diff] [blame] | 236 | value (128K or 0x20000 bytes) is large enough to accommodate |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 237 | even the BIOS_SPEW level. |
| 238 | |
Vadim Bendebury | 6e20e2f | 2015-04-10 18:04:04 -0700 | [diff] [blame] | 239 | config CONSOLE_CBMEM_DUMP_TO_UART |
| 240 | depends on !CONSOLE_SERIAL |
| 241 | bool "Dump CBMEM console on resets" |
| 242 | default n |
| 243 | help |
| 244 | Enable this to have CBMEM console buffer contents dumped on the |
| 245 | serial output in case serial console is disabled and the device |
| 246 | resets itself while trying to boot the payload. |
| 247 | |
Kyösti Mälkki | 8659e40 | 2014-12-21 08:55:47 +0200 | [diff] [blame] | 248 | endif |
| 249 | |
Youness Alaoui | c4b4ff3 | 2017-05-11 10:36:29 -0400 | [diff] [blame] | 250 | config CONSOLE_SPI_FLASH |
| 251 | bool "SPI Flash console output" |
| 252 | default n |
| 253 | select BOOT_DEVICE_SPI_FLASH_RW_NOMMAP_EARLY if !COMMON_CBFS_SPI_WRAPPER |
| 254 | help |
| 255 | Send coreboot debug output to the SPI Flash in the FMAP CONSOLE area |
| 256 | |
| 257 | This option can cause premature wear on the SPI flash and should not |
| 258 | be used as a normal means of debugging. It is only to be enabled and |
| 259 | used when porting a new motherboard which has no other console |
| 260 | available (no UART, no POST, no cbmem access(non bootable)). Since |
| 261 | a non bootable machine will require the use of an external SPI Flash |
| 262 | programmer, the developer can grab the console log at the same time. |
| 263 | |
| 264 | The flash console will not be erased on reboot, so once it is full, |
| 265 | the flashconsole driver will stop writing to it. This is to avoid |
| 266 | wear on the flash, and to avoid erasing sectors (which may freeze |
| 267 | the SPI controller on skylake). |
| 268 | |
| 269 | The 'CONSOLE' area can be extracted from the FMAP with : |
| 270 | cbfstool rom.bin read -r CONSOLE -f console.log |
| 271 | |
| 272 | config CONSOLE_SPI_FLASH_BUFFER_SIZE |
| 273 | hex "Room allocated for console output in FMAP" |
| 274 | default 0x20000 |
| 275 | depends on CONSOLE_SPI_FLASH |
| 276 | help |
| 277 | Space allocated for console output storage in FMAP. The default |
| 278 | value (128K or 0x20000 bytes) is large enough to accommodate |
| 279 | even the BIOS_SPEW level. |
| 280 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 281 | config CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 282 | bool "QEMU debug console output" |
Angel Pons | d615230 | 2020-03-01 14:46:38 +0100 | [diff] [blame] | 283 | depends on CPU_QEMU_X86 |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 284 | default y |
| 285 | help |
| 286 | Send coreboot debug output to QEMU's isa-debugcon device: |
| 287 | |
| 288 | qemu-system-x86_64 \ |
| 289 | -chardev file,id=debugcon,path=/dir/file.log \ |
| 290 | -device isa-debugcon,iobase=0x402,chardev=debugcon |
| 291 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 292 | config CONSOLE_QEMU_DEBUGCON_PORT |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 293 | hex "QEMU debug console port" |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 294 | depends on CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 295 | default 0x402 |
| 296 | |
Martin Roth | 3a54318 | 2015-09-28 15:27:24 -0600 | [diff] [blame] | 297 | config SPI_CONSOLE |
| 298 | bool "SPI debug console output" |
| 299 | depends on HAVE_SPI_CONSOLE_SUPPORT && !DEBUG_SPI_FLASH |
| 300 | help |
| 301 | Enable support for the debug console on the Dediprog EM100Pro. |
| 302 | This is currently working only in ramstage due to how the spi |
| 303 | drivers are written. |
| 304 | |
Julien Viard de Galbert | 4ecd42f | 2018-02-20 15:01:27 +0100 | [diff] [blame] | 305 | config CONSOLE_OVERRIDE_LOGLEVEL |
Patrick Georgi | 0bb8346 | 2019-11-22 20:58:58 +0100 | [diff] [blame] | 306 | bool |
Julien Viard de Galbert | 4ecd42f | 2018-02-20 15:01:27 +0100 | [diff] [blame] | 307 | help |
| 308 | Set to "y" when the platform overrides the loglevel by providing |
| 309 | a get_console_loglevel routine. |
| 310 | |
| 311 | if !CONSOLE_OVERRIDE_LOGLEVEL |
| 312 | |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 313 | choice |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 314 | prompt "Default console log level" |
Julius Werner | e64a585 | 2018-10-15 17:19:58 -0700 | [diff] [blame] | 315 | default DEFAULT_CONSOLE_LOGLEVEL_8 if CHROMEOS |
Nico Huber | 715a502 | 2018-05-04 12:04:00 +0200 | [diff] [blame] | 316 | default DEFAULT_CONSOLE_LOGLEVEL_7 |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 317 | |
| 318 | config DEFAULT_CONSOLE_LOGLEVEL_8 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 319 | bool "8: SPEW" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 320 | help |
| 321 | Way too many details. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 322 | config DEFAULT_CONSOLE_LOGLEVEL_7 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 323 | bool "7: DEBUG" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 324 | help |
| 325 | Debug-level messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 326 | config DEFAULT_CONSOLE_LOGLEVEL_6 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 327 | bool "6: INFO" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 328 | help |
| 329 | Informational messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 330 | config DEFAULT_CONSOLE_LOGLEVEL_5 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 331 | bool "5: NOTICE" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 332 | help |
| 333 | Normal but significant conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 334 | config DEFAULT_CONSOLE_LOGLEVEL_4 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 335 | bool "4: WARNING" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 336 | help |
| 337 | Warning conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 338 | config DEFAULT_CONSOLE_LOGLEVEL_3 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 339 | bool "3: ERR" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 340 | help |
| 341 | Error conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 342 | config DEFAULT_CONSOLE_LOGLEVEL_2 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 343 | bool "2: CRIT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 344 | help |
| 345 | Critical conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 346 | config DEFAULT_CONSOLE_LOGLEVEL_1 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 347 | bool "1: ALERT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 348 | help |
| 349 | Action must be taken immediately. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 350 | config DEFAULT_CONSOLE_LOGLEVEL_0 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 351 | bool "0: EMERG" |
| 352 | help |
| 353 | System is unusable. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 354 | |
| 355 | endchoice |
| 356 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 357 | config DEFAULT_CONSOLE_LOGLEVEL |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 358 | int |
| 359 | default 0 if DEFAULT_CONSOLE_LOGLEVEL_0 |
| 360 | default 1 if DEFAULT_CONSOLE_LOGLEVEL_1 |
| 361 | default 2 if DEFAULT_CONSOLE_LOGLEVEL_2 |
| 362 | default 3 if DEFAULT_CONSOLE_LOGLEVEL_3 |
| 363 | default 4 if DEFAULT_CONSOLE_LOGLEVEL_4 |
| 364 | default 5 if DEFAULT_CONSOLE_LOGLEVEL_5 |
| 365 | default 6 if DEFAULT_CONSOLE_LOGLEVEL_6 |
| 366 | default 7 if DEFAULT_CONSOLE_LOGLEVEL_7 |
| 367 | default 8 if DEFAULT_CONSOLE_LOGLEVEL_8 |
| 368 | help |
| 369 | Map the log level config names to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 370 | |
Julien Viard de Galbert | 4ecd42f | 2018-02-20 15:01:27 +0100 | [diff] [blame] | 371 | endif |
| 372 | |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 373 | config NO_POST |
| 374 | bool "Don't show any POST codes" |
| 375 | default n |
| 376 | |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 377 | config CMOS_POST |
| 378 | bool "Store post codes in CMOS for debugging" |
Stefan Reinauer | c2d5a16 | 2012-12-06 14:25:27 -0800 | [diff] [blame] | 379 | depends on !NO_POST && PC80_SYSTEM |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 380 | default n |
| 381 | help |
| 382 | If enabled, coreboot will store post codes in CMOS and switch between |
| 383 | two offsets on each boot so the last post code in the previous boot |
| 384 | can be retrieved. This uses 3 bytes of CMOS. |
| 385 | |
| 386 | config CMOS_POST_OFFSET |
| 387 | hex "Offset into CMOS to store POST codes" |
| 388 | depends on CMOS_POST |
Martin Roth | 3b87812 | 2016-09-30 14:43:01 -0600 | [diff] [blame] | 389 | default 0x0 |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 390 | help |
| 391 | If CMOS_POST is enabled then an offset into CMOS must be provided. |
| 392 | If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value |
| 393 | defined in the mainboard option table. |
| 394 | |
Daniele Forsi | ad488d2 | 2014-07-30 12:23:35 +0200 | [diff] [blame] | 395 | config CONSOLE_POST |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 396 | bool "Show POST codes on the debug console" |
| 397 | depends on !NO_POST |
| 398 | default n |
| 399 | help |
| 400 | If enabled, coreboot will additionally print POST codes (which are |
| 401 | usually displayed using a so-called "POST card" ISA/PCI/PCI-E |
| 402 | device) on the debug console. |
| 403 | |
| 404 | config POST_DEVICE |
| 405 | bool "Send POST codes to an external device" |
| 406 | depends on !NO_POST |
| 407 | default y |
| 408 | |
| 409 | choice |
| 410 | prompt "Device to send POST codes to" |
| 411 | depends on POST_DEVICE |
Kyösti Mälkki | 657d68b | 2019-12-03 12:36:09 +0200 | [diff] [blame] | 412 | default POST_DEVICE_LPC if DEFAULT_POST_ON_LPC |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 413 | default POST_DEVICE_NONE |
| 414 | |
| 415 | config POST_DEVICE_NONE |
| 416 | bool "None" |
| 417 | config POST_DEVICE_LPC |
| 418 | bool "LPC" |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 419 | depends on PCI |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 420 | config POST_DEVICE_PCI_PCIE |
| 421 | bool "PCI/PCIe" |
Vladimir Serbinenko | d51a089 | 2016-03-04 09:20:20 +0100 | [diff] [blame] | 422 | depends on PCI |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 423 | endchoice |
| 424 | |
Kyösti Mälkki | 657d68b | 2019-12-03 12:36:09 +0200 | [diff] [blame] | 425 | config DEFAULT_POST_ON_LPC |
| 426 | bool |
| 427 | default n |
| 428 | |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 429 | config POST_IO |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 430 | bool "Send POST codes to an IO port" |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 431 | depends on PC80_SYSTEM && !NO_POST |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 432 | default y |
| 433 | help |
| 434 | If enabled, POST codes will be written to an IO port. |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 435 | |
Idwer Vollering | 5809a73 | 2014-03-11 15:36:21 +0000 | [diff] [blame] | 436 | config POST_IO_PORT |
| 437 | depends on POST_IO |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 438 | hex "IO port for POST codes" |
| 439 | default 0x80 |
| 440 | help |
| 441 | POST codes on x86 are typically written to the LPC bus on port |
Daniele Forsi | 53847a2 | 2014-07-22 18:00:56 +0200 | [diff] [blame] | 442 | 0x80. However, it may be desirable to change the port number |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 443 | depending on the presence of coprocessors/microcontrollers or if the |
| 444 | platform does not support IO in the conventional x86 manner. |
| 445 | |
Martin Roth | 1455437 | 2015-11-12 14:02:42 -0700 | [diff] [blame] | 446 | config NO_EARLY_BOOTBLOCK_POSTCODES |
| 447 | def_bool n |
| 448 | help |
| 449 | Some chipsets require that the routing for the port 80h POST |
| 450 | code be configured before any POST codes are sent out. |
| 451 | This can be done in the boot block, but there are a couple of |
| 452 | POST codes that go out before the chipset's bootblock initialization |
| 453 | can happen. This option suppresses those POST codes. |
| 454 | |
Nico Huber | c83239e | 2016-10-05 17:46:49 +0200 | [diff] [blame] | 455 | config HWBASE_DEBUG_CB |
| 456 | bool |
| 457 | default y if DEFAULT_CONSOLE_LOGLEVEL_7 || DEFAULT_CONSOLE_LOGLEVEL_8 |
| 458 | default n |
| 459 | |
| 460 | config HWBASE_DEBUG_NULL |
| 461 | def_bool y |
| 462 | depends on !HWBASE_DEBUG_CB |
| 463 | |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 464 | endmenu |