public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Unable to Boot (RedBoot ) standalone
@ 2005-10-28  7:27 Ashish Ranjan
  2005-10-28  7:44 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Ashish Ranjan @ 2005-10-28  7:27 UTC (permalink / raw)
  To: ecos-discuss

Hello All,
Please help me I have two problems rigth now and i am
new to ECOS.
 
I am trying to port redboot on the Card having MPC860
and startup type is ROM.The card has the SDRAM
(0x00000000 - 0x00FFFFFF) and ROM (0x30000000 -
0x303FFFFF).When I program the flash and run the
RedBoot.elf through lauterbach(ICD), I get the RedBoot
prompt on Hyperterminal. But when I power-on the Card
without the Emulator, i am unable to get the RedBoot
prompt(nothing happens).
 
There is one more problem,it happens sometimes.In this
case,I am unable to the RedBoot prompt. The
IP(Instruction Pointer) move to an address 0x8001002C
and get halted as I have seen with the help of
debugger. Problem is : When a address is pushed into
the stack and when it is poped up the value is not the
same.Why it happens?what would be the reason?
Few line of Code and Register contents are:
                  // Content of register    r1=59FC   

LR=0x30009B44
    stwu   r1,-0x28(r1) //store the content of r1-0x28
                         at a location there r1 ponits

                         and update the value of 
                         r1      =>  r1=59D4
    mflr   r0          // move the content from link
                          reg. in r0   
                          => r0=0x30009B44
    stw   r0,0x2C(r1)   // store the value of r0 at 
                           r1+0x2C
 
It means 0x30009B44 should be at 0x5A00.but when this
value is retrive back it become 0x8001002C.How it
happen I don't know.
 
Please help me........
 
Thanks
Ashish



		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

-- 
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] Unable to Boot (RedBoot ) standalone
  2005-10-28  7:27 [ECOS] Unable to Boot (RedBoot ) standalone Ashish Ranjan
@ 2005-10-28  7:44 ` Andrew Lunn
  2005-10-28  7:55   ` Ashish Ranjan
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2005-10-28  7:44 UTC (permalink / raw)
  To: Ashish Ranjan; +Cc: ecos-discuss

On Fri, Oct 28, 2005 at 12:27:16AM -0700, Ashish Ranjan wrote:
> Hello All,
> Please help me I have two problems rigth now and i am
> new to ECOS.
>  
> I am trying to port redboot on the Card having MPC860
> and startup type is ROM.The card has the SDRAM
> (0x00000000 - 0x00FFFFFF) and ROM (0x30000000 -
> 0x303FFFFF).When I program the flash and run the
> RedBoot.elf through lauterbach(ICD), I get the RedBoot
> prompt on Hyperterminal. But when I power-on the Card
> without the Emulator, i am unable to get the RedBoot
> prompt(nothing happens).
>  
> There is one more problem,it happens sometimes.In this
> case,I am unable to the RedBoot prompt. The
> IP(Instruction Pointer) move to an address 0x8001002C
> and get halted as I have seen with the help of
> debugger. Problem is : When a address is pushed into
> the stack and when it is poped up the value is not the
> same.Why it happens?what would be the reason?

This sort of thing generally indicates the SDRAM controller
initialization is broken. It could be your debugger is initializing
the SDRAM controller and getting it correct. But when eCos does the
initialization, it gets is wrong. 

        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] Unable to Boot (RedBoot ) standalone
  2005-10-28  7:44 ` Andrew Lunn
@ 2005-10-28  7:55   ` Ashish Ranjan
  2005-10-28  8:31     ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Ashish Ranjan @ 2005-10-28  7:55 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss



--- Andrew Lunn <andrew@lunn.ch> wrote:

