public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* mtd emulation
@ 2005-04-29 21:24 Sam Pham
  2005-04-29 21:49 ` Ralph Siemsen
  2005-05-01 19:51 ` mtd emulation --> NAND? Charles Manning
  0 siblings, 2 replies; 4+ messages in thread
From: Sam Pham @ 2005-04-29 21:24 UTC (permalink / raw)
  To: linux-mtd

I'd like to evaluate JFFS2.  Has anyone done this
before?  Does linux have the capability of emulating
mtd block device and mtd memory so that I can run
JFFS2 on top of it without using the actual flash?

Thanks.

Sam

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* Re: mtd emulation
  2005-04-29 21:24 mtd emulation Sam Pham
@ 2005-04-29 21:49 ` Ralph Siemsen
  2005-05-01 19:51 ` mtd emulation --> NAND? Charles Manning
  1 sibling, 0 replies; 4+ messages in thread
From: Ralph Siemsen @ 2005-04-29 21:49 UTC (permalink / raw)
  To: Sam Pham; +Cc: linux-mtd

Sam Pham wrote:
> I'd like to evaluate JFFS2.  Has anyone done this
> before?  Does linux have the capability of emulating
> mtd block device and mtd memory so that I can run
> JFFS2 on top of it without using the actual flash?

I believe you can use MTD_MTDRAM for this.  There are a few associated 
parameters (total size, erase block size) to be fiddled as well.  See 
the the file linux-2.6.x/drivers/mtd/devices/mtdram.c

-R

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

* Re: mtd emulation --> NAND?
  2005-04-29 21:24 mtd emulation Sam Pham
  2005-04-29 21:49 ` Ralph Siemsen
@ 2005-05-01 19:51 ` Charles Manning
  2005-05-02  8:55   ` Artem B. Bityuckiy
  1 sibling, 1 reply; 4+ messages in thread
From: Charles Manning @ 2005-05-01 19:51 UTC (permalink / raw)
  To: linux-mtd

On Saturday 30 April 2005 09:24, Sam Pham wrote:
> I'd like to evaluate JFFS2.  Has anyone done this
> before?  Does linux have the capability of emulating
> mtd block device and mtd memory so that I can run
> JFFS2 on top of it without using the actual flash?
>

Further to this question, is there an emulation of NAND?

I use a "high level"  mtd NAND emulation that I wrote for YAFFS testing. This 
just provides the NAND mtd functions and uses none of the mtd.

I'm hoping there's a NAND emulation that emulates NAND at a very low level by 
accepting ALE/CLE and byte read/writes. This would provide, say, emulation of 
a 256Mbyte NAND part while exercising the whole of nand.c etc. This allows 
complete testing of file system + mtd code without having any hardware on 
hand.

-- Charles

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

* Re: mtd emulation --> NAND?
  2005-05-01 19:51 ` mtd emulation --> NAND? Charles Manning
@ 2005-05-02  8:55   ` Artem B. Bityuckiy
  0 siblings, 0 replies; 4+ messages in thread
From: Artem B. Bityuckiy @ 2005-05-02  8:55 UTC (permalink / raw)
  To: manningc2; +Cc: linux-mtd

В Пнд, 02/05/2005 в 07:51 +1200, Charles Manning пишет:
> I use a "high level"  mtd NAND emulation that I wrote for YAFFS testing. This 
> just provides the NAND mtd functions and uses none of the mtd.
> 
> I'm hoping there's a NAND emulation that emulates NAND at a very low level by 
> accepting ALE/CLE and byte read/writes. This would provide, say, emulation of 
> a 256Mbyte NAND part while exercising the whole of nand.c etc. This allows 
> complete testing of file system + mtd code without having any hardware on 
> hand.
> 
You might take a look at drivers/mtd/nand/nandsim.c

It emulates NAND in RAM but I think it will be problematic to allocate
256 MiB of memory. But you may think of some trick... Nonetheless, I
used it to emulate 64MiB flashes and it works fine and even may emulate
some delays. I also may perform logging of NAND operations.

Cheers,
Artem.

-- 
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.

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

end of thread, other threads:[~2005-05-02  8:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-29 21:24 mtd emulation Sam Pham
2005-04-29 21:49 ` Ralph Siemsen
2005-05-01 19:51 ` mtd emulation --> NAND? Charles Manning
2005-05-02  8:55   ` Artem B. Bityuckiy

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