mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
* Patch by Detlev Zundel, 08 Sep 2004:
Update etags build target * Improve NetConsole support: add support for broadcast destination address and buffered input. * Cleanup compiler warnings for GCC 3.3.x and later * Fix problem in cmd_jffs2.c introduced by CFG_JFFS_SINGLE_PART patch
This commit is contained in:
parent
7ca202f566
commit
eedcd078fe
25 changed files with 287 additions and 138 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue