Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-12 Thread Simon Glass
On 10 February 2015 at 02:55, Michal Simek wrote: > > On 02/09/2015 11:14 PM, Simon Glass wrote: > > Hi MIchal, > > > > On 9 February 2015 at 03:27, Michal Simek wrote: > >> Hi Simon, > >> > >> On 02/06/2015 06:45 AM, Simon Glass wrote: > >>> > >>> With a heavy heart: > >>> > >>> Acked-by: Simon

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-10 Thread Michal Simek
On 02/09/2015 11:14 PM, Simon Glass wrote: > Hi MIchal, > > On 9 February 2015 at 03:27, Michal Simek wrote: >> Hi Simon, >> >> On 02/06/2015 06:45 AM, Simon Glass wrote: >>> On 4 February 2015 at 23:31, Michal Simek wrote: Hi, On 02/05/2015 04:07 AM, Simon Glass wrote: > Hi M

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-09 Thread Simon Glass
Hi MIchal, On 9 February 2015 at 03:27, Michal Simek wrote: > Hi Simon, > > On 02/06/2015 06:45 AM, Simon Glass wrote: >> On 4 February 2015 at 23:31, Michal Simek wrote: >>> Hi, >>> >>> On 02/05/2015 04:07 AM, Simon Glass wrote: Hi Michal, On 3 February 2015 at 17:40, Simon Glass

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-09 Thread Michal Simek
Hi Simon, On 02/06/2015 06:45 AM, Simon Glass wrote: > On 4 February 2015 at 23:31, Michal Simek wrote: >> Hi, >> >> On 02/05/2015 04:07 AM, Simon Glass wrote: >>> Hi Michal, >>> >>> On 3 February 2015 at 17:40, Simon Glass wrote: Hi Michal, On 3 February 2015 at 02:11, Michal Sim

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-05 Thread Simon Glass
On 4 February 2015 at 23:31, Michal Simek wrote: > Hi, > > On 02/05/2015 04:07 AM, Simon Glass wrote: >> Hi Michal, >> >> On 3 February 2015 at 17:40, Simon Glass wrote: >>> Hi Michal, >>> >>> On 3 February 2015 at 02:11, Michal Simek wrote: Hi Simon, On 02/03/2015 03:02 AM, Masah

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Michal Simek
Hi, On 02/05/2015 04:07 AM, Simon Glass wrote: > Hi Michal, > > On 3 February 2015 at 17:40, Simon Glass wrote: >> Hi Michal, >> >> On 3 February 2015 at 02:11, Michal Simek wrote: >>> Hi Simon, >>> >>> On 02/03/2015 03:02 AM, Masahiro Yamada wrote: Hi. On Mon, 2 Feb 2015 16

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Simon Glass
Hi Michal, On 3 February 2015 at 17:40, Simon Glass wrote: > Hi Michal, > > On 3 February 2015 at 02:11, Michal Simek wrote: >> Hi Simon, >> >> On 02/03/2015 03:02 AM, Masahiro Yamada wrote: >>> Hi. >>> >>> >>> On Mon, 2 Feb 2015 16:57:15 -0700 >>> Simon Glass wrote: >>> Hi Michal, >>

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Graeme Russ
Hi Albert, If we use SPL, we do not have to relocate code, I think. SPL doesn't have relocation that's why this code is not used there. It is not what I meant. If SPL can directly load the main u-boot image to the DRAM address where it is linked, we do not relocate the code in the main

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Michal Simek
Hi Albert, On 02/04/2015 11:34 AM, Albert ARIBAUD wrote: > Hello Michal, > > On Wed, 4 Feb 2015 10:56:02 +0100, Michal Simek > wrote: >> On 02/04/2015 04:11 AM, Masahiro Yamada wrote: >>> Hi Michal, >>> >>> >>> On Tue, 3 Feb 2015 10:11:39 +0100 >>> Michal Simek wrote: >>> Hi Simon, >>

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Albert ARIBAUD
Hello Michal, On Wed, 4 Feb 2015 10:56:02 +0100, Michal Simek wrote: > On 02/04/2015 04:11 AM, Masahiro Yamada wrote: > > Hi Michal, > > > > > > On Tue, 3 Feb 2015 10:11:39 +0100 > > Michal Simek wrote: > > > >> Hi Simon, > >> > >> On 02/03/2015 03:02 AM, Masahiro Yamada wrote: > >>> Hi. > >>

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Michal Simek
Hi, On 02/04/2015 06:48 AM, Graeme Russ wrote: > Hi Simon, > >> Maybe I asked this before, but when can we remove >> CONFIG_NEEDS_MANUAL_RELOC? What platforms need it? > > A quick grep yields a global define of CONFIG_NEEDS_MANUAL_RELOC for avr32, > m68k, nds32, and sparc + Microblaze to move

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Michal Simek
On 02/04/2015 04:11 AM, Masahiro Yamada wrote: > Hi Michal, > > > On Tue, 3 Feb 2015 10:11:39 +0100 > Michal Simek wrote: > >> Hi Simon, >> >> On 02/03/2015 03:02 AM, Masahiro Yamada wrote: >>> Hi. >>> >>> >>> On Mon, 2 Feb 2015 16:57:15 -0700 >>> Simon Glass wrote: >>> Hi Michal, >>

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Graeme Russ
Hi Simon, Maybe I asked this before, but when can we remove CONFIG_NEEDS_MANUAL_RELOC? What platforms need it? A quick grep yields a global define of CONFIG_NEEDS_MANUAL_RELOC for avr32, m68k, nds32, and sparc Next question is - which of these platforms have toolchains which lack the abili

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-04 Thread Masahiro Yamada
Hi Michal, On Tue, 3 Feb 2015 10:11:39 +0100 Michal Simek wrote: > Hi Simon, > > On 02/03/2015 03:02 AM, Masahiro Yamada wrote: > > Hi. > > > > > > On Mon, 2 Feb 2015 16:57:15 -0700 > > Simon Glass wrote: > > > >> Hi Michal, > >> > >> On 2 February 2015 at 08:31, Michal Simek wrote: > >>>

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-03 Thread Simon Glass
Hi Michal, On 3 February 2015 at 02:11, Michal Simek wrote: > Hi Simon, > > On 02/03/2015 03:02 AM, Masahiro Yamada wrote: >> Hi. >> >> >> On Mon, 2 Feb 2015 16:57:15 -0700 >> Simon Glass wrote: >> >>> Hi Michal, >>> >>> On 2 February 2015 at 08:31, Michal Simek wrote: Targets with CONFIG_

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-03 Thread Michal Simek
Hi Simon, On 02/03/2015 03:02 AM, Masahiro Yamada wrote: > Hi. > > > On Mon, 2 Feb 2015 16:57:15 -0700 > Simon Glass wrote: > >> Hi Michal, >> >> On 2 February 2015 at 08:31, Michal Simek wrote: >>> Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA >>> relocation (mostly only GOT) wh

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-02 Thread Masahiro Yamada
Hi. On Mon, 2 Feb 2015 16:57:15 -0700 Simon Glass wrote: > Hi Michal, > > On 2 February 2015 at 08:31, Michal Simek wrote: > > Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA > > relocation (mostly only GOT) where functions aray are not > > updated. This patch is fixing function po

Re: [U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-02 Thread Simon Glass
Hi Michal, On 2 February 2015 at 08:31, Michal Simek wrote: > Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA > relocation (mostly only GOT) where functions aray are not > updated. This patch is fixing function pointers for DM core > and serial-uclass to ensure that relocated functions

[U-Boot] [RFC PATCH] dm: Add support for all targets which requires MANUAL_RELOC

2015-02-02 Thread Michal Simek
Targets with CONFIG_NEEDS_MANUAL_RELOC do not use REL/RELA relocation (mostly only GOT) where functions aray are not updated. This patch is fixing function pointers for DM core and serial-uclass to ensure that relocated functions are called. Signed-off-by: Michal Simek --- drivers/core/root.c