diff mbox

[U-Boot,3/3] Add the NBC + netconsole corresponding documentation

Message ID 94165dbbab23af1ae7ff311d09c042221ab7b151.1289929762.git.blunderer@blunderer.org
State Rejected
Headers show

Commit Message

tristan.lelong@blunderer.org Nov. 16, 2010, 6:04 p.m. UTC
From: Tristan Lelong <tristan.lelong@blunderer.org>


Signed-off-by: Tristan Lelong <tristan.lelong@blunderer.org>
---
 doc/README.netconsole |   66 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 66 insertions(+), 0 deletions(-)
 create mode 100644 doc/README.netconsole

Comments

Mike Frysinger Nov. 17, 2010, 10:50 a.m. UTC | #1
On Tuesday, November 16, 2010 13:04:33 tristan.lelong@blunderer.org wrote:
> --- /dev/null
> +++ b/doc/README.netconsole
> @@ -0,0 +1,66 @@
> +NETCONSOLE & NBC README

there is already a doc/README.NetConsole which contains a lot more useful 
information about the netconsole than this.  start a new README.NBC file and 
stick to just NBC.
-mike
diff mbox

Patch

diff --git a/doc/README.netconsole b/doc/README.netconsole
new file mode 100644
index 0000000..167f523
--- /dev/null
+++ b/doc/README.netconsole
@@ -0,0 +1,66 @@ 
+NETCONSOLE & NBC README
+
+# (C) Copyright 2010
+# Tristan Lelong, tristan.lelong@blunderer.org
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+
+Configuration Options:
+
+   CONFIG_NETCONSOLE
+      This enable the netconsole. Netconsole provide a remote access to 
+      u-boot command line thru udp stream.
+      basically, you just set some environment variables like:
+        - stdin, stdout, and stderr to "nc"
+        - ncip to <remote ip address>
+      and you can connect to the board ip, port 6666 (default) using 
+      "tools/netconsole <board ip addr>"
+
+   CONFIG_CMD_NBC
+      This enable the Net Boot Controller feature that will listen for 
+      NBC magic packet at boot time. If one of NBC packet is received, 
+      u-boot reconfigure itself automagically to use the netconsole
+      and interrupt the autoboot.
+      The NBC packet contains the new board IP and the remote ip.
+      It can also target special boards using filters on hostname and/or ethaddr
+      To broadcast NBC packets just use:
+      "tools/sendnbc -i <new board ip> [options]"
+      Two environment variable will allow to protect your board from receiving 
+      NBC interruptions:
+      	- nbcsource: only this remote IP can interrupt autoboot using NBC
+	- nbcinhibit: if this variable is present, NBC is fully inhibited
+
+
+NOTE:
+ NBC packet has the following format:
+
+One header
+ - NBC header (5 bytes):
+        - magical number 	1 byte		'0xD3'
+	- ASCII header 		3 bytes		"NBC"
+	- packet size		1 byte		'X'
+
+Several Data Chunks
+ - NBC data chunks (X-5 bytes)
+ 	- chunk name		4 bytes		"IP\0\0" | "MAC\0" | "HOST"
+	- chunk size		1 byte		'Y'
+	- chunk data		Y bytes		"xxxx"
+
+The IP chunk is mandatory, other are optional
+