blob: a66cf90a27b8d3f4e9318837cea677a2e16c8c4b [file] [log] [blame]
Heinrich Schuchardt6577fbf2023-04-01 12:33:49 +02001.. SPDX-License-Identifier: GPL-2.0+:
2
Heinrich Schuchardt1b0c3162024-01-14 14:53:13 +01003.. index::
4 single: coninfo (command)
5
Heinrich Schuchardt6577fbf2023-04-01 12:33:49 +02006coninfo command
7===============
8
9Synopsis
10--------
11
12::
13
14 coninfo
15
16Description
17-----------
18
19The coninfo command provides a list of available console input and output
20devices and their assignment as stdin, stdout, stderr console devices.
21
22If CONFIG_SYS_CONSOLE_IS_IN_ENV=y, the assignment is controlled by the
23environment variables stdin, stdout, stderr which contain a comma separated
24list of device names.
25
26Example
Heinrich Schuchardtb72160b2023-10-28 11:59:32 +020027-------
Heinrich Schuchardt6577fbf2023-04-01 12:33:49 +020028
29.. code-block:: console
30
31 => coninfo
32 List of available devices
33 |-- pl011@9000000 (IO)
34 | |-- stdin
35 | |-- stdout
36 | |-- stderr
37 |-- serial (IO)
38 |-- usbkbd (I)
39 => setenv stdin pl011@9000000,usbkbd
40 => coninfo
41 List of available devices
42 |-- pl011@9000000 (IO)
43 | |-- stdin
44 | |-- stdout
45 | |-- stderr
46 |-- serial (IO)
47 |-- usbkbd (I)
48 | |-- stdin
49
50Configuration
51-------------
52
53The coninfo command is only available if CONFIG_CMD_CONSOLE=y.
54
55Return value
56------------
57
58The return value $? is always 0 (true).