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