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: RedBoot FLASH config suggestion


"Trenton D. Adams" wrote:
> 
> Vintages?  I created both of them today using the eCosRepository that I
> downloaded Monday or Tuesday if that's what you mean!
> 
> -----Original Message-----
> From: Gary Thomas [mailto:gthomas@redhat.com]
> Sent: September 20, 2001 4:20 PM
> To: Trenton D. Adams
> Cc: 'Jonathan Larmour'; 'eCos Discussion'
> Subject: RE: [ECOS] RedBoot FLASH config suggestion
> 
> The most probable case is that I've fixed bugs in the 'fconfig' layout
> recently and that your ROM vs RAM versions are of different vintages.

In that case, the more likely thing is that the recent changes introduced
differences somehow :-| - they did affect this area.

OTOH, looking at the code, it's difficult to see how it would differ.
There's no differences in your CDL to account for it perhaps, like 
CYGNUM_REDBOOT_FLASH_CONFIG_SIZE or CYGNUM_REDBOOT_FLASH_CONFIG_BLOCK?

Trenton, if you want to debug this, look at load_flash_config() in
redboot's flash.c. In the middle there's a call to crc32. At that point,
you could do a diag_printf of flash_start, flash_end, sizef(struct
_config),sizeof(config->cksum), config->key1 and config->key2. And then
build your RAM and ROM RedBoots from that. Tell us what you see.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


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