public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Newbie: more questions
@ 2001-01-17 19:46 Kyle Harris
  2001-01-17 20:31 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Kyle Harris @ 2001-01-17 19:46 UTC (permalink / raw)
  To: mtd

Hi,

I got the mail archives, but I still have a few questions (then,
hopefully, I'll be quiet for a while).

1) What is the difference between JFFS and JFFS2?

2) Is NAND flash supported by JFFS? Is NAND flash supported by the
character device?

3) Can the filesystem be limited to using only part of a device? For
example, can I write a compressed image to a well-known area in flash 
(that the boot is aware of) and prevent the fs from using this? Does
this apply to both NOR and NAND flash?

4) How are different blocks/sectors within a device accessed by the
character device? Do I use different device minors or do I seek to an
address?

Thanks for your help, Kyle.


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Newbie: more questions
  2001-01-17 19:46 Newbie: more questions Kyle Harris
@ 2001-01-17 20:31 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-01-17 20:31 UTC (permalink / raw)
  To: Kyle Harris; +Cc: mtd

On Wed, 17 Jan 2001, Kyle Harris wrote:

> 1) What is the difference between JFFS and JFFS2?

Main fundamental difference: JFFS exists and JFFS2 is a little more 
than twinkle in our collective eyes and a few kilobytes of code on my 
workstation which doesn't compile.

JFFS2 will support compression and hardlinks, forward compatibility, will
(hopefully) have formal proof the the GC can't get stuck, and will have
NAND flash support designed in from the start. Oh, and it'll make the tea.

Discussion of JFFS is best taken to jffs-dev@axis.com

> 2) Is NAND flash supported by JFFS? Is NAND flash supported by the
> character device?

Yes, Steve Hill modified the existing JFFS code to meet the requirements 
of NAND flash. I haven't used or checked it myself, but having discussed 
stuff with him, I expect his code to be good.

He also provided a driver for certain types of NAND flash, and an an ECC
mechanism for use with JFFS on NAND flash.

> 3) Can the filesystem be limited to using only part of a device? For
> example, can I write a compressed image to a well-known area in flash 
> (that the boot is aware of) and prevent the fs from using this? Does
> this apply to both NOR and NAND flash?

Yes. You register a handful of MTD devices, one for each 'partition' you 
desire, with methods which simply subtract an offset from the requested 
addresses and pass the call through to the original physical MTD device. 
See mtdpart.c and anything which calls add_mtd_partitions() for more 
information.
 
> > 4) How are different blocks/sectors within a device accessed by the
> character device? Do I use different device minors or do I seek to an
> address?

See above. They appear as different devices to the MTD layer, and hence 
appear on different device minors, yes.

-- 
dwmw2




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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-01-17 20:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-17 19:46 Newbie: more questions Kyle Harris
2001-01-17 20:31 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox