public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* sumtool
@ 2005-11-04 13:52 hinko.kocevar
  2005-11-04 13:57 ` sumtool Jörn Engel
  0 siblings, 1 reply; 2+ messages in thread
From: hinko.kocevar @ 2005-11-04 13:52 UTC (permalink / raw)
  To: Linux MTD

Hi all,

We are about to use newer version of MTD in our product - the one with 
EBS and summary. Until now we managed to measure performance on old/new 
system setup.

As some of you confirmed that the only way to upgrade is to use sumtool 
to convert old format (summary-less) image to new format. What I've done 
here does not result in successfull mount:

on old mtd setup:
flash_eraseall /dev/mtd2
mount /dev/mtd2 /mnt

# make some files
cd /mnt
while [ $I -lt 100 ]; do dd if=/dev/urandom of=$I$I$I$I$I count=10; let 
"I+=1"; done
cd ..

umount /dev/mtd2

on new mtd setup:
sumtool -i /dev/mtd0 -o /tmp/filee -p
flash_eraseall /dev/mtd0
cp /tmp/filee /dev/mtd0

mount /dev/mtd0
^^^^^^^^^^^^^^^^

This last command hangs the system ---
What am I doing wrong?

On host machine I can loop-mount /tmp/filee just fine:
modprobe loop
losetup /dev/loop0 filee
modprobe blkmtd device=/dev/loop0
mount -t jffs2 /dev/mtdblock0 /mnt/mtd0


regards,
hinko

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

* Re: sumtool
  2005-11-04 13:52 sumtool hinko.kocevar
@ 2005-11-04 13:57 ` Jörn Engel
  0 siblings, 0 replies; 2+ messages in thread
From: Jörn Engel @ 2005-11-04 13:57 UTC (permalink / raw)
  To: hinko.kocevar@cetrtapot.si; +Cc: Linux MTD

On Fri, 4 November 2005 14:52:17 +0100, hinko.kocevar@cetrtapot.si wrote:
> 
> mount /dev/mtd0
> ^^^^^^^^^^^^^^^^
> 
> This last command hangs the system ---
> What am I doing wrong?

Correct variants:
1) mount /dev/mtdblock0 ...
2) mount mtd0 -t jffs2 ...
3) mount mtd:foo -t jffs2 ...

1) is using the block device only to derive the correct mtd from it,
2) is referring to the mtd directly by number, 3) is referring to it
by name ("foo").

Might be a candidate for the FAQ.

Jörn

-- 
Beware of bugs in the above code; I have only proved it correct, but
not tried it.
-- Donald Knuth

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

end of thread, other threads:[~2005-11-04 13:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-04 13:52 sumtool hinko.kocevar
2005-11-04 13:57 ` sumtool Jörn Engel

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