Re: [U-Boot] [PATCH] tools/env: check flash length before probing

2012-07-21 Thread Mike Frysinger
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: >

Re: [U-Boot] [PATCH] tools/env: check flash length before probing

2012-04-05 Thread Mike Frysinger
On Thursday 05 April 2012 09:15:12 Bishop, Mark wrote: > From: Mike Frysinger > > 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 > > > >

Re: [U-Boot] [PATCH] tools/env: check flash length before probing

2012-04-05 Thread Bishop, Mark
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot- > boun...@lists.denx.de] On Behalf Of Mike Frysinger > Sent: Thursday, April 05, 2012 1:29 AM > To: u-boot@lists.denx.de > Subject: [U-Boot] [PATCH] tools/env: check flash length before probing

[U-Boot] [PATCH] tools/env: check flash length before probing

2012-04-04 Thread Mike Frysinger
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