public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "hinko.kocevar@cetrtapot.si" <hinko.kocevar@cetrtapot.si>
To: Linux MTD <linux-mtd@lists.infradead.org>
Subject: sumtool
Date: Fri, 04 Nov 2005 14:52:17 +0100	[thread overview]
Message-ID: <436B6791.70004@cetrtapot.si> (raw)

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

             reply	other threads:[~2005-11-04 13:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-04 13:52 hinko.kocevar [this message]
2005-11-04 13:57 ` sumtool Jörn Engel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=436B6791.70004@cetrtapot.si \
    --to=hinko.kocevar@cetrtapot.si \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox