This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Flash detection
- From: "M.Eugenia G.Valdecasas" <valdecasas at isar-tec dot com>
- To: gary at mlbassoc dot com
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Tue, 11 Nov 2003 11:07:54 +0100
- Subject: Re:[ECOS] Flash detection
- References: <000b01c3a7d0$49ead9f0$030aa8c0@kavik>
> The configuration lines are:
>
> in altair_strataflash.inl->
>
> #define CYGNUM_FLASH_DEVICES (2)
> #define CYGNUM_FLASH_BASE (0x00000000u)
> #define CYGNUM_FLASH_BASE_MASK (0xFE000000u) // 2 * 16Mb devices
> > #define CYGNUM_FLASH_WIDTH (16)
> > #define CYGNUM_FLASH_BLANK (1)
> >
> > #define FLASH_P2V(x) ((volatile flash_t *)(((unsigned)(x) <
0x1000) ? \
> > ((unsigned)(x) | 0xa0000000) : \
> > (unsigned)(x)))
> >
>
Why do you have this code? I think it was only necessary on the
IQ80321
and definitely *not* on the PXA25x
If I substitude this code for
#define FLASH_P2V(x) (unsigned)(x)
The exit on the console would be:
+$T0a0f:08f0efa3;0d:d8ca00a0;#a7
and would repeat the same line every time I press a key.
Also I tried to apply the patch for strataflash:
2003-05-02 Jani Monoses
but it gave me this answer as well:
+$T0a0f:08f0efa3;0d:d8ca00a0;#a7
Do I have to apply other patches?
I know I take ok the data of the flash (manufacturer code, qry etc...)
but somehow somewhere between the cache enable and cache disable, this
data is lost... does it make anysense what I am saying???
Why would it jump out of this condition
if ( (qp->manuf_code == FLASH_Intel_code) &&
(strncmp(qp->id, "QRY", 3) == 0))
if the data that the flash sends is correct????
I am out of ideas....
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss