coninfo.rst 1.0 KB

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