public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
@ 2010-01-15 15:25 Richard Retanubun
  2010-01-15 16:13 ` Detlev Zundel
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Retanubun @ 2010-01-15 15:25 UTC (permalink / raw)
  To: u-boot

 From a1d1f6fa9b579c4a766eea45c01224edd536880c Mon Sep 17 00:00:00 2001
From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Date: Fri, 15 Jan 2010 10:06:06 -0500
Subject: [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.

This commit uses gd->relocaddr variable to store uboot's relocated
address in RAM and shows it in bdinfo command.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
---
  common/cmd_bdinfo.c           |    1 +
  include/asm-ppc/global_data.h |    2 --
  lib_ppc/board.c               |    8 ++++++++
  3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 11c1547..f8400bc 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -115,6 +115,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  #endif
  	printf ("IP addr     = %pI4\n", &bd->bi_ip_addr);
  	printf ("baudrate    = %6ld bps\n", bd->bi_baudrate   );
+	print_num ("relocaddr", gd->relocaddr);
  	return 0;
  }

diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h
index 3f11918..d3dd44e 100644
--- a/include/asm-ppc/global_data.h
+++ b/include/asm-ppc/global_data.h
@@ -152,9 +152,7 @@ typedef	struct	global_data {
      defined(CONFIG_SANDPOINT)
  	void *		console_addr;
  #endif
-#ifdef CONFIG_AMIGAONEG3SE
  	unsigned long	relocaddr;	/* Start address of U-Boot in RAM */
-#endif
  #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
  	unsigned long	fb_base;	/* Base address of framebuffer memory	*/
  #endif
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index dd22f99..f4a357b 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -659,6 +659,14 @@ void board_init_r (gd_t *id, ulong dest_addr)

  	debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);

+	/*
+	 * Record uboot's address in RAM, useful for debugging;
+	 * CONFIG_AMIGAONEG3SE gets the address during board_init_f.
+	 */
+#ifndef CONFIG_AMIGAONEG3SE
+	gd->relocaddr = dest_addr;
+#endif
+
  	WATCHDOG_RESET ();

  	/*
--
1.6.5

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

* [U-Boot] [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-15 15:25 [U-Boot] [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo Richard Retanubun
@ 2010-01-15 16:13 ` Detlev Zundel
  2010-01-15 16:57   ` Richard Retanubun
  0 siblings, 1 reply; 10+ messages in thread
From: Detlev Zundel @ 2010-01-15 16:13 UTC (permalink / raw)
  To: u-boot

Hi Richard,

> From a1d1f6fa9b579c4a766eea45c01224edd536880c Mon Sep 17 00:00:00 2001
> From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> Date: Fri, 15 Jan 2010 10:06:06 -0500
> Subject: [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
>
> This commit uses gd->relocaddr variable to store uboot's relocated
> address in RAM and shows it in bdinfo command.
>
> Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> ---
>  common/cmd_bdinfo.c           |    1 +
>  include/asm-ppc/global_data.h |    2 --
>  lib_ppc/board.c               |    8 ++++++++
>  3 files changed, 9 insertions(+), 2 deletions(-)
>
> diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
> index 11c1547..f8400bc 100644
> --- a/common/cmd_bdinfo.c
> +++ b/common/cmd_bdinfo.c
> @@ -115,6 +115,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
>  #endif
>  	printf ("IP addr     = %pI4\n", &bd->bi_ip_addr);
>  	printf ("baudrate    = %6ld bps\n", bd->bi_baudrate   );
> +	print_num ("relocaddr", gd->relocaddr);
>  	return 0;
>  }
>
> diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h
> index 3f11918..d3dd44e 100644
> --- a/include/asm-ppc/global_data.h
> +++ b/include/asm-ppc/global_data.h
> @@ -152,9 +152,7 @@ typedef	struct	global_data {
>      defined(CONFIG_SANDPOINT)
>  	void *		console_addr;
>  #endif
> -#ifdef CONFIG_AMIGAONEG3SE
>  	unsigned long	relocaddr;	/* Start address of U-Boot in RAM */
> -#endif
>  #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
>  	unsigned long	fb_base;	/* Base address of framebuffer memory	*/
>  #endif
> diff --git a/lib_ppc/board.c b/lib_ppc/board.c
> index dd22f99..f4a357b 100644
> --- a/lib_ppc/board.c
> +++ b/lib_ppc/board.c
> @@ -659,6 +659,14 @@ void board_init_r (gd_t *id, ulong dest_addr)
>
>  	debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
>
> +	/*
> +	 * Record uboot's address in RAM, useful for debugging;
> +	 * CONFIG_AMIGAONEG3SE gets the address during board_init_f.
> +	 */
> +#ifndef CONFIG_AMIGAONEG3SE
> +	gd->relocaddr = dest_addr;
> +#endif
> +
>  	WATCHDOG_RESET ();

Please excuse my ignorance, but why not simply remove the #ifdef
CONFIG_AMIGAONEG3SE in board_init_f?  Actually I was hoping to remove
the Amigaone special case.

Cheers
  Detlev

-- 
I'm  not  one of those who   think Bill Gates is   the devil. I simply
suspect that if Microsoft ever met up with the devil, it wouldn't need
an interpreter.
               --NICHOLAS PETRELEY, Sr. Editor, InfoWorld
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

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

* [U-Boot] [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-15 16:13 ` Detlev Zundel
@ 2010-01-15 16:57   ` Richard Retanubun
  2010-01-18 10:44     ` Detlev Zundel
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Retanubun @ 2010-01-15 16:57 UTC (permalink / raw)
  To: u-boot

Detlev Zundel wrote:
<snip>
> 
> Please excuse my ignorance, but why not simply remove the #ifdef
> CONFIG_AMIGAONEG3SE in board_init_f?  Actually I was hoping to remove
> the Amigaone special case.
> 
> Cheers
>   Detlev
> 
I prefer getting the data from board_init_r because we really are running from RAM at that point; dest_addr is a passed in function param.

In board_init_f, the addr variable is just what the calculated address is. If we must do the copy there I'd like to move the gd->relocaddr = addr to just before
the call to relocate_code, that way if the calculation code got reworked/refactored, we always copy the correct addr variable.

Plus the line: debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr); in board_init_r

Is the de-facto place where documentations that I've seen refer to for figuring out where u-boot is relocated, so making the assignment there
makes it clearer.

All these leads to my preference of getting it from board_init_r.

I'll be happy to submit a V2 that takes out the CONFIG_AMIGAONEG3SE copy operation in board_init_f
as well, but I can't confirm if that does not break the AMIGAONE board.

- Richard

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

* [U-Boot] [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-15 16:57   ` Richard Retanubun
@ 2010-01-18 10:44     ` Detlev Zundel
  2010-01-18 10:50       ` Joakim Tjernlund
  2010-01-18 14:12       ` [U-Boot] [PATCH V2] " Richard Retanubun
  0 siblings, 2 replies; 10+ messages in thread
From: Detlev Zundel @ 2010-01-18 10:44 UTC (permalink / raw)
  To: u-boot

Hi Richard,

> Detlev Zundel wrote:
> <snip>
>>
>> Please excuse my ignorance, but why not simply remove the #ifdef
>> CONFIG_AMIGAONEG3SE in board_init_f?  Actually I was hoping to remove
>> the Amigaone special case.
>>
>> Cheers
>>   Detlev
>>
> I prefer getting the data from board_init_r because we really are
> running from RAM at that point; dest_addr is a passed in function
> param.

I see, thanks for the explanation.

> In board_init_f, the addr variable is just what the calculated address
> is. If we must do the copy there I'd like to move the gd->relocaddr =
> addr to just before the call to relocate_code, that way if the
> calculation code got reworked/refactored, we always copy the correct
> addr variable.

Yes, I also agree - if we want to have it in _f, we should move the
assignment.

> Plus the line: debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr); in board_init_r
>
> Is the de-facto place where documentations that I've seen refer to for
> figuring out where u-boot is relocated, so making the assignment there
> makes it clearer.
>
> All these leads to my preference of getting it from board_init_r.

Actually I do not have a strong preference myself.  The only thing I
could think of is that an earlier assignment discloses the information
also when debugging problems in relocation.  On the other hand if you
_do_ debug the relocation it is unlikely that you need the variable, so
this argument does not tip the scale in any direction.

> I'll be happy to submit a V2 that takes out the CONFIG_AMIGAONEG3SE
> copy operation in board_init_f as well, but I can't confirm if that
> does not break the AMIGAONE board.

Yes, please send such a follow-on patch.  Not being able to test a
change is rather the norm in U-Boot, so it is acceptable to simply CC
the relevant maintainer ("Thomas Frieden
<ThomasF@hyperion-entertainment.com>") and if no NACK is seen include
the changes anyway at some point.

Thanks
  Detlev

-- 
It's like manually inflatable airbags -- people will never
think to use it in time to actually get any help from it.
             -- Miles Bader in <20030607122005.GA1086@gnu.org>
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

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

* [U-Boot] [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-18 10:44     ` Detlev Zundel
@ 2010-01-18 10:50       ` Joakim Tjernlund
  2010-01-18 14:12       ` [U-Boot] [PATCH V2] " Richard Retanubun
  1 sibling, 0 replies; 10+ messages in thread
From: Joakim Tjernlund @ 2010-01-18 10:50 UTC (permalink / raw)
  To: u-boot

>
> Hi Richard,
>
> > Detlev Zundel wrote:
> > <snip>
> >>
> >> Please excuse my ignorance, but why not simply remove the #ifdef
> >> CONFIG_AMIGAONEG3SE in board_init_f?  Actually I was hoping to remove
> >> the Amigaone special case.
> >>
> >> Cheers
> >>   Detlev
> >>
> > I prefer getting the data from board_init_r because we really are
> > running from RAM at that point; dest_addr is a passed in function
> > param.
>
> I see, thanks for the explanation.
>
> > In board_init_f, the addr variable is just what the calculated address
> > is. If we must do the copy there I'd like to move the gd->relocaddr =
> > addr to just before the call to relocate_code, that way if the
> > calculation code got reworked/refactored, we always copy the correct
> > addr variable.
>
> Yes, I also agree - if we want to have it in _f, we should move the
> assignment.
>
> > Plus the line: debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);
> in board_init_r

This printout is so useful that it should have its own config option so
one can have it always on without enabling debug.

   Jocke

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

* [U-Boot] [PATCH V2] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-18 10:44     ` Detlev Zundel
  2010-01-18 10:50       ` Joakim Tjernlund
@ 2010-01-18 14:12       ` Richard Retanubun
  2010-01-19 14:28         ` Detlev Zundel
  1 sibling, 1 reply; 10+ messages in thread
From: Richard Retanubun @ 2010-01-18 14:12 UTC (permalink / raw)
  To: u-boot

 From c9b845a6dac24e74ab450aa0bac071b441d16ae9 Mon Sep 17 00:00:00 2001
From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
Date: Fri, 15 Jan 2010 10:06:06 -0500
Subject: [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.

This patch uses gd->relocaddr variable to store uboot's relocated
address in RAM and shows it in bdinfo command.

This patch removes CONFIG_AMIGAONEG3SE style copying of the address
in board_init_f; it is moved to a common place in board_init_r.

Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
---
  common/cmd_bdinfo.c           |    1 +
  include/asm-ppc/global_data.h |    2 --
  lib_ppc/board.c               |    7 +++----
  3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 11c1547..f8400bc 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -115,6 +115,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
  #endif
  	printf ("IP addr     = %pI4\n", &bd->bi_ip_addr);
  	printf ("baudrate    = %6ld bps\n", bd->bi_baudrate   );
+	print_num ("relocaddr", gd->relocaddr);
  	return 0;
  }

diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h
index 3f11918..d3dd44e 100644
--- a/include/asm-ppc/global_data.h
+++ b/include/asm-ppc/global_data.h
@@ -152,9 +152,7 @@ typedef	struct	global_data {
      defined(CONFIG_SANDPOINT)
  	void *		console_addr;
  #endif
-#ifdef CONFIG_AMIGAONEG3SE
  	unsigned long	relocaddr;	/* Start address of U-Boot in RAM */
-#endif
  #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
  	unsigned long	fb_base;	/* Base address of framebuffer memory	*/
  #endif
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index dd22f99..2e2872e 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -476,10 +476,6 @@ void board_init_f (ulong bootflag)

  	debug ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr);

-#ifdef CONFIG_AMIGAONEG3SE
-	gd->relocaddr = addr;
-#endif
-
  	/*
  	 * reserve memory for malloc() arena
  	 */
@@ -659,6 +655,9 @@ void board_init_r (gd_t *id, ulong dest_addr)

  	debug ("Now running in RAM - U-Boot at: %08lx\n", dest_addr);

+	/* Record uboot's address in RAM, useful for debugging. */
+	gd->relocaddr = dest_addr;
+
  	WATCHDOG_RESET ();

  	/*
--
1.6.5

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

* [U-Boot] [PATCH V2] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-18 14:12       ` [U-Boot] [PATCH V2] " Richard Retanubun
@ 2010-01-19 14:28         ` Detlev Zundel
       [not found]           ` <4B55C9FF.7060000@RuggedCom.com>
  0 siblings, 1 reply; 10+ messages in thread
From: Detlev Zundel @ 2010-01-19 14:28 UTC (permalink / raw)
  To: u-boot

Hi Richard,

can you please resend the patch - it is strangely whitespace damaged:

> From c9b845a6dac24e74ab450aa0bac071b441d16ae9 Mon Sep 17 00:00:00 2001
> From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> Date: Fri, 15 Jan 2010 10:06:06 -0500
> Subject: [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
>
> This patch uses gd->relocaddr variable to store uboot's relocated
> address in RAM and shows it in bdinfo command.
>
> This patch removes CONFIG_AMIGAONEG3SE style copying of the address
> in board_init_f; it is moved to a common place in board_init_r.
>
> Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> ---
>   common/cmd_bdinfo.c           |    1 +
>   include/asm-ppc/global_data.h |    2 --
>   lib_ppc/board.c               |    7 +++----
>   3 files changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
> index 11c1547..f8400bc 100644
> --- a/common/cmd_bdinfo.c
> +++ b/common/cmd_bdinfo.c
> @@ -115,6 +115,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
>   #endif
>   	printf ("IP addr     = %pI4\n", &bd->bi_ip_addr);
>   	printf ("baudrate    = %6ld bps\n", bd->bi_baudrate   );
> +	print_num ("relocaddr", gd->relocaddr);
>   	return 0;
>   }
>

I did not check why the other hunks fail, but in this one there is a
space too much at the beginning of the lines...

Cheers
  Detlev

-- 
... that every year or so they're going to give you a new release full
of 50 000  additional lines of code all  written  by monkeys.  Because
they generally follow  the  ``million monkeys typing,   and eventually
they'll come up with something useful'' school of system development.
	                                    -- Richard M. Stallman
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

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

* [U-Boot] [PATCH V3] PPC: Record uboot's relocated address in RAM and show in bdinfo.
       [not found]             ` <m2iqawg0fj.fsf@ohwell.denx.de>
@ 2010-01-25 18:31               ` richardretanubun at ruggedcom.com
  2010-02-02 17:38                 ` Detlev Zundel
  2010-03-11 22:49                 ` Wolfgang Denk
  0 siblings, 2 replies; 10+ messages in thread
From: richardretanubun at ruggedcom.com @ 2010-01-25 18:31 UTC (permalink / raw)
  To: u-boot



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

* [U-Boot] [PATCH V3] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-25 18:31               ` [U-Boot] [PATCH V3] " richardretanubun at ruggedcom.com
@ 2010-02-02 17:38                 ` Detlev Zundel
  2010-03-11 22:49                 ` Wolfgang Denk
  1 sibling, 0 replies; 10+ messages in thread
From: Detlev Zundel @ 2010-02-02 17:38 UTC (permalink / raw)
  To: u-boot

Hi Richard,

>>From 58e9529fa466ef79232398aeda69373125eb2aac Mon Sep 17 00:00:00 2001
> From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> Date: Fri, 15 Jan 2010 10:06:06 -0500
> Subject: [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
>
> This patch uses gd->relocaddr variable to store uboot's relocated
> address in RAM and shows it in bdinfo command.
>
> This patch moves CONFIG_AMIGAONEG3SE style copying of the address
> in board_init_f to just before relocation is actually done.
>
> Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> ---
> Hi Detlev, 
>
> Sorry it took a while, got swamped with other tasks.
> I see your point and have made a patch per your request.

No problem, I know how it is.  Thanks for the patch!

Tested-by: Detlev Zundel <dzu@denx.de>

> Cheers,
>
> -Richard
>
>  common/cmd_bdinfo.c           |    1 +
>  include/asm-ppc/global_data.h |    2 --
>  lib_ppc/board.c               |    6 ++----
>  3 files changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
> index 11c1547..f8400bc 100644
> --- a/common/cmd_bdinfo.c
> +++ b/common/cmd_bdinfo.c
> @@ -115,6 +115,7 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
>  #endif
>  	printf ("IP addr     = %pI4\n", &bd->bi_ip_addr);
>  	printf ("baudrate    = %6ld bps\n", bd->bi_baudrate   );
> +	print_num ("relocaddr", gd->relocaddr);
>  	return 0;
>  }
>  
> diff --git a/include/asm-ppc/global_data.h b/include/asm-ppc/global_data.h
> index 55e7e20..e031fdb 100644
> --- a/include/asm-ppc/global_data.h
> +++ b/include/asm-ppc/global_data.h
> @@ -149,9 +149,7 @@ typedef	struct	global_data {
>      defined(CONFIG_SANDPOINT)
>  	void *		console_addr;
>  #endif
> -#ifdef CONFIG_AMIGAONEG3SE
>  	unsigned long	relocaddr;	/* Start address of U-Boot in RAM */
> -#endif
>  #if defined(CONFIG_LCD) || defined(CONFIG_VIDEO)
>  	unsigned long	fb_base;	/* Base address of framebuffer memory	*/
>  #endif
> diff --git a/lib_ppc/board.c b/lib_ppc/board.c
> index dd22f99..1e3fe59 100644
> --- a/lib_ppc/board.c
> +++ b/lib_ppc/board.c
> @@ -476,10 +476,6 @@ void board_init_f (ulong bootflag)
>  
>  	debug ("Reserving %ldk for U-Boot at: %08lx\n", len >> 10, addr);
>  
> -#ifdef CONFIG_AMIGAONEG3SE
> -	gd->relocaddr = addr;
> -#endif
> -
>  	/*
>  	 * reserve memory for malloc() arena
>  	 */
> @@ -611,6 +607,8 @@ void board_init_f (ulong bootflag)
>  
>  	WATCHDOG_RESET();
>  
> +	gd->relocaddr = addr; /* Record relocation address, useful for debug */
> +
>  	memcpy (id, (void *)gd, sizeof (gd_t));
>  
>  	relocate_code (addr_sp, id, addr);

-- 
We can forgive a man for making a useful thing as long as he does not
admire it.  The only excuse  for making  a useless  thing is that one
admires it intensely.
                                    --- Oscar Wilde
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

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

* [U-Boot] [PATCH V3] PPC: Record uboot's relocated address in RAM and show in bdinfo.
  2010-01-25 18:31               ` [U-Boot] [PATCH V3] " richardretanubun at ruggedcom.com
  2010-02-02 17:38                 ` Detlev Zundel
@ 2010-03-11 22:49                 ` Wolfgang Denk
  1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2010-03-11 22:49 UTC (permalink / raw)
  To: u-boot

Dear richardretanubun at ruggedcom.com,

In message <20100125183120.GA11251@richardretanubun.eng.lan> you wrote:
> From 58e9529fa466ef79232398aeda69373125eb2aac Mon Sep 17 00:00:00 2001
> From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> Date: Fri, 15 Jan 2010 10:06:06 -0500
> Subject: [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo.
> 
> This patch uses gd->relocaddr variable to store uboot's relocated
> address in RAM and shows it in bdinfo command.
> 
> This patch moves CONFIG_AMIGAONEG3SE style copying of the address
> in board_init_f to just before relocation is actually done.
> 
> Signed-off-by: Richard Retanubun <RichardRetanubun@RuggedCom.com>
> ---
> Hi Detlev, 
> 
> Sorry it took a while, got swamped with other tasks.
> I see your point and have made a patch per your request.
> 
> Cheers,
> 
> -Richard
> 
>  common/cmd_bdinfo.c           |    1 +
>  include/asm-ppc/global_data.h |    2 --
>  lib_ppc/board.c               |    6 ++----
>  3 files changed, 3 insertions(+), 6 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
One difference between a man and a machine is that a machine is quiet
when well oiled.

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

end of thread, other threads:[~2010-03-11 22:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-15 15:25 [U-Boot] [PATCH] PPC: Record uboot's relocated address in RAM and show in bdinfo Richard Retanubun
2010-01-15 16:13 ` Detlev Zundel
2010-01-15 16:57   ` Richard Retanubun
2010-01-18 10:44     ` Detlev Zundel
2010-01-18 10:50       ` Joakim Tjernlund
2010-01-18 14:12       ` [U-Boot] [PATCH V2] " Richard Retanubun
2010-01-19 14:28         ` Detlev Zundel
     [not found]           ` <4B55C9FF.7060000@RuggedCom.com>
     [not found]             ` <m2iqawg0fj.fsf@ohwell.denx.de>
2010-01-25 18:31               ` [U-Boot] [PATCH V3] " richardretanubun at ruggedcom.com
2010-02-02 17:38                 ` Detlev Zundel
2010-03-11 22:49                 ` Wolfgang Denk

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