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 | |
Gabe Black | fbb11cf | 2013-06-06 00:21:20 -0700 | [diff] [blame] | 3 | config BOOTBLOCK_CONSOLE |
| 4 | bool "Enable early (bootblock) console output." |
Stefan Reinauer | d2f45c6 | 2013-06-19 13:42:00 -0700 | [diff] [blame] | 5 | depends on ARCH_ARMV7 |
| 6 | default n |
Gabe Black | fbb11cf | 2013-06-06 00:21:20 -0700 | [diff] [blame] | 7 | help |
| 8 | Use console during the bootblock if supported |
| 9 | |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 10 | config EARLY_CONSOLE |
| 11 | bool "Enable early (pre-RAM) console output." |
Kyösti Mälkki | da940c5 | 2013-07-31 20:52:04 +0300 | [diff] [blame^] | 12 | default y if CACHE_AS_RAM |
Stefan Reinauer | d2f45c6 | 2013-06-19 13:42:00 -0700 | [diff] [blame] | 13 | default n |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 14 | help |
| 15 | Use console during early (pre-RAM) boot stages |
| 16 | |
| 17 | config CONSOLE_SERIAL |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 18 | bool "Serial port console output" |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 19 | default y |
| 20 | help |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 21 | Send coreboot debug output to a serial port (should be one or more of |
| 22 | CONSOLE_SERIAL8250, CONSOLE_SERIAL8250MEM, CONSOLE_SERIAL_UART) |
David Hendricks | 6a503b6 | 2012-12-31 17:28:43 -0800 | [diff] [blame] | 23 | |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 24 | config CONSOLE_SERIAL8250 |
| 25 | bool "Serial port console output (I/O mapped, 8250-compatible)" |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 26 | depends on CONSOLE_SERIAL |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 27 | depends on HAVE_UART_IO_MAPPED |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 28 | default y |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 29 | help |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 30 | Send coreboot debug output to an I/O mapped serial port console. |
| 31 | |
| 32 | config CONSOLE_SERIAL8250MEM |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 33 | bool "Serial port console output (memory mapped, 8250-compatible)" |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 34 | depends on CONSOLE_SERIAL |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 35 | depends on HAVE_UART_MEMORY_MAPPED |
| 36 | help |
| 37 | Send coreboot debug output to a memory mapped serial port console. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 38 | |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 39 | config CONSOLE_SERIAL_UART |
| 40 | bool "Serial port console output (device-specific UART)" |
| 41 | depends on CONSOLE_SERIAL |
| 42 | depends on HAVE_UART_SPECIAL |
| 43 | default y |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 44 | help |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 45 | Send coreboot debug output to a device-specific serial port console. |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 46 | |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 47 | choice |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 48 | prompt "Serial port for 8250" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 49 | default CONSOLE_SERIAL_COM1 |
Myles Watson | 6bb3bdf | 2009-09-25 17:24:08 +0000 | [diff] [blame] | 50 | depends on CONSOLE_SERIAL8250 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 51 | |
| 52 | config CONSOLE_SERIAL_COM1 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 53 | bool "COM1/ttyS0, I/O port 0x3f8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 54 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 55 | Serial console on COM1/ttyS0 at I/O port 0x3f8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 56 | config CONSOLE_SERIAL_COM2 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 57 | bool "COM2/ttyS1, I/O port 0x2f8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 58 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 59 | Serial console on COM2/ttyS1 at I/O port 0x2f8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 60 | config CONSOLE_SERIAL_COM3 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 61 | bool "COM3/ttyS2, I/O port 0x3e8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 62 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 63 | Serial console on COM3/ttyS2 at I/O port 0x3e8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 64 | config CONSOLE_SERIAL_COM4 |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 65 | bool "COM4/ttyS3, I/O port 0x2e8" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 66 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 67 | Serial console on COM4/ttyS3 at I/O port 0x2e8. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 68 | |
| 69 | endchoice |
| 70 | |
| 71 | config TTYS0_BASE |
| 72 | hex |
| 73 | depends on CONSOLE_SERIAL8250 |
| 74 | default 0x3f8 if CONSOLE_SERIAL_COM1 |
| 75 | default 0x2f8 if CONSOLE_SERIAL_COM2 |
| 76 | default 0x3e8 if CONSOLE_SERIAL_COM3 |
| 77 | default 0x2e8 if CONSOLE_SERIAL_COM4 |
| 78 | help |
| 79 | Map the COM port names to the respective I/O port. |
| 80 | |
| 81 | choice |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 82 | prompt "Baud rate" |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 83 | default CONSOLE_SERIAL_115200 |
Hung-Te Lin | ad173ea | 2013-02-06 21:24:12 +0800 | [diff] [blame] | 84 | depends on CONSOLE_SERIAL |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 85 | |
| 86 | config CONSOLE_SERIAL_115200 |
| 87 | bool "115200" |
| 88 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 89 | Set serial port Baud rate to 115200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 90 | config CONSOLE_SERIAL_57600 |
| 91 | bool "57600" |
| 92 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 93 | Set serial port Baud rate to 57600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 94 | config CONSOLE_SERIAL_38400 |
| 95 | bool "38400" |
| 96 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 97 | Set serial port Baud rate to 38400. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 98 | config CONSOLE_SERIAL_19200 |
| 99 | bool "19200" |
| 100 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 101 | Set serial port Baud rate to 19200. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 102 | config CONSOLE_SERIAL_9600 |
| 103 | bool "9600" |
| 104 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 105 | Set serial port Baud rate to 9600. |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 106 | |
| 107 | endchoice |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 108 | |
Stefan Reinauer | 509f772 | 2012-12-07 17:31:37 -0800 | [diff] [blame] | 109 | #FIXME(dhendrix): Change name to SERIAL_BAUD? (Stefan sayz: yes!!) |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 110 | config TTYS0_BAUD |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 111 | int |
| 112 | default 115200 if CONSOLE_SERIAL_115200 |
| 113 | default 57600 if CONSOLE_SERIAL_57600 |
| 114 | default 38400 if CONSOLE_SERIAL_38400 |
| 115 | default 19200 if CONSOLE_SERIAL_19200 |
| 116 | default 9600 if CONSOLE_SERIAL_9600 |
| 117 | help |
Uwe Hermann | a081a3b | 2009-10-26 23:52:34 +0000 | [diff] [blame] | 118 | Map the Baud rates to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 119 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 120 | # TODO: Allow user-friendly selection of settings other than 8n1. |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 121 | config TTYS0_LCS |
| 122 | int |
| 123 | default 3 |
Stefan Reinauer | 4885daa | 2011-04-26 23:47:04 +0000 | [diff] [blame] | 124 | depends on CONSOLE_SERIAL8250 || CONSOLE_SERIAL8250MEM |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 125 | |
Vladimir Serbinenko | 45988da | 2013-03-30 02:02:13 +0100 | [diff] [blame] | 126 | config SPKMODEM |
| 127 | bool "spkmodem (console on speaker) console output" |
| 128 | default n |
| 129 | help |
| 130 | Send coreboot debug output through speaker |
| 131 | |
Uwe Hermann | 65e6034 | 2010-09-26 07:35:55 +0000 | [diff] [blame] | 132 | # Use "select HAVE_USBDEBUG" on southbridges which have Debug Port code. |
| 133 | config HAVE_USBDEBUG |
| 134 | def_bool n |
| 135 | |
Stefan Reinauer | 7e00a44 | 2010-05-25 17:09:05 +0000 | [diff] [blame] | 136 | config USBDEBUG |
Uwe Hermann | 02260bc | 2010-09-26 10:34:36 +0000 | [diff] [blame] | 137 | def_bool n |
| 138 | |
| 139 | config USBDEBUG |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 140 | bool "USB 2.0 EHCI debug dongle support" |
| 141 | default n |
Uwe Hermann | 65e6034 | 2010-09-26 07:35:55 +0000 | [diff] [blame] | 142 | depends on HAVE_USBDEBUG |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 143 | help |
| 144 | This option allows you to use a so-called USB EHCI Debug device |
Uwe Hermann | 65e6034 | 2010-09-26 07:35:55 +0000 | [diff] [blame] | 145 | (such as the Ajays NET20DC, AMIDebug RX, or a system using the |
| 146 | Linux "EHCI Debug Device gadget" driver found in recent kernel) |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 147 | to retrieve the coreboot debug messages (instead, or in addition |
| 148 | to, a serial port). |
| 149 | |
| 150 | This feature is NOT supported on all chipsets in coreboot! |
| 151 | |
| 152 | It also requires a USB2 controller which supports the EHCI |
Uwe Hermann | 65e6034 | 2010-09-26 07:35:55 +0000 | [diff] [blame] | 153 | Debug Port capability. |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 154 | |
Uwe Hermann | 65e6034 | 2010-09-26 07:35:55 +0000 | [diff] [blame] | 155 | See http://www.coreboot.org/EHCI_Debug_Port for an up-to-date list |
| 156 | of supported controllers. |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 157 | |
Uwe Hermann | 65e6034 | 2010-09-26 07:35:55 +0000 | [diff] [blame] | 158 | If unsure, say N. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 159 | |
Uwe Hermann | fa7efe9 | 2010-10-02 20:33:56 +0000 | [diff] [blame] | 160 | # Note: This option doesn't make sense on Intel ICH / AMD SB600 southbridges |
| 161 | # as those hardcode the physical USB port to be used as Debug Port to 1. |
| 162 | # It cannot be changed by coreboot. |
Uwe Hermann | 7ac4c26 | 2010-09-27 18:03:18 +0000 | [diff] [blame] | 163 | config USBDEBUG_DEFAULT_PORT |
| 164 | int "Default USB port to use as Debug Port" |
| 165 | default 1 |
Uwe Hermann | fa7efe9 | 2010-10-02 20:33:56 +0000 | [diff] [blame] | 166 | depends on USBDEBUG && !SOUTHBRIDGE_INTEL_I82801GX && !SOUTHBRIDGE_AMD_SB600 |
Uwe Hermann | 7ac4c26 | 2010-09-27 18:03:18 +0000 | [diff] [blame] | 167 | help |
| 168 | This option selects which physical USB port coreboot will try to |
| 169 | use as EHCI Debug Port first (valid values are: 1-15). |
| 170 | |
| 171 | If coreboot doesn't detect an EHCI Debug Port dongle on this port, |
| 172 | it will try all the other ports one after the other. This will take |
| 173 | a few seconds of time though, and thus slow down the booting process. |
| 174 | |
| 175 | Hence, if you select the correct port here, you can speed up |
| 176 | your boot time. Which USB port number (1-15) refers to which |
| 177 | actual port on your mainboard (potentially also USB pin headers |
| 178 | on your mainboard) is highly board-specific, and you'll likely |
| 179 | have to find out by trial-and-error. |
| 180 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 181 | # TODO: Deps? |
| 182 | # TODO: Improve description. |
Stefan Reinauer | abc0c85 | 2010-11-22 08:09:50 +0000 | [diff] [blame] | 183 | config ONBOARD_VGA_IS_PRIMARY |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 184 | bool "Use onboard VGA as primary video device" |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 185 | default n |
| 186 | help |
| 187 | If not selected, the last adapter found will be used. |
| 188 | |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 189 | config CONSOLE_NE2K |
| 190 | bool "Network console over NE2000 compatible Ethernet adapter" |
| 191 | default n |
| 192 | help |
| 193 | Send coreboot debug output to a Ethernet console, it works |
| 194 | same way as Linux netconsole, packets are received to UDP |
| 195 | port 6666 on IP/MAC specified with options bellow. |
| 196 | Use following netcat command: nc -u -l -p 6666 |
| 197 | |
| 198 | config CONSOLE_NE2K_DST_MAC |
| 199 | depends on CONSOLE_NE2K |
| 200 | string "Destination MAC address of remote system" |
| 201 | default "00:13:d4:76:a2:ac" |
| 202 | help |
| 203 | Type in either MAC address of logging system or MAC address |
| 204 | of the router. |
| 205 | |
| 206 | config CONSOLE_NE2K_DST_IP |
| 207 | depends on CONSOLE_NE2K |
| 208 | string "Destination IP of logging system" |
| 209 | default "10.0.1.27" |
| 210 | help |
| 211 | This is IP adress of the system running for example |
| 212 | netcat command to dump the packets. |
| 213 | |
| 214 | config CONSOLE_NE2K_SRC_IP |
| 215 | depends on CONSOLE_NE2K |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 216 | string "IP address of coreboot system" |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 217 | default "10.0.1.253" |
| 218 | help |
Stefan Reinauer | d6b4f1c | 2010-09-23 18:29:40 +0000 | [diff] [blame] | 219 | This is the IP of the coreboot system |
Rudolf Marek | 4aa93cc | 2010-07-16 20:02:09 +0000 | [diff] [blame] | 220 | |
| 221 | config CONSOLE_NE2K_IO_PORT |
| 222 | depends on CONSOLE_NE2K |
| 223 | hex "NE2000 adapter fixed IO port address" |
| 224 | default 0xe00 |
| 225 | help |
| 226 | This is the IO port address for the IO port |
| 227 | on the card, please select some non-conflicting region, |
| 228 | 32 bytes of IO spaces will be used (and align on 32 bytes |
| 229 | boundary, qemu needs broader align) |
| 230 | |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 231 | config CONSOLE_CBMEM |
Aaron Durbin | c15551a | 2013-03-23 00:00:54 -0500 | [diff] [blame] | 232 | depends on (EARLY_CBMEM_INIT || DYNAMIC_CBMEM) |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 233 | bool "Send console output to a CBMEM buffer" |
| 234 | default n |
| 235 | help |
| 236 | Enable this to save the console output in a CBMEM buffer. This would |
| 237 | allow to see coreboot console output from Linux space. |
| 238 | |
| 239 | config CONSOLE_CBMEM_BUFFER_SIZE |
| 240 | depends on CONSOLE_CBMEM |
| 241 | hex "Room allocated for console output in CBMEM" |
Stefan Reinauer | 1b632af | 2011-10-04 16:21:17 -0700 | [diff] [blame] | 242 | default 0x10000 |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 243 | help |
| 244 | Space allocated for console output storage in CBMEM. The default |
Stefan Reinauer | 1b632af | 2011-10-04 16:21:17 -0700 | [diff] [blame] | 245 | value (64K or 0x10000 bytes) is large enough to accommodate |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 246 | even the BIOS_SPEW level. |
| 247 | |
| 248 | config CONSOLE_CAR_BUFFER_SIZE |
| 249 | depends on CONSOLE_CBMEM |
Stefan Reinauer | 1b632af | 2011-10-04 16:21:17 -0700 | [diff] [blame] | 250 | hex "Room allocated for console output in Cache as RAM" |
Vadim Bendebury | c34b463 | 2011-09-28 13:51:30 -0700 | [diff] [blame] | 251 | default 0xc00 |
| 252 | help |
| 253 | Console is used before RAM is initialized. This is the room reserved |
| 254 | in the DCACHE based RAM to keep console output before it can be |
| 255 | saved in a CBMEM buffer. 3K bytes should be enough even for the |
| 256 | BIOS_SPEW level. |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 257 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 258 | config CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 259 | bool "QEMU debug console output" |
| 260 | depends on BOARD_EMULATION_QEMU_X86 |
| 261 | default y |
| 262 | help |
| 263 | Send coreboot debug output to QEMU's isa-debugcon device: |
| 264 | |
| 265 | qemu-system-x86_64 \ |
| 266 | -chardev file,id=debugcon,path=/dir/file.log \ |
| 267 | -device isa-debugcon,iobase=0x402,chardev=debugcon |
| 268 | |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 269 | config CONSOLE_QEMU_DEBUGCON_PORT |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 270 | hex "QEMU debug console port" |
Gerd Hoffmann | d7c6e44 | 2013-05-30 10:32:31 +0200 | [diff] [blame] | 271 | depends on CONSOLE_QEMU_DEBUGCON |
Gerd Hoffmann | 038aa29 | 2013-05-29 13:06:22 +0200 | [diff] [blame] | 272 | default 0x402 |
| 273 | |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 274 | choice |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 275 | prompt "Default console log level" |
| 276 | default DEFAULT_CONSOLE_LOGLEVEL_8 |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 277 | |
| 278 | config DEFAULT_CONSOLE_LOGLEVEL_8 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 279 | bool "8: SPEW" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 280 | help |
| 281 | Way too many details. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 282 | config DEFAULT_CONSOLE_LOGLEVEL_7 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 283 | bool "7: DEBUG" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 284 | help |
| 285 | Debug-level messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 286 | config DEFAULT_CONSOLE_LOGLEVEL_6 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 287 | bool "6: INFO" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 288 | help |
| 289 | Informational messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 290 | config DEFAULT_CONSOLE_LOGLEVEL_5 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 291 | bool "5: NOTICE" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 292 | help |
| 293 | Normal but significant conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 294 | config DEFAULT_CONSOLE_LOGLEVEL_4 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 295 | bool "4: WARNING" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 296 | help |
| 297 | Warning conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 298 | config DEFAULT_CONSOLE_LOGLEVEL_3 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 299 | bool "3: ERR" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 300 | help |
| 301 | Error conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 302 | config DEFAULT_CONSOLE_LOGLEVEL_2 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 303 | bool "2: CRIT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 304 | help |
| 305 | Critical conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 306 | config DEFAULT_CONSOLE_LOGLEVEL_1 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 307 | bool "1: ALERT" |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 308 | help |
| 309 | Action must be taken immediately. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 310 | config DEFAULT_CONSOLE_LOGLEVEL_0 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 311 | bool "0: EMERG" |
| 312 | help |
| 313 | System is unusable. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 314 | |
| 315 | endchoice |
| 316 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 317 | config DEFAULT_CONSOLE_LOGLEVEL |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 318 | int |
| 319 | default 0 if DEFAULT_CONSOLE_LOGLEVEL_0 |
| 320 | default 1 if DEFAULT_CONSOLE_LOGLEVEL_1 |
| 321 | default 2 if DEFAULT_CONSOLE_LOGLEVEL_2 |
| 322 | default 3 if DEFAULT_CONSOLE_LOGLEVEL_3 |
| 323 | default 4 if DEFAULT_CONSOLE_LOGLEVEL_4 |
| 324 | default 5 if DEFAULT_CONSOLE_LOGLEVEL_5 |
| 325 | default 6 if DEFAULT_CONSOLE_LOGLEVEL_6 |
| 326 | default 7 if DEFAULT_CONSOLE_LOGLEVEL_7 |
| 327 | default 8 if DEFAULT_CONSOLE_LOGLEVEL_8 |
| 328 | help |
| 329 | Map the log level config names to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 330 | |
Myles Watson | d73c1b5 | 2009-10-26 15:14:07 +0000 | [diff] [blame] | 331 | config CONSOLE_LOGBUF |
| 332 | bool |
| 333 | default n |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 334 | |
| 335 | config NO_POST |
| 336 | bool "Don't show any POST codes" |
| 337 | default n |
| 338 | |
Christoph Grenz | 5cfd583 | 2011-09-18 22:54:51 +0200 | [diff] [blame] | 339 | |
Stefan Reinauer | 582d369 | 2011-01-28 07:47:35 +0000 | [diff] [blame] | 340 | config CONSOLE_POST |
| 341 | bool "Show POST codes on the debug console" |
| 342 | depends on !NO_POST |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 343 | default n |
| 344 | help |
| 345 | If enabled, coreboot will additionally print POST codes (which are |
| 346 | usually displayed using a so-called "POST card" ISA/PCI/PCI-E |
Stefan Reinauer | 582d369 | 2011-01-28 07:47:35 +0000 | [diff] [blame] | 347 | device) on the debug console. |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 348 | |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 349 | config CMOS_POST |
| 350 | bool "Store post codes in CMOS for debugging" |
Stefan Reinauer | c2d5a16 | 2012-12-06 14:25:27 -0800 | [diff] [blame] | 351 | depends on !NO_POST && PC80_SYSTEM |
Duncan Laurie | b6e97b1 | 2012-09-09 19:09:56 -0700 | [diff] [blame] | 352 | default n |
| 353 | help |
| 354 | If enabled, coreboot will store post codes in CMOS and switch between |
| 355 | two offsets on each boot so the last post code in the previous boot |
| 356 | can be retrieved. This uses 3 bytes of CMOS. |
| 357 | |
| 358 | config CMOS_POST_OFFSET |
| 359 | hex "Offset into CMOS to store POST codes" |
| 360 | depends on CMOS_POST |
| 361 | default 0 |
| 362 | help |
| 363 | If CMOS_POST is enabled then an offset into CMOS must be provided. |
| 364 | If CONFIG_HAVE_OPTION_TABLE is enabled then it will use the value |
| 365 | defined in the mainboard option table. |
| 366 | |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 367 | config IO_POST |
| 368 | bool "Send POST codes to an IO port" |
Stefan Reinauer | c2d5a16 | 2012-12-06 14:25:27 -0800 | [diff] [blame] | 369 | depends on PC80_SYSTEM |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 370 | default y |
| 371 | help |
| 372 | If enabled, POST codes will be written to an IO port. |
Stefan Reinauer | c719f1a | 2010-03-30 09:57:28 +0000 | [diff] [blame] | 373 | |
David Hendricks | 6b908d0 | 2012-11-05 12:34:09 -0800 | [diff] [blame] | 374 | config IO_POST_PORT |
| 375 | depends on IO_POST |
| 376 | hex "IO port for POST codes" |
| 377 | default 0x80 |
| 378 | help |
| 379 | POST codes on x86 are typically written to the LPC bus on port |
| 380 | 0x80. However, it may be desireable to change the port number |
| 381 | depending on the presence of coprocessors/microcontrollers or if the |
| 382 | platform does not support IO in the conventional x86 manner. |
| 383 | |
| 384 | endmenu |