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: gi...@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@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il