Uwe Hermann | 5ec2c2b | 2009-08-25 00:53:22 +0000 | [diff] [blame] | 1 | menu "Console options" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 2 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 3 | # TODO: Rename to SERIAL_CONSOLE once Kconfig transition is complete. |
Myles Watson | 6bb3bdf | 2009-09-25 17:24:08 +0000 | [diff] [blame] | 4 | config CONSOLE_SERIAL8250 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 5 | bool "Serial port console output" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 6 | default y |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 7 | help |
| 8 | Send coreboot debug output to a serial port console. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 9 | |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 10 | choice |
| 11 | prompt "COM port" |
| 12 | default CONSOLE_SERIAL_COM1 |
Myles Watson | 6bb3bdf | 2009-09-25 17:24:08 +0000 | [diff] [blame] | 13 | depends on CONSOLE_SERIAL8250 |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 14 | |
| 15 | config CONSOLE_SERIAL_COM1 |
| 16 | bool "COM1/ttyS0" |
| 17 | help |
| 18 | Serial console on COM1/ttyS0. |
| 19 | config CONSOLE_SERIAL_COM2 |
| 20 | bool "COM2/ttyS1" |
| 21 | help |
| 22 | Serial console on COM2/ttyS1. |
| 23 | config CONSOLE_SERIAL_COM3 |
| 24 | bool "COM3/ttyS2" |
| 25 | help |
| 26 | Serial console on COM3/ttyS2. |
| 27 | config CONSOLE_SERIAL_COM4 |
| 28 | bool "COM4/ttyS3" |
| 29 | help |
| 30 | Serial console on COM4/ttyS3. |
| 31 | |
| 32 | endchoice |
| 33 | |
| 34 | config TTYS0_BASE |
| 35 | hex |
| 36 | depends on CONSOLE_SERIAL8250 |
| 37 | default 0x3f8 if CONSOLE_SERIAL_COM1 |
| 38 | default 0x2f8 if CONSOLE_SERIAL_COM2 |
| 39 | default 0x3e8 if CONSOLE_SERIAL_COM3 |
| 40 | default 0x2e8 if CONSOLE_SERIAL_COM4 |
| 41 | help |
| 42 | Map the COM port names to the respective I/O port. |
| 43 | |
| 44 | choice |
| 45 | prompt "BAUD rate" |
| 46 | default CONSOLE_SERIAL_115200 |
| 47 | depends on CONSOLE_SERIAL8250 |
| 48 | |
| 49 | config CONSOLE_SERIAL_115200 |
| 50 | bool "115200" |
| 51 | help |
| 52 | Set serial port BAUD rate to 115200. |
| 53 | config CONSOLE_SERIAL_57600 |
| 54 | bool "57600" |
| 55 | help |
| 56 | Set serial port BAUD rate to 57600. |
| 57 | config CONSOLE_SERIAL_38400 |
| 58 | bool "38400" |
| 59 | help |
| 60 | Set serial port BAUD rate to 38400. |
| 61 | config CONSOLE_SERIAL_19200 |
| 62 | bool "19200" |
| 63 | help |
| 64 | Set serial port BAUD rate to 19200. |
| 65 | config CONSOLE_SERIAL_9600 |
| 66 | bool "9600" |
| 67 | help |
| 68 | Set serial port BAUD rate to 9600. |
| 69 | |
| 70 | endchoice |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 71 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 72 | config TTYS0_BAUD |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 73 | int |
| 74 | default 115200 if CONSOLE_SERIAL_115200 |
| 75 | default 57600 if CONSOLE_SERIAL_57600 |
| 76 | default 38400 if CONSOLE_SERIAL_38400 |
| 77 | default 19200 if CONSOLE_SERIAL_19200 |
| 78 | default 9600 if CONSOLE_SERIAL_9600 |
| 79 | help |
| 80 | Map the BAUD rates to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 81 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 82 | # TODO: Allow user-friendly selection of settings other than 8n1. |
Patrick Georgi | 0e9a925 | 2009-10-06 20:48:07 +0000 | [diff] [blame] | 83 | config TTYS0_LCS |
| 84 | int |
| 85 | default 3 |
| 86 | depends on CONSOLE_SERIAL8250 |
| 87 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 88 | config SERIAL_POST |
Uwe Hermann | d12b703 | 2009-10-16 22:39:55 +0000 | [diff] [blame] | 89 | bool "Show POST codes on the serial port console" |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 90 | depends on CONSOLE_SERIAL8250 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 91 | default n |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 92 | help |
| 93 | If enabled, coreboot will additionally print POST codes (which are |
| 94 | usually displayed using a so-called "POST card" ISA/PCI/PCI-E |
| 95 | device) on the serial console. |
| 96 | |
| 97 | # TODO: FIX DEPENDENCY HERE |
| 98 | config USBDEBUG_DIRECT |
| 99 | bool "USB 2.0 EHCI debug dongle support" |
| 100 | default n |
| 101 | help |
| 102 | This option allows you to use a so-called USB EHCI Debug device |
| 103 | to retrieve the coreboot debug messages (instead, or in addition |
| 104 | to, a serial port). |
| 105 | |
| 106 | This feature is NOT supported on all chipsets in coreboot! |
| 107 | |
| 108 | It also requires a USB2 controller which supports the EHCI |
| 109 | Debug Port capability. Controllers which are known to work: |
| 110 | |
| 111 | * 10b9:5239 ALi Corporation USB 2.0 (USB PCI card) |
| 112 | * 8086:24cd Intel ICH4/ICH4-M |
| 113 | * 8086:24dd Intel ICH5 |
| 114 | * 8086:265c Intel ICH6 |
| 115 | * 8086:268c Intel 631xESB/632xESB/3100 |
| 116 | * 8086:27cc Intel ICH7 |
| 117 | * 8086:2836 Intel ICH8 |
| 118 | * 8086:283a Intel ICH8 |
| 119 | * 8086:293a Intel ICH9 |
| 120 | * 10de:0088 NVIDIA MCP2A |
| 121 | * 10de:005b NVIDIA CK804 |
| 122 | * 10de:026e NVIDIA MCP51 |
| 123 | * 10de:036d NVIDIA MCP55 |
| 124 | * 10de:03f2 NVIDIA MCP61 |
| 125 | * 1002:4386 ATI/AMD SB600 |
| 126 | * 1106:3104 VIA VX800 |
| 127 | |
| 128 | See http://www.coreboot.org/EHCI_Debug_Port for an up-to-date list. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 129 | |
| 130 | config CONSOLE_VGA |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 131 | bool "Use VGA console once initialized" |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 132 | default n |
| 133 | |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 134 | # TODO: Deps? |
| 135 | # TODO: Improve description. |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 136 | config CONSOLE_VGA_ONBOARD_AT_FIRST |
Uwe Hermann | 168b11b | 2009-10-07 16:15:40 +0000 | [diff] [blame] | 137 | bool "Use onboard VGA as primary video device" |
Myles Watson | 45bb25f | 2009-09-22 18:49:08 +0000 | [diff] [blame] | 138 | default n |
| 139 | help |
| 140 | If not selected, the last adapter found will be used. |
| 141 | |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 142 | choice |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 143 | prompt "Maximum console log level" |
| 144 | default MAXIMUM_CONSOLE_LOGLEVEL_8 |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 145 | |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 146 | config MAXIMUM_CONSOLE_LOGLEVEL_8 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 147 | bool "8: SPEW" |
| 148 | help |
| 149 | Way too many details. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 150 | config MAXIMUM_CONSOLE_LOGLEVEL_7 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 151 | bool "7: DEBUG" |
| 152 | help |
| 153 | Debug-level messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 154 | config MAXIMUM_CONSOLE_LOGLEVEL_6 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 155 | bool "6: INFO" |
| 156 | help |
| 157 | Informational messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 158 | config MAXIMUM_CONSOLE_LOGLEVEL_5 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 159 | bool "5: NOTICE" |
| 160 | help |
| 161 | Normal but significant conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 162 | config MAXIMUM_CONSOLE_LOGLEVEL_4 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 163 | bool "4: WARNING" |
| 164 | help |
| 165 | Warning conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 166 | config MAXIMUM_CONSOLE_LOGLEVEL_3 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 167 | bool "3: ERR" |
| 168 | help |
| 169 | Error conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 170 | config MAXIMUM_CONSOLE_LOGLEVEL_2 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 171 | bool "2: CRIT" |
| 172 | help |
| 173 | Critical conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 174 | config MAXIMUM_CONSOLE_LOGLEVEL_1 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 175 | bool "1: ALERT" |
| 176 | help |
| 177 | Action must be taken immediately. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 178 | config MAXIMUM_CONSOLE_LOGLEVEL_0 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 179 | bool "0: EMERG" |
| 180 | help |
| 181 | System is unusable. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 182 | |
| 183 | endchoice |
| 184 | |
| 185 | config MAXIMUM_CONSOLE_LOGLEVEL |
| 186 | int |
| 187 | default 0 if MAXIMUM_CONSOLE_LOGLEVEL_0 |
| 188 | default 1 if MAXIMUM_CONSOLE_LOGLEVEL_1 |
| 189 | default 2 if MAXIMUM_CONSOLE_LOGLEVEL_2 |
| 190 | default 3 if MAXIMUM_CONSOLE_LOGLEVEL_3 |
| 191 | default 4 if MAXIMUM_CONSOLE_LOGLEVEL_4 |
| 192 | default 5 if MAXIMUM_CONSOLE_LOGLEVEL_5 |
| 193 | default 6 if MAXIMUM_CONSOLE_LOGLEVEL_6 |
| 194 | default 7 if MAXIMUM_CONSOLE_LOGLEVEL_7 |
| 195 | default 8 if MAXIMUM_CONSOLE_LOGLEVEL_8 |
| 196 | help |
| 197 | Map the log level config names to an integer. |
| 198 | |
| 199 | choice |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 200 | prompt "Default console log level" |
| 201 | default DEFAULT_CONSOLE_LOGLEVEL_8 |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 202 | |
| 203 | config DEFAULT_CONSOLE_LOGLEVEL_8 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 204 | bool "8: SPEW" |
| 205 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8) |
| 206 | help |
| 207 | Way too many details. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 208 | config DEFAULT_CONSOLE_LOGLEVEL_7 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 209 | bool "7: DEBUG" |
| 210 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7) |
| 211 | help |
| 212 | Debug-level messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 213 | config DEFAULT_CONSOLE_LOGLEVEL_6 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 214 | bool "6: INFO" |
| 215 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\ |
| 216 | MAXIMUM_CONSOLE_LOGLEVEL_6) |
| 217 | help |
| 218 | Informational messages. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 219 | config DEFAULT_CONSOLE_LOGLEVEL_5 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 220 | bool "5: NOTICE" |
| 221 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\ |
| 222 | MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5) |
| 223 | help |
| 224 | Normal but significant conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 225 | config DEFAULT_CONSOLE_LOGLEVEL_4 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 226 | bool "4: WARNING" |
| 227 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\ |
| 228 | MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\ |
| 229 | MAXIMUM_CONSOLE_LOGLEVEL_4) |
| 230 | help |
| 231 | Warning conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 232 | config DEFAULT_CONSOLE_LOGLEVEL_3 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 233 | bool "3: ERR" |
| 234 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\ |
| 235 | MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\ |
| 236 | MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3) |
| 237 | help |
| 238 | Error conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 239 | config DEFAULT_CONSOLE_LOGLEVEL_2 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 240 | bool "2: CRIT" |
| 241 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\ |
| 242 | MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\ |
| 243 | MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\ |
| 244 | MAXIMUM_CONSOLE_LOGLEVEL_2) |
| 245 | help |
| 246 | Critical conditions. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 247 | config DEFAULT_CONSOLE_LOGLEVEL_1 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 248 | bool "1: ALERT" |
| 249 | depends on (MAXIMUM_CONSOLE_LOGLEVEL_8 || MAXIMUM_CONSOLE_LOGLEVEL_7 ||\ |
| 250 | MAXIMUM_CONSOLE_LOGLEVEL_6 || MAXIMUM_CONSOLE_LOGLEVEL_5 ||\ |
| 251 | MAXIMUM_CONSOLE_LOGLEVEL_4 || MAXIMUM_CONSOLE_LOGLEVEL_3 ||\ |
| 252 | MAXIMUM_CONSOLE_LOGLEVEL_2 || MAXIMUM_CONSOLE_LOGLEVEL_1) |
| 253 | help |
| 254 | Action must be taken immediately. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 255 | config DEFAULT_CONSOLE_LOGLEVEL_0 |
Myles Watson | 0364618 | 2009-10-16 19:29:45 +0000 | [diff] [blame] | 256 | bool "0: EMERG" |
| 257 | help |
| 258 | System is unusable. |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 259 | |
| 260 | endchoice |
| 261 | |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 262 | config DEFAULT_CONSOLE_LOGLEVEL |
Uwe Hermann | 7fe4191 | 2009-10-11 13:35:24 +0000 | [diff] [blame] | 263 | int |
| 264 | default 0 if DEFAULT_CONSOLE_LOGLEVEL_0 |
| 265 | default 1 if DEFAULT_CONSOLE_LOGLEVEL_1 |
| 266 | default 2 if DEFAULT_CONSOLE_LOGLEVEL_2 |
| 267 | default 3 if DEFAULT_CONSOLE_LOGLEVEL_3 |
| 268 | default 4 if DEFAULT_CONSOLE_LOGLEVEL_4 |
| 269 | default 5 if DEFAULT_CONSOLE_LOGLEVEL_5 |
| 270 | default 6 if DEFAULT_CONSOLE_LOGLEVEL_6 |
| 271 | default 7 if DEFAULT_CONSOLE_LOGLEVEL_7 |
| 272 | default 8 if DEFAULT_CONSOLE_LOGLEVEL_8 |
| 273 | help |
| 274 | Map the log level config names to an integer. |
Patrick Georgi | 0588d19 | 2009-08-12 15:00:51 +0000 | [diff] [blame] | 275 | |
| 276 | endmenu |
| 277 | |
Myles Watson | d73c1b5 | 2009-10-26 15:14:07 +0000 | [diff] [blame] | 278 | config CONSOLE_BTEXT |
| 279 | bool |
| 280 | default n |
| 281 | |
| 282 | config CONSOLE_SROM |
| 283 | bool |
| 284 | default n |
| 285 | |
| 286 | config CONSOLE_LOGBUF |
| 287 | bool |
| 288 | default n |