public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Jeremy Elson <jelson@ISI.EDU>
Cc: jffs-dev@axis.com, mtd@infradead.org
Subject: Re: Does JFFS respect partitions?
Date: Thu, 15 Feb 2001 11:41:47 +0000	[thread overview]
Message-ID: <1018.982237307@redhat.com> (raw)
In-Reply-To: <200102151111.DAA02064@concorde.cs.ucla.edu>


jelson@ISI.EDU said:
>  Interesting - I didn't realize the DOC did internal wear-levelling.

The DiskOnChip doesn't. It's just a bunch of flash chips with a clever ASIC 
to multiplex them and do some ECC in hardware.

The NFTL psuedo-filesystem does. In software. 

> I guess that might mean that there's no point in using JFFS on top of
> the NTFL layer anyway?

True.


> > It's also possible to register the DiskOnChip raw flash as two
> > separate MTD devices, which is how we 'partition' normal flash. Then
> > you let the NFTL code put a filesystem on one of them and use JFFS
> > on the other. 

> This sounds ideal - how does one do this?

You need to get your hands dirty. See the 'add_mtd_partitions' code in 
mtdpart.c and some of the drivers which call it - basically you have an 
underlying MTD device (the DiskOnChip) and you define two dummy devices 
which just add an offset to the address requested and pass through to the 
'real' device's methods. 

It's probably better to take the other route I suggested - have two NFTL
partitions on the DiskOnChip. Clever offset/len args to nftl_format will do
that. The NFTL code ought to be OK with it, and it shouldn't be difficult to
fix if it isn't.

> I don't know the intricacies of the existing jffs2 code or what's left
> to implement, but, will a broomstick speed things up for you?  :-)

Heh - maybe. But stupid quantities of caffeine seem to be working OK at the 
moment.

--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org

      reply	other threads:[~2001-02-15 11:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200102150323.TAA01327@concorde.cs.ucla.edu>
2001-02-15 10:10 ` Does JFFS respect partitions? David Woodhouse
2001-02-15 11:11   ` Jeremy Elson
2001-02-15 11:41     ` David Woodhouse [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=1018.982237307@redhat.com \
    --to=dwmw2@infradead.org \
    --cc=jelson@ISI.EDU \
    --cc=jffs-dev@axis.com \
    --cc=mtd@infradead.org \
    /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