diff options
author | Fiona Klute <fiona.klute@gmx.de> | 2024-05-18 12:47:06 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-06-06 09:25:08 +0200 |
commit | 7c53182e52f591746e64f611b5bf6d0b8ff79483 (patch) | |
tree | 4667fa2c6a6dea576f1011e0938df70615098ff0 | |
parent | 5a116726cf757192eb23c6beab6c5365f3fcd4f5 (diff) | |
download | u-boot-7c53182e52f591746e64f611b5bf6d0b8ff79483.zip u-boot-7c53182e52f591746e64f611b5bf6d0b8ff79483.tar.gz u-boot-7c53182e52f591746e64f611b5bf6d0b8ff79483.tar.bz2 |
doc: Update netconsole examples, mention stderr
Stderr was missing from the initial description and example.
As I understand the env command documentation the subcommand style is
preferred, though the old format is still fully supported.
Signed-off-by: Fiona Klute <fiona.klute@gmx.de>
Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r-- | doc/usage/netconsole.rst | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/doc/usage/netconsole.rst b/doc/usage/netconsole.rst index cb9a42d..df27b78 100644 --- a/doc/usage/netconsole.rst +++ b/doc/usage/netconsole.rst @@ -3,10 +3,10 @@ Network console In U-Boot, we implemented the networked console via the standard "devices" mechanism, which means that you can switch between the -serial and network input/output devices by adjusting the 'stdin' and -'stdout' environment variables. To switch to the networked console, -set either of these variables to "nc". Input and output can be -switched independently. +serial and network input/output devices by adjusting the 'stdin', +'stdout', and 'stderr' environment variables. To switch to the +networked console, set either of these variables to "nc". Input and +output can be switched independently. The default buffer size can be overridden by setting CFG_NETCONSOLE_BUFFER_SIZE. @@ -22,12 +22,14 @@ configured by setting the 'ncoutport' environment variable. Note that you need to set up the network interface (e.g. using DHCP) before it can be used for network console. -For example, if your server IP is 192.168.1.1, you could use:: +For example, if your server IP is 192.168.1.1, you could use: - => setenv nc 'setenv stdout nc;setenv stdin nc' - => setenv ncip 192.168.1.1 - => saveenv - => run nc +.. prompt:: bash => + + env set nc 'env set stdout nc; env set stderr nc; env set stdin nc' + env set ncip '192.168.1.1' + env save + run nc On the host side, please use this script to access the console |