[ECOS] Re: Strata Flash in RedBoot.
Narayana, Venkat A.
NarayVA@nsc-msg01.network.com
Fri Jun 8 12:17:00 GMT 2001
Hi,
I made few changes in starta.c to make my flash get
probed and return decent values.Basically, when i
include CYGNUM_FLASH_DEVICES, in calculating the
block_size or flash_info.end values, then i get into
trouble, because i have 2 flashes with a big hole separating
them.
However, i don;t know what's happening after flash_init returns
to load_flash_config and here the code tries to figure out the
checksum :
cfg_base = (void *)((unsigned long)flash_end - (2*block_size));
memcpy(&config, cfg_base, sizeof(config));
if ((crc32((unsigned char *)&config,
sizeof(config)-sizeof(config.cksum))
...
Why do we want to go to the End_of_Flash - 2 * block_size ??
What will be there?
Venkat
More information about the Ecos-discuss
mailing list