jffs2 q

jffs2 q

Ori Idan ori at helicontech.co.il
Tue Oct 13 15:49:40 IST 2009


The exact size depends on the actual device being used.
Look at the device data sheet to see what is it's block size.

-- 
Ori Idan


2009/10/13 Gilad Ben-Yossef <gilad at codefidence.com>

>  Hi Erez,
>
>
>  Erez D wrote:
>
>  i am compiling a new jffs2 image for an embedded device, and i get an
> error saying my erase size is wrong.
> how do i determine what is my erase size ? (so i can compare to a jffs2
> file that works)
>
> is there a utility that can give info on jffs2 images, like what is their
> erase size ?
>
> 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.
>
>    target$ cat /proc/mtd
>    dev:    size   erasesize  name
>    mtd0: 00020000 00010000 "bootloader"
>    mtd1: 00020000 00010000 "params"
>    mtd2: 00400000 00010000 "kernel"
>    mtd3: 00bc0000 00010000 "filesystem"
>
> Note the "erasesize" column.
>
> Hope this helps,
> Gilad
>
>
> --
> Gilad Ben-Yossef
> Chief Coffee Drinker & CTO
> Codefidence Ltd.
>
> Web:   http://codefidence.com
> Cell:  +972-52-8260388
> Skype: gilad_codefidence
> Tel:   +972-8-9316883 ext. 201
> Fax:   +972-8-9316884
> Email: gilad at codefidence.com
>
> Check out our Open Source technology and training blog - http://tuxology.net
>
> 	"Sorry cannot parse this, its too long to be true  :)"
> 	  -- Eric Dumazet on netdev mailing list
>
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20091013/09214838/attachment.html>


More information about the Linux-il mailing list