public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] start.S
@ 2011-09-19 18:28 maheen butt
  2011-09-19 18:54 ` Christopher Harvey
  0 siblings, 1 reply; 7+ messages in thread
From: maheen butt @ 2011-09-19 18:28 UTC (permalink / raw)
  To: u-boot

Hi
I'm newbie in the boot loader world. I'm trying to learning the?
source code for porting purpose. U-boot?
start execution from start.S.I want to know that which part?
of start.S jump to c code? and what is first function comes?
after start.S?

Thanks ??

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

* [U-Boot] start.S
  2011-09-19 18:28 [U-Boot] start.S maheen butt
@ 2011-09-19 18:54 ` Christopher Harvey
  2011-09-20  5:02   ` maheen butt
  0 siblings, 1 reply; 7+ messages in thread
From: Christopher Harvey @ 2011-09-19 18:54 UTC (permalink / raw)
  To: u-boot

On 09/19/11 14:28, maheen butt wrote:
> Hi
> I'm newbie in the boot loader world. I'm trying to learning the
> source code for porting purpose. U-boot
> start execution from start.S.I want to know that which part
> of start.S jump to c code? and what is first function comes
> after start.S?
>
> Thanks

Depends on the architecture you compiled U-boot for. What is your target 
board?
Each architecture has it's own start.S

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

* [U-Boot] start.S
  2011-09-19 18:54 ` Christopher Harvey
@ 2011-09-20  5:02   ` maheen butt
  2011-09-20  5:45     ` Marek Vasut
  2011-09-20  5:54     ` Manoj Kumar
  0 siblings, 2 replies; 7+ messages in thread
From: maheen butt @ 2011-09-20  5:02 UTC (permalink / raw)
  To: u-boot

my target board is mips so
which part
of start.S jump to c code? and what is first function comes?after start.S?

what is it in case of ARM?

________________________________
From: Christopher Harvey <charvey@matrox.com>
To: u-boot at lists.denx.de
Sent: Monday, September 19, 2011 11:54 PM
Subject: Re: [U-Boot] start.S

On 09/19/11 14:28, maheen butt wrote:
> Hi
> I'm newbie in the boot loader world. I'm trying to learning the
> source code for porting purpose. U-boot
> start execution from start.S.I want to know that which part
> of start.S jump to c code? and what is first function comes
> after start.S?
>
> Thanks

Depends on the architecture you compiled U-boot for. What is your target 
board?
Each architecture has it's own start.S
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

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

* [U-Boot] start.S
  2011-09-20  5:02   ` maheen butt
@ 2011-09-20  5:45     ` Marek Vasut
  2011-09-20  6:46       ` maheen butt
  2011-09-20  5:54     ` Manoj Kumar
  1 sibling, 1 reply; 7+ messages in thread
From: Marek Vasut @ 2011-09-20  5:45 UTC (permalink / raw)
  To: u-boot

On Tuesday, September 20, 2011 07:02:15 AM maheen butt wrote:
> my target board is mips so
> which part
> of start.S jump to c code? and what is first function comes after start.S?

1) Please stop top-posting ...
2) board_init_f seems like it.

> 
> what is it in case of ARM?

board_init_f as well.

They seem to be in arch/[family]/lib/

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

* [U-Boot] start.S
  2011-09-20  5:02   ` maheen butt
  2011-09-20  5:45     ` Marek Vasut
@ 2011-09-20  5:54     ` Manoj Kumar
  1 sibling, 0 replies; 7+ messages in thread
From: Manoj Kumar @ 2011-09-20  5:54 UTC (permalink / raw)
  To: u-boot

hi,

i am working on an arm board (smdk6410)
the first function called in C code is "start_armboot" in file
board.c(lib_arm)

On Tue, Sep 20, 2011 at 1:02 PM, maheen butt <maheen_butt26@yahoo.com>wrote:

> my target board is mips so
> which part
> of start.S jump to c code? and what is first function comes after start.S?
>
> what is it in case of ARM?
>
> ________________________________
> From: Christopher Harvey <charvey@matrox.com>
> To: u-boot at lists.denx.de
> Sent: Monday, September 19, 2011 11:54 PM
> Subject: Re: [U-Boot] start.S
>
> On 09/19/11 14:28, maheen butt wrote:
> > Hi
> > I'm newbie in the boot loader world. I'm trying to learning the
> > source code for porting purpose. U-boot
> > start execution from start.S.I want to know that which part
> > of start.S jump to c code? and what is first function comes
> > after start.S?
> >
> > Thanks
>
> Depends on the architecture you compiled U-boot for. What is your target
> board?
> Each architecture has it's own start.S
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>


-- 
Thanks and Regards
Manoj Kumar

*"One of the basic difference between God and Human is, God gives, gives and
forgives. But Human gets, gets and forgets. Be thankful in life!"*

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

* [U-Boot] start.S
  2011-09-20  5:45     ` Marek Vasut
@ 2011-09-20  6:46       ` maheen butt
  2011-09-20  9:21         ` Sandeep Kumar
  0 siblings, 1 reply; 7+ messages in thread
From: maheen butt @ 2011-09-20  6:46 UTC (permalink / raw)
  To: u-boot





________________________________
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot at lists.denx.de; maheen butt <maheen_butt26@yahoo.com>
Cc: Christopher Harvey <charvey@matrox.com>
Sent: Tuesday, September 20, 2011 10:45 AM
Subject: Re: [U-Boot] start.S

On Tuesday, September 20, 2011 07:02:15 AM maheen butt wrote:
> my target board is mips so
> which part
> of start.S jump to c code? and what is first function comes after start.S?

1) Please stop top-posting ...
2) board_init_f seems like it.

> 
> what is it in case of ARM?

board_init_f as well.

They seem to be in arch/[family]/lib/


Thanks for your response!

I searched board_init_f() it calls relocate_code() about
which it has been commented that it does not return.
my question is here that from relocate_code() control goes where?
as I'm not able to find relocat_code() defined any where in C code
its only declared in?/u-boot/include/common.h( I found only its prototype)
did it comes back in start.S? as I saw relocate_code assembly instruction in
start.S.

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

* [U-Boot] start.S
  2011-09-20  6:46       ` maheen butt
@ 2011-09-20  9:21         ` Sandeep Kumar
  0 siblings, 0 replies; 7+ messages in thread
From: Sandeep Kumar @ 2011-09-20  9:21 UTC (permalink / raw)
  To: u-boot

-----Original Message-----
From: u-boot-bounces@lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of maheen butt
Sent: 20 September 2011 12:17
To: Marek Vasut; u-boot at lists.denx.de
Subject: Re: [U-Boot] start.S





________________________________
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot at lists.denx.de; maheen butt <maheen_butt26@yahoo.com>
Cc: Christopher Harvey <charvey@matrox.com>
Sent: Tuesday, September 20, 2011 10:45 AM
Subject: Re: [U-Boot] start.S

On Tuesday, September 20, 2011 07:02:15 AM maheen butt wrote:
> my target board is mips so
> which part
> of start.S jump to c code? and what is first function comes after start.S?

1) Please stop top-posting ...
2) board_init_f seems like it.

> 
> what is it in case of ARM?

board_init_f as well.

They seem to be in arch/[family]/lib/


Thanks for your response!

I searched board_init_f() it calls relocate_code() about
which it has been commented that it does not return.
my question is here that from relocate_code() control goes where?
as I'm not able to find relocat_code() defined any where in C code
its only declared in?/u-boot/include/common.h( I found only its prototype)
did it comes back in start.S? as I saw relocate_code assembly instruction in
start.S.


Yes, the function is in start.s. After executing relocate_code the code execution jumps to board_init_r() which is in arch/[family]/lib/board.c

Regards
Sandeep

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

end of thread, other threads:[~2011-09-20  9:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-19 18:28 [U-Boot] start.S maheen butt
2011-09-19 18:54 ` Christopher Harvey
2011-09-20  5:02   ` maheen butt
2011-09-20  5:45     ` Marek Vasut
2011-09-20  6:46       ` maheen butt
2011-09-20  9:21         ` Sandeep Kumar
2011-09-20  5:54     ` Manoj Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox