* Re: Formatting JFFS2 Flash
@ 2002-03-14 8:33 Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-14 11:31 ` Alex Zeffertt
2002-03-14 13:30 ` Jim Lewis
0 siblings, 2 replies; 9+ messages in thread
From: Billalabeitia, Jose Carlos (IndSys, GEPM) @ 2002-03-14 8:33 UTC (permalink / raw)
To: linuxppc-embedded
Hi Alex:
First of all, thank you for your answer. You wrote:
> Did you initialise the FS with
> cat jffs2.image > /dev/mtd0
> before you tried to mount /mtdblock0 ?
I tried it in two ways, and in both of them
I got the same result:
1.- By flashing "jffs2.image" directly to
its location address.
2.- cp jffs2.image /dev/mtd0
and then mounting it into the system.
> 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!
No, the directory is not empty.
Thank you
Billa
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Formatting JFFS2 Flash
2002-03-14 8:33 Formatting JFFS2 Flash 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
1 sibling, 1 reply; 9+ messages in thread
From: Alex Zeffertt @ 2002-03-14 11:31 UTC (permalink / raw)
To: Billalabeitia, Jose Carlos (IndSys, GEPM); +Cc: linuxppc-embedded
>
> 2.- cp jffs2.image /dev/mtd0
>
> and then mounting it into the system.
>
This looks wrong. You should use
cat jffs2.image > /dev/mtd0
Alex
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Formatting JFFS2 Flash
2002-03-14 11:31 ` Alex Zeffertt
@ 2002-03-14 11:42 ` Wolfgang Denk
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2002-03-14 11:42 UTC (permalink / raw)
To: Alex Zeffertt
Cc: Billalabeitia, Jose Carlos (IndSys, GEPM), linuxppc-embedded
In message <3C908A1A.3070102@cambridgebroadband.com> you wrote:
>
> > 2.- cp jffs2.image /dev/mtd0
>
> This looks wrong. You should use
>
> cat jffs2.image > /dev/mtd0
Ummm... what's the difference?
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Don't panic.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: Formatting JFFS2 Flash
2002-03-14 8:33 Formatting JFFS2 Flash Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-14 11:31 ` Alex Zeffertt
@ 2002-03-14 13:30 ` Jim Lewis
1 sibling, 0 replies; 9+ messages in thread
From: Jim Lewis @ 2002-03-14 13:30 UTC (permalink / raw)
To: Billalabeitia, Jose Carlos (IndSys, GEPM), linuxppc-embedded
Did you remember to erase the flash first with:
erase /dev/mtd0
Then "xxd /dev/mtd0" should show all FF's. You can't write
successfully unless it is erased first. Forgive me if I am stating the
obvious :)
-Jim Lewis
> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of
> Billalabeitia, Jose Carlos (IndSys, GEPM)
> Sent: Thursday, March 14, 2002 2:34 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: Formatting JFFS2 Flash
>
>
>
> Hi Alex:
>
> First of all, thank you for your answer. You wrote:
>
> > Did you initialise the FS with
> > cat jffs2.image > /dev/mtd0
> > before you tried to mount /mtdblock0 ?
>
> I tried it in two ways, and in both of them
> I got the same result:
>
> 1.- By flashing "jffs2.image" directly to
> its location address.
>
> 2.- cp jffs2.image /dev/mtd0
>
> and then mounting it into the system.
>
> > 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!
>
> No, the directory is not empty.
>
> Thank you
> Billa
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: Formatting JFFS2 Flash
@ 2002-03-14 17:46 Billalabeitia, Jose Carlos (IndSys, GEPM)
0 siblings, 0 replies; 9+ messages in thread
From: Billalabeitia, Jose Carlos (IndSys, GEPM) @ 2002-03-14 17:46 UTC (permalink / raw)
To: linuxppc-embedded
Jim Lewis wrote:
> Did you remember to erase the flash first with:
> erase /dev/mtd0
Yes, I erased it in two ways:
- by using the "erase" command
- from the ppcboot.
Billa
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Formatting JFFS2 Flash
@ 2002-03-14 8:13 Billalabeitia, Jose Carlos (IndSys, GEPM)
0 siblings, 0 replies; 9+ messages in thread
From: Billalabeitia, Jose Carlos (IndSys, GEPM) @ 2002-03-14 8:13 UTC (permalink / raw)
To: linuxppc-embedded
Hi Alex:
First of all, thank you for your answer. You wrote:
> Did you initialise the FS with
> cat jffs2.image > /dev/mtd0
> before you tried to mount /mtdblock0 ?
I tried it in two ways, and in both of them
I got the same result:
1.- By flashing "jffs2.image" directly to
its location address.
2.- cp jffs2.image /dev/mtd0
and then mounting it into the system.
> 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!
No, the directory is not empty.
Thank you
Billa
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: Formatting JFFS2 Flash
@ 2002-03-13 16:14 Navin Boppuri
0 siblings, 0 replies; 9+ messages in thread
From: Navin Boppuri @ 2002-03-13 16:14 UTC (permalink / raw)
To: Billalabeitia, Jose Carlos (IndSys, GEPM),
Linuxppc-Embedded (E-mail)
You should try the linux-mtd mailing lists.
http://lists.infradead.org/mailman/listinfo/linux-mtd/
Navin.
-----Original Message-----
From: Billalabeitia, Jose Carlos (IndSys, GEPM)
[mailto:jc.billalabeitia@indsys.ge.com]
Sent: Wednesday, March 13, 2002 9:50 AM
To: linuxppc-embedded@lists.linuxppc.org
Subject: Formatting JFFS2 Flash
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Formatting JFFS2 Flash
@ 2002-03-13 15:50 Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-13 17:53 ` Alex Zeffertt
0 siblings, 1 reply; 9+ messages in thread
From: Billalabeitia, Jose Carlos (IndSys, GEPM) @ 2002-03-13 15:50 UTC (permalink / raw)
To: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Formatting JFFS2 Flash
2002-03-13 15:50 Billalabeitia, Jose Carlos (IndSys, GEPM)
@ 2002-03-13 17:53 ` Alex Zeffertt
0 siblings, 0 replies; 9+ messages in thread
From: Alex Zeffertt @ 2002-03-13 17:53 UTC (permalink / raw)
To: Billalabeitia, Jose Carlos (IndSys, GEPM); +Cc: linuxppc-embedded
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/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-03-14 17:46 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-14 8:33 Formatting JFFS2 Flash 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
-- strict thread matches above, loose matches on Subject: below --
2002-03-14 17:46 Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-14 8:13 Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-13 16:14 Navin Boppuri
2002-03-13 15:50 Billalabeitia, Jose Carlos (IndSys, GEPM)
2002-03-13 17:53 ` Alex Zeffertt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).