jffs2 q

jffs2 q

Gilad Ben-Yossef gilad at codefidence.com
Tue Oct 13 15:41:35 IST 2009


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20091013/2981fa5e/attachment-0001.html>


More information about the Linux-il mailing list