Heinrich Schuchardt | 6577fbf | 2023-04-01 12:33:49 +0200 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
| 3 | coninfo command |
| 4 | =============== |
| 5 | |
| 6 | Synopsis |
| 7 | -------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | coninfo |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | The coninfo command provides a list of available console input and output |
| 17 | devices and their assignment as stdin, stdout, stderr console devices. |
| 18 | |
| 19 | If CONFIG_SYS_CONSOLE_IS_IN_ENV=y, the assignment is controlled by the |
| 20 | environment variables stdin, stdout, stderr which contain a comma separated |
| 21 | list of device names. |
| 22 | |
| 23 | Example |
| 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 | |
| 47 | Configuration |
| 48 | ------------- |
| 49 | |
| 50 | The coninfo command is only available if CONFIG_CMD_CONSOLE=y. |
| 51 | |
| 52 | Return value |
| 53 | ------------ |
| 54 | |
| 55 | The return value $? is always 0 (true). |