summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-02-06 11:29:06 +0100
committerTobias Klauser <tklauser@distanz.ch>2013-02-06 11:32:58 +0100
commit57295e33a8a09a029bb5809c0dada118d81bbf4e (patch)
tree7e4376e135c0a40f5598b2475a8de20a3403dfcf
parent21e7b86508c0ba14955b0f366365cfff671ff80f (diff)
mkbootenv: Move file format descriptions to README
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--README6
-rw-r--r--mkubootenv.c14
2 files changed, 8 insertions, 12 deletions
diff --git a/README b/README
index e63eba3..520d396 100644
--- a/README
+++ b/README
@@ -5,6 +5,12 @@ Create an U-Boot environmet image suitable for flashing. The input is a text
file containing environment variable definitions in the format “name=value”,
separeated by newlines.
+The output) is stored as a list of "name=value" strings, where each of the the
+strings is terminated by a NULL byte ('\0'). The end of the list is marked by a
+double NULL byte.
+
+The environment is preceeded by a 32 bit CRC over the list of strings.
+
Usage
-----
diff --git a/mkubootenv.c b/mkubootenv.c
index 7f62a99..fdcb22f 100644
--- a/mkubootenv.c
+++ b/mkubootenv.c
@@ -1,18 +1,8 @@
/*
- * mkubootenv.c
- *
- * Create a U-Boot environment image suitable for flashing.
- *
- * The input is a text file containing environment variable
- * definitions in the format "name=value", separeated by newlines.
- *
- * The "environment" (output) is stored as a list of '\0' terminated
- * "name=value" strings. The end of the list is marked by a double '\0'.
- *
- * The environment is preceeded by a 32 bit CRC over the data part.
+ * mkubootenv -- Create an U-Boot environment image suitable for flashing.
*
* Copyright (c) 2009, Zurich University of Applied Sciences
- * Copyright (c) 2009, Tobias Klauser <klto@zhaw.ch>
+ * Copyright (c) 2009-2013, Tobias Klauser <tklauser@distanz.ch>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as