<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm; margin-top: 0pt;">Hi Erez,<br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
</p>
<p style="margin-bottom: 0cm; margin-top: 0pt;">Erez D wrote:</p>
<br>
<blockquote
cite="mid:6c32b540910120542w2ca5c648ha9970a0c4e45d411@mail.gmail.com"
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>
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 class="moz-signature" cols="72">--
Gilad Ben-Yossef
Chief Coffee Drinker & CTO
Codefidence Ltd.
Web: <a class="moz-txt-link-freetext" href="http://codefidence.com">http://codefidence.com</a>
Cell: +972-52-8260388
Skype: gilad_codefidence
Tel: +972-8-9316883 ext. 201
Fax: +972-8-9316884
Email: <a class="moz-txt-link-abbreviated" href="mailto:gilad@codefidence.com">gilad@codefidence.com</a>
Check out our Open Source technology and training blog - <a class="moz-txt-link-freetext" href="http://tuxology.net">http://tuxology.net</a>
        "Sorry cannot parse this, its too long to be true :)"
         -- Eric Dumazet on netdev mailing list
</pre>
</body>
</html>