public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* doubts in creating jffs2 image
@ 2006-11-04  8:57 s.balamurugan
  2006-11-04 16:30 ` Jagota Rakesh
  0 siblings, 1 reply; 2+ messages in thread
From: s.balamurugan @ 2006-11-04  8:57 UTC (permalink / raw)
  To: linux-mtd


Hello gurus,

            I want to know what are the options to be specified when
creating the jffs2 image for nand flash.

            by
bala

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: doubts in creating jffs2 image
  2006-11-04  8:57 doubts in creating jffs2 image s.balamurugan
@ 2006-11-04 16:30 ` Jagota Rakesh
  0 siblings, 0 replies; 2+ messages in thread
From: Jagota Rakesh @ 2006-11-04 16:30 UTC (permalink / raw)
  To: s.balamurugan, linux-mtd

Helo bala,

To create a jffs2 image for NAND flash,

mkfs.jffs2 -l   //if u wanty to create for little -indian , it should 'b' if 
its  big-endian
                  -e 0x20000        //erase block size ..let us sectore size 
is 128Kb,
                  -no-cleanmarkers  //do not add clean markers to every 
erased block
                  -p 0x500000    //let us say u want to creat a total size 
of 5MB , ifur directory structure contains 3.3MB then rest of the thing is 
going to pad with 0xff
                 -r  /home/roots    //root file syte.m.here /home/rootfs 
contians the complete file system structure.......like use,bin,sbin,lib,etc, 
dev..etc..whatever u needed create a directory structure and put under 
rootfs.
                 -o image.jffs2      //this is the output hffs2 image with 
the name as image.jffs2

That should be sufficient. To get mkfs.jffs2 utility, u can download the mtd 
utils from net and compile it with x86 system, as you need to run the 
mkfs.jffs2 utility in x86 machine to create a jffs2 image.

Andto create a directory structure as shown as /home/rootfs, you neeed to 
put the lib for custom processor if its required, same way you should have 
all the bin. sbin files compiled with custom processor. And if the NAND 
flash is only to store some data  then you can have single directory under 
rootfs folder. In that case you wont need any lib, bin, sbin, lib, etc. dev 
folder etc.

        Best of luck!

Regards,
Rakesh Jagota





Regards,
Rakesh Jagota
----- Original Message ----- 
From: <s.balamurugan@gdatech.co.in>
To: <linux-mtd@lists.infradead.org>
Sent: Saturday, November 04, 2006 12:57 AM
Subject: doubts in creating jffs2 image


>
> Hello gurus,
>
>            I want to know what are the options to be specified when
> creating the jffs2 image for nand flash.
>
>            by
> bala
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-04 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-04  8:57 doubts in creating jffs2 image s.balamurugan
2006-11-04 16:30 ` Jagota Rakesh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox