This is the mail archive of the ecos-discuss@sourceware.org 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]
Other format: [Raw text]

Re: Redboot


Syed Ismail wrote:
> 
> 
> On Mon, 12 Nov 2007 Andrew Lunn wrote :
>> On Mon, Nov 12, 2007 at 08:38:52AM -0000, Syed Ismail 
>> wrote:
>>> Hi
>>>   When i run redboot on my custom board, i get the 
>> following message.
>>> **Warning** FLASH configuration checksum error or 
>> invalid key
>>> Use 'fconfig -i' to [re]initialize database
>>>
>>> fis list gives this
>>> Name              FLASH addr  Mem addr    Length      
>> Entry point
>>> ReReoooococoigig  0xF000F000  0xF000F000  0x10001000  
>> 0x00000000
>>>
>>> What could be the issue. Could it be flash device 
>> incompatibility. Please help.
>>
>> Did you notice that Redboot says this:
>>
>> Use 'fconfig -i' to [re]initialize database
>>
>> What happens when you do this?
>>
>> You may also want to try
>>
>> fis init
>>
>> The RedBoot manual is:
>>
>> http://ecos.sourceware.org/docs-latest/redboot/redboot-g-
>> uide.html
>>
>>      Andrew
> Hi
>  I found that redboot configuration does not get written into flash properly. So, the checksum error. For example, config key1 0BADFACE gets written as FACEFACE. Where could be the issue. 

It looks like your FLASH doesn't read 32 bit quantities properly.
Unless your FLASH driver sets 'CYGSEM_IO_FLASH_READ_INDIRECT', RedBoot
will read the FLASH (FIS directory, FCONFIG data, etc) directly from
the FLASH, using the most expedient means possible.  On most platforms,
this will be using normal 'memcpy()'.  Depending on how your device
and system are configured, this will possibly go through a data cache
which may also be causing problems.


-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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


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