[BUG] mtdinfo -a: Tries to open NULL pointer for NOR with Eraseblock Regions

Brian Norris computersforpeace at gmail.com
Tue Aug 16 13:47:39 EDT 2011


On Tue, Aug 16, 2011 at 12:31 AM, Brian Foster
<brian.foster at maxim-ic.com> wrote:
>  You should decide what ‘-a’ means:  “all information”
>  or “all devices”.  If “all information”, then either a
>  bunch of work needs to be done, or else ‘-a’ removed.
>
>  But if “all devices”  — which happens to be both what
>  I think it means and how I use it —  then it is very
>  useful, at least in my situation where I'm bringing up
>  a new SoC and board.  It's a nice summary of what I'm
>  usually interested in; if it didn't exist, I'd “have”
>  to script it.  And in either case, if and when I do
>  need all the information about _a_ device, then I do
>  ‘mtdinfo /dev/mtd<N>’.

I think we're going with "all devices" then, with less emphasis on
100% completeness of information. For one, it reflects the current
code, and the help message has stated this its purpose for a while:

"-a, --all        print information about all MTD devices"

Thanks for the contributions.

Brian



More information about the linux-mtd mailing list