public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* /proc/mtd and flash information
@ 2006-10-27 12:44 Ricard Wanderlof
  2006-10-27 13:23 ` David Woodhouse
  0 siblings, 1 reply; 3+ messages in thread
From: Ricard Wanderlof @ 2006-10-27 12:44 UTC (permalink / raw)
  To: Linux mtd


Hi,

It seems to me that /proc/mtd is a little short on information.

It would be nice to see the type of media (NOR, NAND etc), write and oob 
size (for NAND), perhaps a couple of other things for NAND such as the 
number of bad blocks within a partition.

Perhaps having a /proc/mtdX file for each device, giving much the same 
information that otherwise has to be fetched using ioctls like MEMGETINFO, 
ECCGETLAYOUT, ECCGETSTATS etc. Or would that be considered useless, given 
that the same information can actually be obtained from userspace using an 
application using those ioctls?

I see there is an application called flash_info which would seem to 
display information, but which actually only displays info gathered from 
MEMGETREGIONCOUNT. Perhaps it would be an idea to augment this application 
so that it outputs as much information as can be read using ioctls?

Don't mind working on this, but would like some input first.

/Ricard
--
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /proc/mtd and flash information
  2006-10-27 12:44 /proc/mtd and flash information Ricard Wanderlof
@ 2006-10-27 13:23 ` David Woodhouse
  2006-10-27 13:38   ` Artem Bityutskiy
  0 siblings, 1 reply; 3+ messages in thread
From: David Woodhouse @ 2006-10-27 13:23 UTC (permalink / raw)
  To: Ricard Wanderlof; +Cc: Linux mtd

On Fri, 2006-10-27 at 14:44 +0200, Ricard Wanderlof wrote:
> It seems to me that /proc/mtd is a little short on information.
> 
> It would be nice to see the type of media (NOR, NAND etc), write and oob 
> size (for NAND), perhaps a couple of other things for NAND such as the 
> number of bad blocks within a partition. 

Sensible idea, but do it with class_devices in sysfs.

-- 
dwmw2

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /proc/mtd and flash information
  2006-10-27 13:23 ` David Woodhouse
@ 2006-10-27 13:38   ` Artem Bityutskiy
  0 siblings, 0 replies; 3+ messages in thread
From: Artem Bityutskiy @ 2006-10-27 13:38 UTC (permalink / raw)
  To: Ricard Wanderlof; +Cc: Linux mtd

On Fri, 2006-10-27 at 16:23 +0300, David Woodhouse wrote:
> On Fri, 2006-10-27 at 14:44 +0200, Ricard Wanderlof wrote:
> > It seems to me that /proc/mtd is a little short on information.
> > 
> > It would be nice to see the type of media (NOR, NAND etc), write and oob 
> > size (for NAND), perhaps a couple of other things for NAND such as the 
> > number of bad blocks within a partition. 
> 
> Sensible idea, but do it with class_devices in sysfs.

Yeah, definitely. /proc is not the right place for this.

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-27 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-27 12:44 /proc/mtd and flash information Ricard Wanderlof
2006-10-27 13:23 ` David Woodhouse
2006-10-27 13:38   ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox