From 57295e33a8a09a029bb5809c0dada118d81bbf4e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 6 Feb 2013 11:29:06 +0100 Subject: mkbootenv: Move file format descriptions to README Signed-off-by: Tobias Klauser --- README | 6 ++++++ mkubootenv.c | 14 ++------------ 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 + * Copyright (c) 2009-2013, Tobias Klauser * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as -- cgit v1.2.3-54-g00ecf