public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Alex Zeffertt <ajz@cambridgebroadband•com>
To: "Billalabeitia, Jose Carlos (IndSys,
	GEPM)" <jc.billalabeitia@indsys•ge.com>
Cc: linuxppc-embedded@lists•linuxppc.org
Subject: Re: Formatting JFFS2 Flash
Date: Wed, 13 Mar 2002 17:53:46 +0000	[thread overview]
Message-ID: <3C8F922A.8090201@cambridgebroadband.com> (raw)
In-Reply-To: A1C99F4731CAD111BA5400A024FC3B0CBE0414@ESBILMA01EDCGE


Question:

Did you initialise the FS with

cat jffs2.image > /dev/mtd0

before you tried to mount /mtdblock0 ?

If you did not, then kernel threads will indeed start formatting the FS after you mount it.

2nd question:

Did you use an empty directory with mkfs.jffs2 to make your jffs2.image?  This doesn't work - you
end up with a 0 length jffs2.image!  If this was the case then even if you did initialise the FS
with "cat jffs2.image > /dev/mtd0" you will still find the kernel threads format the FS after you
mount it.

I think this is a bug - the workaround is to use a non-empty folder to make your jffs2.image from.

Alex

Billalabeitia, Jose Carlos (IndSys, GEPM) wrote:

> Hi:
>
> 	I have a PPC 860T custom board with kernel
> 2.4.4-2001-11-11-denx and rtai-24.1.4-2-denx. I have
> a JFFS2 filesystem on 14MB Flash. I make an initial
> filesystem with the "mkfs.jffs2" utility, and the first time
> I copy a 1MB file into it, it takes about 2 minutes, and
> then on it takes 10 seconds to copy into it the same file.
> I suppose that the first time, jffs2 is doing something like
> "formatting" the flash.
> Does anybody out there know how to do this "formatting"
> in a smarter way?
>
> 				Thank you
> 					Billa
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2002-03-13 17:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-13 15:50 Formatting JFFS2 Flash Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-13 17:53 ` Alex Zeffertt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-03-13 16:14 Navin Boppuri
2002-03-14  8:13 Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-14  8:33 Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-14 11:31 ` Alex Zeffertt
2002-03-14 11:42   ` Wolfgang Denk
2002-03-14 13:30 ` Jim Lewis
2002-03-14 17:46 Billalabeitia, Jose Carlos (IndSys, GEPM)

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=3C8F922A.8090201@cambridgebroadband.com \
    --to=ajz@cambridgebroadband$(echo .)com \
    --cc=jc.billalabeitia@indsys$(echo .)ge.com \
    --cc=linuxppc-embedded@lists$(echo .)linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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