public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* Re: Re: [ECOS] Redboot
@ 2007-11-12 11:31 Syed Ismail
  2007-11-12 12:10 ` Andrew Lunn
  2007-11-12 12:14 ` Gary Thomas
  0 siblings, 2 replies; 4+ messages in thread
From: Syed Ismail @ 2007-11-12 11:31 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss




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. 


--
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

* Re: Re: [ECOS] Redboot
  2007-11-12 11:31 Re: [ECOS] Redboot Syed Ismail
@ 2007-11-12 12:10 ` Andrew Lunn
  2007-11-12 12:14 ` Gary Thomas
  1 sibling, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2007-11-12 12:10 UTC (permalink / raw)
  To: Syed Ismail; +Cc: ecos-discuss

> 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.

You don't give me much information to go on here....

16/32 bit configuration for the FLASH? How is the flash attached to
the data bus? Is it a 16 bit device or a 32 bit device? How is the
flash driver configured?

      Andrew

-- 
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

* Re: [ECOS] Redboot
  2007-11-12 11:31 Re: [ECOS] Redboot Syed Ismail
  2007-11-12 12:10 ` Andrew Lunn
@ 2007-11-12 12:14 ` Gary Thomas
  1 sibling, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2007-11-12 12:14 UTC (permalink / raw)
  To: Syed Ismail; +Cc: ecos-discuss

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

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

* Re: Re: [ECOS] redboot
@ 2007-11-19 14:33 Syed Ismail
  0 siblings, 0 replies; 4+ messages in thread
From: Syed Ismail @ 2007-11-19 14:33 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss




On Mon, 19 Nov 2007 Gary Thomas wrote :
> Syed Ismail wrote:
> > Hi
> > I Am working on redboot. I want to call a few defined 
> functions like do_fconfig();  do_exec(); in source code 
>  as soon as redboot prompt comes up. Where do i do this 
> and What are the command line arguements to pass.
> >   
> Your question is a bit vague.  Are you asking how to 
> execute a set of
> commands
> automatically when RedBoot comes up?  If so, look at 
> startup scripts.
> 
> -- 
> Gary Thomas

 I am in quite a mess,(hardware), actually. Please bear with me. I know i can execute any commands by writing a startup/boot script. I want to call it from code. for example, the command "version" is executed as do_version(0,0); in cyg_start().
         Similarly i want to call two fuctions, "do_load()" and "do_exec()" here. Can you please tell me the command line arguements to pass for these functions. I am just trying to skip a more messy problem by doing this. pl help. 
                                         Thank You

--
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-11-19 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-12 11:31 Re: [ECOS] Redboot Syed Ismail
2007-11-12 12:10 ` Andrew Lunn
2007-11-12 12:14 ` Gary Thomas
2007-11-19 14:33 Re: [ECOS] redboot Syed Ismail

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).