[ECOS] Flash detection
Tue Nov 11 10:08:00 GMT 2003
> > 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
> 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:
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:
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
More information about the Ecos-discuss