From: "Jagota Rakesh" <jrakesh@gdatech.com>
To: <s.balamurugan@gdatech.co.in>, <linux-mtd@lists.infradead.org>
Subject: Re: doubts in creating jffs2 image
Date: Sat, 4 Nov 2006 08:30:25 -0800 [thread overview]
Message-ID: <000801c7002e$88114fc0$99c8a8c0@jrakeshsw> (raw)
In-Reply-To: 26116.202.144.30.226.1162630659.squirrel@mail.gdatech.co.in
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/
>
prev parent reply other threads:[~2006-11-04 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-04 8:57 doubts in creating jffs2 image s.balamurugan
2006-11-04 16:30 ` Jagota Rakesh [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000801c7002e$88114fc0$99c8a8c0@jrakeshsw' \
--to=jrakesh@gdatech.com \
--cc=linux-mtd@lists.infradead.org \
--cc=s.balamurugan@gdatech.co.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox