From: Mike Frysinger Date: Sat, 21 Jul 2012 13:57:56 -0400 Subject: [U-Boot] [PATCH] tools/env: check flash length before probing In-Reply-To: <1333603758-26498-1-git-send-email-vapier@gentoo.org> References: <1333603758-26498-1-git-send-email-vapier@gentoo.org> Message-ID: <201207211357.57870.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 05 April 2012 01:29:18 Mike Frysinger wrote: > If we attempt to probe beyond the end of flash, MEMGETBADBLOCK will fail > (as well it should), but we end up erroring out with the distracting: > Cannot read bad block mark: Invalid argument > > Instead of the correct error: > Too few good blocks within range > > Re-order the tests so we check for the end of the flash before probing > so we don't probe blocks that don't exist. this should be an easy one to pick up :) -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: