public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Redboot_ROM config_data corrupted by flash_erase
@ 2007-07-16 15:50 Tales Toledo
  2007-07-16 21:49 ` Sergei Gavrikov
  0 siblings, 1 reply; 4+ messages in thread
From: Tales Toledo @ 2007-07-16 15:50 UTC (permalink / raw)
  To: ecos-discuss

Hi,

can flash_erase corrupt my config_data (I'm running Redboot from ROM)?

I'm asking this because just before

if ((stat = flash_erase(cfg_base, cfg_size, (void **)&err_addr)) != 0) {
                   diag_printf("   initialization failed at %p: %s\n",
err_addr, flash_errmsg(stat));

at fconfig.c I can get all config-key1, config->key2, config->cksum
with the right values.

After run flash_erase and before run conf_endian_fixup + flash_program
the config_data is corruted and lost config->key2 and config->cksum.

Atte,
TT

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-17 19:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-16 15:50 [ECOS] Redboot_ROM config_data corrupted by flash_erase Tales Toledo
2007-07-16 21:49 ` Sergei Gavrikov
2007-07-17 13:12   ` Tales Toledo
2007-07-17 19:04     ` Sergei Gavrikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).