public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtd_debug usage
@ 2006-11-21 16:26 Duke
  2006-11-21 23:05 ` Duke
  0 siblings, 1 reply; 9+ messages in thread
From: Duke @ 2006-11-21 16:26 UTC (permalink / raw)
  To: linux-mtd

Hi All,
I'm having a bit of trouble understanding the usage to mtd_debug.

With the usage format below, why would I need <offset> and <len> if
the mtdblock sizes are already known? (i.e at boot)
I always thought if I write "mtd_debug erase /dev/mtdblock2" it will
erase the entire /dev/mtdblock2 device. not so?
If not, do I specify "mtd_debug erase /dev/mtdblock2 0x0 0x600000" for
mtdblock2 where 0x0 indicated the start of the block?

When I do a write "mtd_debug write /dev/mtdblock2 0x0 0x600000 myfs.cramfs"
would it do just this?

I've seen usage where /dev/mtd2 is used instead of /dev/mtdblock2,
what is the difference here? which should it be. It seems to me that
/dev/mtd2 simply gives the node info (mtd_debug info )and
/dev/mtdblock2 is really what you want to used. Do I have this
correct?

usage: mtd_debug info <device>
       mtd_debug read <device> <offset> <len> <dest-filename>
       mtd_debug write <device> <offset> <len> <source-filename>
       mtd_debug erase <device> <offset> <len>

Thanks.

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

end of thread, other threads:[~2006-11-24  9:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21 16:26 mtd_debug usage Duke
2006-11-21 23:05 ` Duke
2006-11-22  7:42   ` Ricard Wanderlof
2006-11-22 14:23     ` Duke
2006-11-22 14:39       ` Duke
2006-11-22 14:46       ` Ricard Wanderlof
2006-11-22 15:03         ` Artem Bityutskiy
2006-11-22 17:26           ` Duke
2006-11-24  9:57             ` Ricard Wanderlof

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