Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. # SPDX-License-Identifier: GPL-2.0
  2. config TTY
  3. bool "Enable TTY" if EXPERT
  4. default y
  5. help
  6. Allows you to remove TTY support which can save space, and
  7. blocks features that require TTY from inclusion in the kernel.
  8. TTY is required for any text terminals or serial port
  9. communication. Most users should leave this enabled.
  10. if TTY
  11. config VT
  12. bool "Virtual terminal" if EXPERT
  13. select INPUT
  14. default y if !UML
  15. help
  16. If you say Y here, you will get support for terminal devices with
  17. display and keyboard devices. These are called "virtual" because you
  18. can run several virtual terminals (also called virtual consoles) on
  19. one physical terminal. This is rather useful, for example one
  20. virtual terminal can collect system messages and warnings, another
  21. one can be used for a text-mode user session, and a third could run
  22. an X session, all in parallel. Switching between virtual terminals
  23. is done with certain key combinations, usually Alt-<function key>.
  24. The setterm command ("man setterm") can be used to change the
  25. properties (such as colors or beeping) of a virtual terminal. The
  26. man page console_codes(4) ("man console_codes") contains the special
  27. character sequences that can be used to change those properties
  28. directly. The fonts used on virtual terminals can be changed with
  29. the setfont ("man setfont") command and the key bindings are defined
  30. with the loadkeys ("man loadkeys") command.
  31. You need at least one virtual terminal device in order to make use
  32. of your keyboard and monitor. Therefore, only people configuring an
  33. embedded system would want to say N here in order to save some
  34. memory; the only way to log into such a system is then via a serial
  35. or network connection.
  36. If unsure, say Y, or else you won't be able to do much with your new
  37. shiny Linux system :-)
  38. config CONSOLE_TRANSLATIONS
  39. depends on VT
  40. default y
  41. bool "Enable character translations in console" if EXPERT
  42. help
  43. This enables support for font mapping and Unicode translation
  44. on virtual consoles.
  45. config VT_CONSOLE
  46. bool "Support for console on virtual terminal" if EXPERT
  47. depends on VT
  48. default y
  49. help
  50. The system console is the device which receives all kernel messages
  51. and warnings and which allows logins in single user mode. If you
  52. answer Y here, a virtual terminal (the device used to interact with
  53. a physical terminal) can be used as system console. This is the most
  54. common mode of operations, so you should say Y here unless you want
  55. the kernel messages be output only to a serial port (in which case
  56. you should say Y to "Console on serial port", below).
  57. If you do say Y here, by default the currently visible virtual
  58. terminal (/dev/tty0) will be used as system console. You can change
  59. that with a kernel command line option such as "console=tty3" which
  60. would use the third virtual terminal as system console. (Try "man
  61. bootparam" or see the documentation of your boot loader (lilo or
  62. loadlin) about how to pass options to the kernel at boot time.)
  63. If unsure, say Y.
  64. config VT_CONSOLE_SLEEP
  65. def_bool y
  66. depends on VT_CONSOLE && PM_SLEEP
  67. config VT_HW_CONSOLE_BINDING
  68. bool "Support for binding and unbinding console drivers"
  69. depends on VT
  70. help
  71. The virtual terminal is the device that interacts with the physical
  72. terminal through console drivers. On these systems, at least one
  73. console driver is loaded. In other configurations, additional console
  74. drivers may be enabled, such as the framebuffer console. If more than
  75. 1 console driver is enabled, setting this to 'y' will allow you to
  76. select the console driver that will serve as the backend for the
  77. virtual terminals.
  78. See <file:Documentation/driver-api/console.rst> for more
  79. information. For framebuffer console users, please refer to
  80. <file:Documentation/fb/fbcon.rst>.
  81. config UNIX98_PTYS
  82. bool "Unix98 PTY support" if EXPERT
  83. default y
  84. help
  85. A pseudo terminal (PTY) is a software device consisting of two
  86. halves: a master and a slave. The slave device behaves identical to
  87. a physical terminal; the master device is used by a process to
  88. read data from and write data to the slave, thereby emulating a
  89. terminal. Typical programs for the master side are telnet servers
  90. and xterms.
  91. Linux has traditionally used the BSD-like names /dev/ptyxx for
  92. masters and /dev/ttyxx for slaves of pseudo terminals. This scheme
  93. has a number of problems. The GNU C library glibc 2.1 and later,
  94. however, supports the Unix98 naming standard: in order to acquire a
  95. pseudo terminal, a process opens /dev/ptmx; the number of the pseudo
  96. terminal is then made available to the process and the pseudo
  97. terminal slave can be accessed as /dev/pts/<number>. What was
  98. traditionally /dev/ttyp2 will then be /dev/pts/2, for example.
  99. All modern Linux systems use the Unix98 ptys. Say Y unless
  100. you're on an embedded system and want to conserve memory.
  101. config LEGACY_PTYS
  102. bool "Legacy (BSD) PTY support"
  103. default y
  104. help
  105. A pseudo terminal (PTY) is a software device consisting of two
  106. halves: a master and a slave. The slave device behaves identical to
  107. a physical terminal; the master device is used by a process to
  108. read data from and write data to the slave, thereby emulating a
  109. terminal. Typical programs for the master side are telnet servers
  110. and xterms.
  111. Linux has traditionally used the BSD-like names /dev/ptyxx
  112. for masters and /dev/ttyxx for slaves of pseudo
  113. terminals. This scheme has a number of problems, including
  114. security. This option enables these legacy devices; on most
  115. systems, it is safe to say N.
  116. config LEGACY_PTY_COUNT
  117. int "Maximum number of legacy PTY in use"
  118. depends on LEGACY_PTYS
  119. range 0 256
  120. default "256"
  121. help
  122. The maximum number of legacy PTYs that can be used at any one time.
  123. The default is 256, and should be more than enough. Embedded
  124. systems may want to reduce this to save memory.
  125. When not in use, each legacy PTY occupies 12 bytes on 32-bit
  126. architectures and 24 bytes on 64-bit architectures.
  127. config LEGACY_TIOCSTI
  128. bool "Allow legacy TIOCSTI usage"
  129. default y
  130. help
  131. Historically the kernel has allowed TIOCSTI, which will push
  132. characters into a controlling TTY. This continues to be used
  133. as a malicious privilege escalation mechanism, and provides no
  134. meaningful real-world utility any more. Its use is considered
  135. a dangerous legacy operation, and can be disabled on most
  136. systems.
  137. Say Y here only if you have confirmed that your system's
  138. userspace depends on this functionality to continue operating
  139. normally.
  140. Processes which run with CAP_SYS_ADMIN, such as BRLTTY, can
  141. use TIOCSTI even when this is set to N.
  142. This functionality can be changed at runtime with the
  143. dev.tty.legacy_tiocsti sysctl. This configuration option sets
  144. the default value of the sysctl.
  145. config LDISC_AUTOLOAD
  146. bool "Automatically load TTY Line Disciplines"
  147. default y
  148. help
  149. Historically the kernel has always automatically loaded any
  150. line discipline that is in a kernel module when a user asks
  151. for it to be loaded with the TIOCSETD ioctl, or through other
  152. means. This is not always the best thing to do on systems
  153. where you know you will not be using some of the more
  154. "ancient" line disciplines, so prevent the kernel from doing
  155. this unless the request is coming from a process with the
  156. CAP_SYS_MODULE permissions.
  157. Say 'Y' here if you trust your userspace users to do the right
  158. thing, or if you have only provided the line disciplines that
  159. you know you will be using, or if you wish to continue to use
  160. the traditional method of on-demand loading of these modules
  161. by any user.
  162. This functionality can be changed at runtime with the
  163. dev.tty.ldisc_autoload sysctl, this configuration option will
  164. only set the default value of this functionality.
  165. source "drivers/tty/serial/Kconfig"
  166. config SERIAL_NONSTANDARD
  167. bool "Non-standard serial port support"
  168. depends on HAS_IOMEM
  169. help
  170. Say Y here if you have any non-standard serial boards -- boards
  171. which aren't supported using the standard "dumb" serial driver.
  172. This includes intelligent serial boards such as
  173. Digiboards, etc. These are usually used for systems that need many
  174. serial ports because they serve many terminals or dial-in
  175. connections.
  176. Note that the answer to this question won't directly affect the
  177. kernel: saying N will just cause the configurator to skip all
  178. the questions about non-standard serial boards.
  179. Most people can say N here.
  180. config MOXA_INTELLIO
  181. tristate "Moxa Intellio support"
  182. depends on SERIAL_NONSTANDARD && PCI
  183. select FW_LOADER
  184. help
  185. Say Y here if you have a Moxa Intellio multiport serial card.
  186. To compile this driver as a module, choose M here: the
  187. module will be called moxa.
  188. config MOXA_SMARTIO
  189. tristate "Moxa SmartIO support v. 2.0"
  190. depends on SERIAL_NONSTANDARD && PCI && HAS_IOPORT
  191. help
  192. Say Y here if you have a Moxa SmartIO multiport serial card and/or
  193. want to help develop a new version of this driver.
  194. This is upgraded (1.9.1) driver from original Moxa drivers with
  195. changes finally resulting in PCI probing.
  196. This driver can also be built as a module. The module will be called
  197. mxser. If you want to do that, say M here.
  198. config SYNCLINK_GT
  199. tristate "SyncLink GT/AC support"
  200. depends on SERIAL_NONSTANDARD && PCI
  201. depends on BROKEN
  202. help
  203. Support for SyncLink GT and SyncLink AC families of
  204. synchronous and asynchronous serial adapters
  205. manufactured by Microgate Systems, Ltd. (www.microgate.com)
  206. config N_HDLC
  207. tristate "HDLC line discipline support"
  208. depends on SERIAL_NONSTANDARD
  209. help
  210. Allows synchronous HDLC communications with tty device drivers that
  211. support synchronous HDLC such as the Microgate SyncLink adapter.
  212. This driver can be built as a module ( = code which can be
  213. inserted in and removed from the running kernel whenever you want).
  214. The module will be called n_hdlc. If you want to do that, say M
  215. here.
  216. config PPC_EPAPR_HV_BYTECHAN
  217. bool "ePAPR hypervisor byte channel driver"
  218. depends on PPC
  219. select EPAPR_PARAVIRT
  220. help
  221. This driver creates /dev entries for each ePAPR hypervisor byte
  222. channel, thereby allowing applications to communicate with byte
  223. channels as if they were serial ports.
  224. config PPC_EARLY_DEBUG_EHV_BC
  225. bool "Early console (udbg) support for ePAPR hypervisors"
  226. depends on PPC_EPAPR_HV_BYTECHAN=y
  227. help
  228. Select this option to enable early console (a.k.a. "udbg") support
  229. via an ePAPR byte channel. You also need to choose the byte channel
  230. handle below.
  231. config PPC_EARLY_DEBUG_EHV_BC_HANDLE
  232. int "Byte channel handle for early console (udbg)"
  233. depends on PPC_EARLY_DEBUG_EHV_BC
  234. default 0
  235. help
  236. If you want early console (udbg) output through a byte channel,
  237. specify the handle of the byte channel to use.
  238. For this to work, the byte channel driver must be compiled
  239. in-kernel, not as a module.
  240. Note that only one early console driver can be enabled, so don't
  241. enable any others if you enable this one.
  242. If the number you specify is not a valid byte channel handle, then
  243. there simply will be no early console output. This is true also
  244. if you don't boot under a hypervisor at all.
  245. config GOLDFISH_TTY
  246. tristate "Goldfish TTY Driver"
  247. depends on GOLDFISH
  248. select SERIAL_CORE
  249. select SERIAL_CORE_CONSOLE
  250. help
  251. Console and system TTY driver for the Goldfish virtual platform.
  252. config GOLDFISH_TTY_EARLY_CONSOLE
  253. bool
  254. default y if GOLDFISH_TTY=y
  255. select SERIAL_EARLYCON
  256. config IPWIRELESS
  257. tristate "IPWireless 3G UMTS PCMCIA card support"
  258. depends on PCMCIA && NETDEVICES && HAS_IOPORT
  259. select PPP
  260. help
  261. This is a driver for 3G UMTS PCMCIA card from IPWireless company. In
  262. some countries (for example Czech Republic, T-Mobile ISP) this card
  263. is shipped for service called UMTS 4G.
  264. config N_GSM
  265. tristate "GSM MUX line discipline support (EXPERIMENTAL)"
  266. depends on NET
  267. help
  268. This line discipline provides support for the GSM MUX protocol and
  269. presents the mux as a set of 61 individual tty devices.
  270. config NOZOMI
  271. tristate "HSDPA Broadband Wireless Data Card - Globe Trotter"
  272. depends on PCI
  273. help
  274. If you have a HSDPA driver Broadband Wireless Data Card -
  275. Globe Trotter PCMCIA card, say Y here.
  276. To compile this driver as a module, choose M here, the module
  277. will be called nozomi.
  278. config MIPS_EJTAG_FDC_TTY
  279. bool "MIPS EJTAG Fast Debug Channel TTY"
  280. depends on MIPS_CDMM
  281. help
  282. This enables a TTY and console on the MIPS EJTAG Fast Debug Channels,
  283. if they are present. This can be useful when working with an EJTAG
  284. probe which supports it, to get console output and a login prompt via
  285. EJTAG without needing to connect a serial cable.
  286. TTY devices are named e.g. ttyFDC3c2 (for FDC channel 2 of the FDC on
  287. CPU3).
  288. The console can be enabled with console=fdc1 (for FDC channel 1 on all
  289. CPUs). Do not use the console unless there is a debug probe attached
  290. to drain the FDC TX FIFO.
  291. If unsure, say N.
  292. config MIPS_EJTAG_FDC_EARLYCON
  293. bool "Early FDC console"
  294. depends on MIPS_EJTAG_FDC_TTY
  295. help
  296. This registers a console on FDC channel 1 very early during boot (from
  297. MIPS arch code). This is useful for bring-up and debugging early boot
  298. issues.
  299. Do not enable unless there is a debug probe attached to drain the FDC
  300. TX FIFO.
  301. If unsure, say N.
  302. config MIPS_EJTAG_FDC_KGDB
  303. bool "Use KGDB over an FDC channel"
  304. depends on MIPS_EJTAG_FDC_TTY && KGDB
  305. default y
  306. help
  307. This enables the use of KGDB over an FDC channel, allowing KGDB to be
  308. used remotely or when a serial port isn't available.
  309. config MIPS_EJTAG_FDC_KGDB_CHAN
  310. int "KGDB FDC channel"
  311. depends on MIPS_EJTAG_FDC_KGDB
  312. range 2 15
  313. default 3
  314. help
  315. FDC channel number to use for KGDB.
  316. config NULL_TTY
  317. tristate "NULL TTY driver"
  318. help
  319. Say Y here if you want a NULL TTY which simply discards messages.
  320. This is useful to allow userspace applications which expect a console
  321. device to work without modifications even when no console is
  322. available or desired.
  323. In order to use this driver, you should redirect the console to this
  324. TTY, boot the kernel with console=ttynull, or enable
  325. NULL_TTY_DEFAULT_CONSOLE.
  326. If unsure, say N.
  327. config NULL_TTY_DEFAULT_CONSOLE
  328. bool "Support for console on ttynull"
  329. depends on NULL_TTY=y && !VT_CONSOLE
  330. help
  331. Say Y here if you want the NULL TTY to be used as a /dev/console
  332. device by default.
  333. For example, it might be useful to prevent a VT-less kernel from
  334. writing the system log to a random device connected to the serial
  335. port.
  336. Another console driver still might get preferred via the command
  337. line, SPCR, or the device tree.
  338. If unsure, say N.
  339. config VCC
  340. tristate "Sun Virtual Console Concentrator"
  341. depends on SUN_LDOMS
  342. help
  343. Support for Sun logical domain consoles.
  344. source "drivers/tty/hvc/Kconfig"
  345. config RPMSG_TTY
  346. tristate "RPMSG tty driver"
  347. depends on RPMSG
  348. help
  349. Say y here to export rpmsg endpoints as tty devices, usually found
  350. in /dev/ttyRPMSGx.
  351. This makes it possible for user-space programs to send and receive
  352. rpmsg messages as a standard tty protocol.
  353. To compile this driver as a module, choose M here: the module will be
  354. called rpmsg_tty.
  355. endif # TTY
  356. source "drivers/tty/serdev/Kconfig"