12 Apr, 2013

1 commit


20 May, 2011

1 commit


13 May, 2011

2 commits

  • When your emulator is connected at reset (or is used to load u-boot)
    it is possible to get the relocation address from the gd->relocaddr
    since gd is always in r8 (on ARM) it is addressable before the
    gdb has remapped symbols.

    Document this alternate method in-line with the original method
    written by Heiko Schocher.

    Signed-off-by: Ben Gardiner
    CC: Heiko Schocher
    CC: Wolfgang Denk
    Acked-by: Heiko Schocher

    Ben Gardiner
     
  • The bdinfo command prints the relocaddr on ARM as it does
    on PPC.

    Update the debugging instructions for arm relocation to
    reflect this fact rather than requiring that the user
    rebuild the u-boot image using -DDEBUG.

    Signed-off-by: Ben Gardiner
    CC: Wolfgang Denk
    Acked-by: Heiko Schocher

    Ben Gardiner
     

30 Oct, 2010

2 commits

  • When this define was introduced, the idea was to provide a soft
    migration path for ARM boards to get adapted to the new relocation
    support. However, other recent changes led to a different
    implementation (ELF relocation), where this no longer works. By now
    CONFIG_SYS_ARM_WITHOUT_RELOC does not only not help any more, but it
    actually hurts because it obfuscates the actual code by sprinkling it
    with lots of dead and non-working debris.

    So let's make a clean cut and drop CONFIG_SYS_ARM_WITHOUT_RELOC.

    Signed-off-by: Wolfgang Denk
    Tested-by: Heiko Schocher
    Tested-by: Reinhard Meyer

    Wolfgang Denk
     
  • By now, the majority of architectures have working relocation
    support, so the few remaining architectures have become exceptions.
    To make this more obvious, we make working relocation now the default
    case, and flag the remaining cases with CONFIG_NEEDS_MANUAL_RELOC.

    Signed-off-by: Wolfgang Denk
    Tested-by: Heiko Schocher
    Tested-by: Reinhard Meyer

    Wolfgang Denk
     

28 Oct, 2010

1 commit


20 Oct, 2010

2 commits


19 Oct, 2010

2 commits

  • Commit 14d0a02a "Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE" missed a
    few places, especially for boards that were added inbetween. Fix the
    remaining issues.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • The change is currently needed to be able to remove the board
    configuration scripting from the top level Makefile and replace it by
    a simple, table driven script.

    Moving this configuration setting into the "CONFIG_*" name space is
    also desirable because it is needed if we ever should move forward to
    a Kconfig driven configuration system.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

13 Oct, 2010

1 commit

  • ELF relocation tables generated with linker option -pie can
    be used to fixup code and data in a single loop at relocation,
    removing the need for manual fixups anywhere else in the code.

    Signed-off-by: Albert Aribaud

    Albert Aribaud
     

20 Sep, 2010

2 commits

  • Change the implementation for arm926 to relocate the code to
    an arbitrary address in RAM.

    Adapt the TX25 (i.MX25), magnesium board to test the changes.

    On the tx25 board TEXT_BASE is set to the final relocation
    address to prevent one more copying of u-boot code
    when relocating. More info see:
    doc/README.arm-relocation

    da850 board:
    Tested-by: Ben Gardiner

    Portions of this work were supported by funding from
    the CE Linux Forum.

    Signed-off-by: Heiko Schocher
    Cc: Ben Gardiner

    Heiko Schocher
     
  • !! This breaks support for all arm boards !!

    To compile in old style, you must define
    CONFIG_SYS_ARM_WITHOUT_RELOC or you can compile
    with "CONFIG_SYS_ARM_WITHOUT_RELOC=1 ./MAKEALL board"

    !! This define will be removed soon, so convert your
    board to use relocation support

    Portions of this work were supported by funding from
    the CE Linux Forum.

    Signed-off-by: Heiko Schocher

    Fix boot from NAND for non-ARM systems
    Signed-off-by: Wolfgang Denk

    Heiko Schocher