sumtool
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 -pflash_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
Quoted 6 lines · On Fri, 4 November 2005 14:52:17 +0100, [email protected] 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
Signature · 3 lines
Beware of bugs in the above code; I have only proved it correct, but not tried it. -- Donald Knuth