From: Wolfgang Denk Date: Mon, 19 Dec 2011 10:17:41 +0100 Subject: [U-Boot] [PATCH] common/cmd_nvedit.c: Fix size calculation in do_env_import() In-Reply-To: <024FE3275EF7814D9B07390F28C0832C63A20CBC@vie196nt.frequentis.frq> References: <1324114390-27290-1-git-send-email-hkronsto@frequentis.com> <20111217200532.F28D71ECC61@gemini.denx.de> <024FE3275EF7814D9B07390F28C0832C63A20CBC@vie196nt.frequentis.frq> Message-ID: <20111219091741.7E1EB11CDEA7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear KRONSTORFER Horst, In message <024FE3275EF7814D9B07390F28C0832C63A20CBC@vie196nt.frequentis.frq> you wrote: > > > Can you please describe a test case that shows this bug? > > host: > echo foo=bar > env.txt > mkenvimage -b -s 13 -o env.bin env.txt > > be target: > tftp 200000 env.bin > env import -c $fileaddr > ## Info: input data size = 12 = 0xC > ## Error: bad CRC, import failed Thanks. [Note: it would have been even more helpful if you had also provided a hex dump of "env.bin" - as is, it's difficult for me to see if there is a bug with cmd_nvedit or with your version of the mkenvimage tool.] Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Q: Why do PCs have a reset button on the front? A: Because they are expected to run Microsoft operating systems.