sumtool

hinko.kocevar at cetrtapot.si hinko.kocevar at cetrtapot.si
Fri Nov 4 08:52:17 EST 2005


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




More information about the linux-mtd mailing list