From: Zoltan Sogor <weth@inf.u-szeged.hu>
To: linux-mtd@lists.infradead.org
Subject: Re: Problems with sumtool with linux-mtd 1.0
Date: Thu, 23 Nov 2006 17:55:00 +0100 [thread overview]
Message-ID: <4565D264.4060403@inf.u-szeged.hu> (raw)
In-Reply-To: <4565C738.30800@gfplab.com>
Hi Paolo!
I think there is no problem with sumtool.
If you run sumtool with --pad parameter then it pads the OUTPUT file with
0xFF to the end of the last used eraseblock.
If you have empty eraseblocks at the end of your INPUT image then the
sumtool
skips those.
Zoltan
Paolo Scaffardi wrote:
> Hi there!
> I'm developing for a arm cirrus ep9302-based board target. The build
> system was based on an older mtd version. I upgraded to version 1.0.
> Now, it seems i have a problem using sumtool (that was never used before
> by build system after creating jffs2).
>
> I correctly made my jffs2 filesystem for my on-board flash (intel, NOR
> type, 128Kb x 128 blocks) with this cmd:
>
> mkfs.jffs2 --pad=$((8*1024*1024)) --eraseblock=$((128*1024)) -d
> /opt/mydir -o image.jffs2
>
> Then i called sumtool with:
>
> sumtool --pad --eraseblock=$((128*1024)) --input=image.jffs2
> --output=image2.jffs2
>
> The problem is that the second images was really smaller than the first
> one (384Kb).
>
> Why that?
> Sumtool dont give me any error!
>
> Bye,
> Paolo Scaffardi
> GFP Lab s.r.l.
> http://www.gfplab.com
> fax 178 2258454
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
prev parent reply other threads:[~2006-11-23 16:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-23 16:07 Problems with sumtool with linux-mtd 1.0 Paolo Scaffardi
2006-11-23 16:55 ` Zoltan Sogor [this message]
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=4565D264.4060403@inf.u-szeged.hu \
--to=weth@inf.u-szeged.hu \
--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