This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Strata Flash in RedBoot.
- To: "'Jesper Skov'" <jskov at cambridge dot redhat dot com>
- Subject: [ECOS] Re: Strata Flash in RedBoot.
- From: "Narayana, Venkat A." <NarayVA at nsc-msg01 dot network dot com>
- Date: Fri, 8 Jun 2001 14:17:19 -0500
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
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