This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re : enable 8/16 bit flash in eCos
- From: Andrew Lunn <andrew at lunn dot ch>
- To: ayoub zaki <ayoub_zaki at yahoo dot fr>
- Cc: Andrew Lunn <andrew at lunn dot ch>, ecos-discuss at sourceware dot org
- Date: Thu, 21 Dec 2006 09:32:34 +0100
- Subject: [ECOS] Re: Re : [ECOS] enable 8/16 bit flash in eCos
- References: <20061221081847.13466.qmail@web26608.mail.ukl.yahoo.com>
On Thu, Dec 21, 2006 at 08:18:47AM +0000, ayoub zaki wrote:
> hello,
>
> No I have only one flash, but I have 2 different board one with
> Intel J3 (8bit) and other board with intel P30 (16bit), but my
> purpose is to use only one version of redboot (one binary) for
> both.
That boils down to the same problem. You need two different device
drivers in your binary at the same time, of which only one will be
used. The flash_v2 branch supports this. When the driver starts it
will probe the hardware to see if the device it is supposed to driver
exists. If not it does nothing, leaving the memory space free for the
second driver to control, if it probes successfully.
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