[U-Boot] Environment "image" tool
Mike Frysinger
vapier at gentoo.org
Mon Jul 18 19:38:06 CEST 2011
On Sat, Jul 16, 2011 at 19:18, Alessio Sangalli wrote:
> Hi, is there a tool to create an "environemnt image" that I can flash to
> my NAND?
tools/envcrc will output the binary env blob if you give it the
--binary option. but it does not take arbitrary env inputs.
./tools/envcrc --binary > env.bin
> I think I've seen a tool that takes a text file with an environment
> setting per line, calculates the CRC and generates a binary that can be
> transferred to the board (via tftp or other means) to be written with
> "nand write".
sounds like it might be a useful addition to tools/envcrc
> Alternatively, is there a description of how the environment is read, my
> U-Boot, so that I can write my own program to create such image?
<4 byte crc><var=value>\0[<var=value>\0]...\0
-mike
More information about the U-Boot
mailing list