From: Ferenc Havasi <havasi@inf.u-szeged.hu>
To: Nikhil <nikhils@cdac.in>
Cc: linux-mtd@lists.infradead.org
Subject: Re: MKFS.JFFS2 util
Date: Tue, 22 Nov 2005 14:35:52 +0100 [thread overview]
Message-ID: <43831EB8.9050505@inf.u-szeged.hu> (raw)
In-Reply-To: <twig.1132644305.54050@cdac.in>
Hi Nikhil,
> i followed the following steps.
> 1) mount the partition as JFFS2 (mount -t jffs2 /dev/mtdblock0 /mnt/cf)
> and
> 2) then copy the file (cp /home/mydir/test.txt /mnt/cf/) or
>
> 1) i can MKFS.JFFS2 on the dir (mkfs.jffs2 -d /home/mydir/ -o myimage)
> 2) then dd it to flash (dd if=myimage of=/dev/mtdblock0)
> 3) and then mount it (mount -t jffs2 /dev/mtdblock0 /mnt/cf/)
>
> is the first method the correct way of implementation, as i am getting the
> same results either way but i need not use mkfs.jffs2. if yes, then when
> shud i use mkfs.jffs2 utility
If before the first method the flash was empty (for example erased with
flash_eraseall -j /dev/mtd/0) then the result will be the same in
practice. Not exactly the same, but in practice it is the same.
When can be mkfs.jffs2 very usefull? For example:
- when the machine is very slow. With mkfs.jffs2 you can build the file
system on a host machine which can be much faster.
- when there is no other possibility: in some cases it is impossible to
simply copy files from somewhere, because there is no other storage
devices. For example at HP iPAQ there is only a bootloader communicating
via serial port. You can upload file system image (created by
mkfs.jffs2), and the bootloader will simply write to the flash.
Ferenc
prev parent reply other threads:[~2005-11-22 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-22 7:25 MKFS.JFFS2 util Nikhil
2005-11-22 13:35 ` Ferenc Havasi [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=43831EB8.9050505@inf.u-szeged.hu \
--to=havasi@inf.u-szeged.hu \
--cc=linux-mtd@lists.infradead.org \
--cc=nikhils@cdac.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