Question about mkfs.jffs2 "-s" option

Grant Edwards grant.b.edwards at gmail.com
Thu May 3 10:12:19 EDT 2012


On 2012-05-03, Ricard Wanderlof <ricard.wanderlof at axis.com> wrote:
>
> On Wed, 2 May 2012, Grant Edwards wrote:
>
>> The NAND flash I'm using has to be written in 4K blocks -- isn't that
>> the "page size"?
>
> The smallest writable unit in a NAND flash is called a 'page', but AFAIK 
> this is not what the -s option in mkfs.jffs2 is for. Instead, it is 
> related for the kernel memory managament page size, which is 4k for most 
> architectures. I think the jffs2 driver determines the smallest writable 
> unit runtime; it is not a parameter during the file system creation. 
> However the erase block size must be specified to mkfs.jffs2 as it affects 
> the structure of the file system image.

So the '-s' option should always be set to the kernel page size for
the target?

-- 
Grant Edwards               grant.b.edwards        Yow! Hello?  Enema Bondage?
                                  at               I'm calling because I want
                              gmail.com            to be happy, I guess ...




More information about the linux-mtd mailing list