<div dir="ltr">The exact size depends on the actual device being used.<br>Look at the device data sheet to see what is it's block size.<br><br>-- <br>Ori Idan<br><br><br><div class="gmail_quote">2009/10/13 Gilad Ben-Yossef <span dir="ltr"><<a href="mailto:gilad@codefidence.com">gilad@codefidence.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr" bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm; margin-top: 0pt;">Hi Erez,<br>
</p><div><div></div><div class="h5">
<p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">Erez D wrote:</p>
<br>
<blockquote type="cite">
<div dir="ltr">i am compiling a new jffs2 image for an embedded
device, and i get an error saying my erase size is wrong.<br>
how do i determine what is my erase size ? (so i can compare to a jffs2
file that works)<br>
<br>
is there a utility that can give info on jffs2 images, like what is
their erase size ?<br>
</div>
</blockquote></div></div>
Not that I know of, but assuming you can boot that working jffs2 image
you can ask the Linux kernel what is the erase block size.
<pre> target$ cat /proc/mtd
dev: size erasesize name
mtd0: 00020000 00010000 "bootloader"
mtd1: 00020000 00010000 "params"
mtd2: 00400000 00010000 "kernel"
mtd3: 00bc0000 00010000 "filesystem"
</pre>
Note the "erasesize" column.<br>
<br>
Hope this helps,<br>
Gilad<br>
<br>
<br>
<pre cols="72">--
Gilad Ben-Yossef
Chief Coffee Drinker & CTO
Codefidence Ltd.
Web: <a href="http://codefidence.com" target="_blank">http://codefidence.com</a>
Cell: +972-52-8260388
Skype: gilad_codefidence
Tel: +972-8-9316883 ext. 201
Fax: +972-8-9316884
Email: <a href="mailto:gilad@codefidence.com" target="_blank">gilad@codefidence.com</a>
Check out our Open Source technology and training blog - <a href="http://tuxology.net" target="_blank">http://tuxology.net</a>
        "Sorry cannot parse this, its too long to be true :)"
         -- Eric Dumazet on netdev mailing list
</pre>
</div>
<br>_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
<br></blockquote></div><br></div>