This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: NAND Flash support in eCos?
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Jim Seymour <jim at cipher dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 03 Jan 2007 03:39:34 -0700
- Subject: Re: [ECOS] NAND Flash support in eCos?
- References: <459A9B3F.9070408@cipher.com> <459A9C90.9050708@mlbassoc.com> <459AF5CA.6020506@cipher.com>
Please keep your replies on the list so that all may benefit.
Jim Seymour wrote:
Gary Thomas wrote:
Jim Seymour wrote:
I found a few discussions back in 2004 regarding eCos support for
NAND Flash, but can't find anything more recent.
Has anybody implemented a flash driver for any NAND Flash chips?
(Specifically, the Samsung K9F1208U0B) Our platform will be an Atmel
ARM9 (AT91SAM9260), if that matters.
Related to this: Does anybody know of any easy-to-use error detection
and correction code? I don't think I'll need a full file system, but
I'll need to at least have a simple lookup table in order to map
around bad blocks.
NAND FLASH (RedBoot only, minimal drivers) is supported on the TAMS MOAB
using Toshiba chips. Just look in the repository...
Thank you. This looks like a real good starting point for me.
I'm curious, though. The Toshiba drivers seem to assume the flash is in
code space - although NAND flash (as I understand it) cannot be used to
directly execute code. Is this a legacy from the NOR flash driver it
was based on? Or is there some eCos weirdness that I need to be aware of?
NAND FLASH is treated differently - it cannot be accessed
directly and the 'flash_read_buf()' function is used to stage
a portion of the FLASH into RAM. The extant drivers do
not attempt to remap any bad sectors - simple bit error
discovery/repair using ECC only.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss