This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Strata Flash in RedBoot.


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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]