From: Russ Dill <Russ.Dill@asu.edu>
To: Snehaprabha <nsnehaprabha@tnint11.telogy.design.ti.com>
Cc: David Woodhouse <dwmw2@infradead.org>, linux-mtd@lists.infradead.org
Subject: Re: JFFS2 Problem
Date: 11 Jul 2002 12:32:35 -0700 [thread overview]
Message-ID: <1026415956.4767.299.camel@timmy> (raw)
In-Reply-To: <200207111518.18733.nsnehaprabha@tnint11.telogy.design.ti.com>
On Thu, 2002-07-11 at 12:18, Snehaprabha wrote:
> Thanks for the response.
> I am running 2.4.17 Kernel. I have a limitation on the flash size (AMD flash
> 2MB with 64K erase block size). I am running our own bootloader which takes
> up 3 erase blocks. Then I have the linux kernel that takes around 12 erase
> blocks, leaving 17 erase blocks for the JFFS2 image. I have managed to fit in
> most of the required pieces for the file system, which makes it 17 blocks.
> Now the question is about the spare erase block required for GC.
> I am confused with the #defines in fs/jffs2/nodelist.h
I don't know your requirements, but there are probably better ways of
doing whatever you are doing. On my 2M board, my flash layout looks like
this:
dev: size erasesize name
mtd0: 00008000 00008000 "BLOB boot loader"
mtd1: 00008000 00004000 "NESA journaled config"
mtd2: 00010000 00010000 "NESA static config"
mtd3: 00060000 00020000 "NESA cramfs saveme"
mtd4: 00180000 00020000 "NESA cramfs root"
(note that 0x8000 is 32k, 0x10000 is 64k, etc)
768k is pretty big for a kernel, but if your need that many drivers,
that is the way it goes. A bootloader should be able to fit in one
block, by using bottom boot block flash, I can make even more efficient
use of the first block by subdividing it. I don't see where a 2M system
would need jffs2, my /proc/mounts looks like this:
/dev/root / cramfs rw 0 0
ramfs /etc ramfs rw 0 0
ramfs /var ramfs rw 0 0
ramfs /tmp ramfs rw 0 0
proc /proc proc rw 0 0
/etc is created by copying /init-etc from the cramfs partition at boot.
Any files that need to be saved across boots are tar.gz'd and saved to
the journalled config sectors by writing to that flash raw and including
a revision and crc.
I'm not saying that you should do it exactly this way, but hopefully it
will give you some ideas beyond what you are currently doing.
next prev parent reply other threads:[~2002-07-11 19:30 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-10 21:52 JFFS2 Problem Snehaprabha
2002-07-11 7:05 ` David Woodhouse
2002-07-11 19:18 ` Snehaprabha
2002-07-11 19:32 ` Russ Dill [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-10 8:29 JFFS2 problem Amit Kumar Sharma
2006-08-10 9:32 ` Artem B. Bityutskiy
2005-07-19 10:11 jffs2 problem Hinko Kocevar
2005-07-19 10:32 ` Artem B. Bityuckiy
2005-07-19 10:58 ` Hinko Kocevar
2005-07-19 11:05 ` Artem B. Bityuckiy
2005-07-19 11:45 ` Hinko Kocevar
2005-07-19 12:05 ` Artem B. Bityuckiy
2005-07-19 12:09 ` Steven Scholz
2005-07-19 12:21 ` Artem B. Bityuckiy
2005-07-19 12:19 ` Hinko Kocevar
2005-07-19 12:30 ` Hinko Kocevar
2004-06-09 6:57 zhang hao
2004-06-09 9:41 ` David Woodhouse
2004-03-22 16:18 JFFS2 problem Michael Palme
2003-07-30 2:37 Vikram Mehta
2002-07-11 13:29 JFFS2 Problem Frederic Giasson
2001-09-03 8:49 jffs2 problem Wojciech Kromer
2001-04-30 22:03 JFFS2 Problem Jeff Smith
2001-05-03 21:55 ` David Woodhouse
2001-03-23 2:02 jffs2 problem Douglas S. J. De Couto
2001-03-23 8:37 ` David Woodhouse
2001-03-23 14:25 ` Douglas S. J. De Couto
2001-03-23 14:31 ` David Woodhouse
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=1026415956.4767.299.camel@timmy \
--to=russ.dill@asu.edu \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=nsnehaprabha@tnint11.telogy.design.ti.com \
/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