tools/netconsole: new script for working with netconsole over UDP
PATCH 1/1 tools/netconsole: new script for working with netconsole over UDP
While the doc/README.NetConsole does have a snippet for people to create their own netcat script, it's a lot easier to make a simple dedicated script and tell people to use it.
Also spruce it up a bit to make it user friendly.
--- doc/README.NetConsole | 18 ++++-------------- tools/netconsole | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 14 deletions(-) create mode 100755 tools/netconsole
doc/README.NetConsole +4 -14
@@ -22,21 +22,11 @@ For example, if your server IP is 192.168.1.1, you could use: On the host side, please use this script to access the console: -+++++++++++++++++++++++++++++++++++++++++++ -#! /bin/bash - -[ $# = 1 ] || { echo "Usage: $0 target_ip" >&2 ; exit 1 ; } -TARGET_IP=$1 + tools/netconsole <ip> [port] -stty -icanon -echo intr ^T -nc -u -l -p 6666 < /dev/null & -nc -u ${TARGET_IP} 6666 -stty icanon echo intr ^C -+++++++++++++++++++++++++++++++++++++++++++ - -The script expects exactly one argument, which is interpreted as the -target IP address (or host name, assuming DNS is working). The script -can be interrupted by pressing ^T (CTRL-T). +The script uses netcat to talk to the board over UDP. It requires you to +specify the target IP address (or host name, assuming DNS is working). The +script can be interrupted by pressing ^T (CTRL-T). Be aware that in some distributives (Fedora Core 5@least) usage of nc has been changed and -l and -p options are considered
tools/netconsole new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
1.6.0.4
Wolfgang Denk
AppliedPATCH 1/1 tools/netconsole: new script for working with netconsole over UDP
Dear Mike Frysinger,
Quoted 3 lines · In message <[email protected]> you wrote:
While the doc/README.NetConsole does have a snippet for people to create their own netcat script, it's a lot easier to make a simple dedicated script and tell people to use it.
Could you please restrict the line length to some 70+ characters? Thanks.
Quoted 8 lines
Also spruce it up a bit to make it user friendly.
Signed-off-by Mike Frysinger <[email protected]>--- doc/README.NetConsole | 18 ++++-------------- tools/netconsole | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 14 deletions(-) create mode 100755 tools/netconsole
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Oh, that sound of male ego. You travel halfway across the galaxy and it's still the same song. -- Eve McHuron, "Mudd's Women", stardate 1330.1
PATCH 1/1 tools/netconsole: new script for working with netconsole over UDP
Quoted 7 lines · On Wednesday 10 December 2008 03:24:08 Wolfgang Denk wrote:
Quoted 3 lines · In message <...> you wrote:
While the doc/README.NetConsole does have a snippet for people to create their own netcat script, it's a lot easier to make a simple dedicated script and tell people to use it.
Could you please restrict the line length to some 70+ characters? Thanks.
i'm assuming you're talking about the commit message ... it's already restricted to 77 characters ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20081210/ab391248/attachment.pgp