This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: IO_Flash & DataFlash
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Savin Zlobec <savin at elatec dot si>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 31 Aug 2004 12:17:50 +0200
- Subject: Re: [ECOS] IO_Flash & DataFlash
- References: <41344D9C.2030105@elatec.si>
On Tue, Aug 31, 2004 at 12:06:20PM +0200, Savin Zlobec wrote:
> Hi,
>
> I'am writing a DataFlash driver and I would like to use it also through
> the io_flash API,
> but it seems that the io_flash only supports 2^n block sizes (judging by
> the calculation
> and usage of block_mask). DataFlash memory array is divided into 3
> levels - sectors,
> blocks and pages of wich none has 2^n size.
>
> Supporting this in io_flash is probably just a matter of some ifdefs in
> read/program/erase
> functions - is this correct ? But does anything else (RedBoot, jffs2,
> ...) also depend on
> 2^n block sizes ?
It should not be too hard to make the io_flash code work with odd size
blocks for flash. jffs2 i have no idea about, you would be better
asking dwmw2. Redboot i think uses a few masks, so would need some
changes.
I will take a look at the new flash code tonight.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss