diff options
Diffstat (limited to 'doc/README.NetConsole')
-rw-r--r-- | doc/README.NetConsole | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/README.NetConsole b/doc/README.NetConsole index 8dc0d29..aa13627 100644 --- a/doc/README.NetConsole +++ b/doc/README.NetConsole @@ -6,6 +6,12 @@ serial and network input/output devices by adjusting the 'stdin' and set either of these variables to "nc". Input and output can be switched independently. +We use an environment variable 'ncip' to set the IP address and the +port of the destination. The format is <ip_addr>:<port>. If <port> is +omitted, the value of 6666 is used. If the env var doesn't exist, the +broadcast address and port 6666 are used. If it is set to an IP +address of 0 (or 0.0.0.0) then no messages are sent to the network. + On the host side, please use this script to access the console: +++++++++++++++++++++++++++++++++++++++++++ @@ -19,6 +25,21 @@ nc -u ${TARGET_IP} 6666 stty icanon echo intr ^C +++++++++++++++++++++++++++++++++++++++++++ +It turned out that 'netcat' couldn't be used to listen to broadcast +packets. We developed our own tool 'ncb' (see tools directory) that +listens to broadcast packets on a given port and dumps them to the +standard output. use it as follows: + ++++++++++++++++++++++++++++++++++++++++++++ +#! /bin/bash + +stty icanon echo intr ^T +./ncb & +nc -u mpc5200 6666 +stty icanon echo intr ^C +kill 0 ++++++++++++++++++++++++++++++++++++++++++++ + For Linux, the network-based console needs special configuration. Minimally, the host IP address needs to be specified. This can be done either via the kernel command line, or by passing parameters |