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