> On Fri, Oct 28, 2005 at 12:27:16AM -0700, Ashish
> Ranjan wrote:
> > Hello All,
> > Please help me I have two problems rigth now and i
> am
> > new to ECOS.
> >  
> > I am trying to port redboot on the Card having
> MPC860
> > and startup type is ROM.The card has the SDRAM
> > (0x00000000 - 0x00FFFFFF) and ROM (0x30000000 -
> > 0x303FFFFF).When I program the flash and run the
> > RedBoot.elf through lauterbach(ICD), I get the
> RedBoot
> > prompt on Hyperterminal. But when I power-on the
> Card
> > without the Emulator, i am unable to get the
> RedBoot
> > prompt(nothing happens).
> >  
> > There is one more problem,it happens sometimes.In
> this
> > case,I am unable to the RedBoot prompt. The
> > IP(Instruction Pointer) move to an address
> 0x8001002C
> > and get halted as I have seen with the help of
> > debugger. Problem is : When a address is pushed
> into
> > the stack and when it is poped up the value is not
> the
> > same.Why it happens?what would be the reason?
> 
> This sort of thing generally indicates the SDRAM
> controller
> initialization is broken. It could be your debugger
> is initializing
> the SDRAM controller and getting it correct. But
> when eCos does the
> initialization, it gets is wrong. 
> 
>         Andrew
> 

Thanks for your quick reply sir:
What is the solution means how can I initialize the
SDRAM controller? What would be the step which I
should follow?
And what about booting standalone.Is it due to same
reason?

Ashish




	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

-- 
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] Unable to Boot (RedBoot ) standalone
  2005-10-28  7:55   ` Ashish Ranjan
@ 2005-10-28  8:31     ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2005-10-28  8:31 UTC (permalink / raw)
  To: Ashish Ranjan; +Cc: ecos-discuss

On Fri, Oct 28, 2005 at 12:55:19AM -0700, Ashish Ranjan wrote:
> 
> 
> --- Andrew Lunn <andrew@lunn.ch> wrote:
> 
> > On Fri, Oct 28, 2005 at 12:27:16AM -0700, Ashish
> > Ranjan wrote:
> > > Hello All,
> > > Please help me I have two problems rigth now and i
> > am
> > > new to ECOS.
> > >  
> > > I am trying to port redboot on the Card having
> > MPC860
> > > and startup type is ROM.The card has the SDRAM
> > > (0x00000000 - 0x00FFFFFF) and ROM (0x30000000 -
> > > 0x303FFFFF).When I program the flash and run the
> > > RedBoot.elf through lauterbach(ICD), I get the
> > RedBoot
> > > prompt on Hyperterminal. But when I power-on the
> > Card
> > > without the Emulator, i am unable to get the
> > RedBoot
> > > prompt(nothing happens).
> > >  
> > > There is one more problem,it happens sometimes.In
> > this
> > > case,I am unable to the RedBoot prompt. The
> > > IP(Instruction Pointer) move to an address
> > 0x8001002C
> > > and get halted as I have seen with the help of
> > > debugger. Problem is : When a address is pushed
> > into
> > > the stack and when it is poped up the value is not
> > the
> > > same.Why it happens?what would be the reason?
> > 
> > This sort of thing generally indicates the SDRAM
> > controller
> > initialization is broken. It could be your debugger
> > is initializing
> > the SDRAM controller and getting it correct. But
> > when eCos does the
> > initialization, it gets is wrong. 
> > 
> >         Andrew
> > 
> 
> Thanks for your quick reply sir:
> What is the solution means how can I initialize the
> SDRAM controller? What would be the step which I
> should follow?
> And what about booting standalone.Is it due to same
> reason?

You need to read the data sheet for the processor and you need to read
the code which does the initialization and you need to see if there
are any bugs there.

This is a problem you have to solve and there is little we can do to
help.

        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

end of thread, other threads:[~2005-10-28  8:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-28  7:27 [ECOS] Unable to Boot (RedBoot ) standalone Ashish Ranjan
2005-10-28  7:44 ` Andrew Lunn
2005-10-28  7:55   ` Ashish Ranjan
2005-10-28  8:31     ` Andrew Lunn

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