Skip to content
Snippets Groups Projects
  1. Oct 15, 2011
  2. Apr 29, 2011
    • Scott Wood's avatar
      Handle most LDSCRIPT setting centrally · 83b7e2a7
      Scott Wood authored
      
      Currently, some linker scripts are found by common code in config.mk.
      Some are found using CONFIG_SYS_LDSCRIPT, but the code for that is
      sometimes in arch config.mk and sometimes in board config.mk.  Some
      are found using an arch-specific rule for looking in CPUDIR, etc.
      
      Further, the powerpc config.mk rule relied on CONFIG_NAND_SPL
      when it really wanted CONFIG_NAND_U_BOOT -- which covered up the fact
      that not all NAND_U_BOOT builds actually wanted CPUDIR/u-boot-nand.lds.
      
      Replace all of this -- except for a handful of boards that are actually
      selecting a linker script in a unique way -- with centralized ldscript
      finding.
      
      If board code specifies LDSCRIPT, that will be used.
      Otherwise, if CONFIG_SYS_LDSCRIPT is specified, that will be used.
      
      If neither of these are specified, then the central config.mk will
      check for the existence of the following, in order:
      
      $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
      $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds (only if CONFIG_NAND_U_BOOT)
      $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
      $(TOPDIR)/$(CPUDIR)/u-boot.lds
      
      Some boards (sc3, cm5200, munices) provided their own u-boot.lds that
      were dead code, because they were overridden by a CPUDIR u-boot.lds under
      the old powerpc rules.  These boards' own u-boot.lds have bitrotted and
      no longer work -- these lds files have been removed.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Tested-by: default avatarGraeme Russ <graeme.russ@gmail.com>
      83b7e2a7
  3. Apr 08, 2011
  4. Mar 27, 2011
  5. Feb 08, 2011
  6. Nov 17, 2010
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      
      Signed-off-by: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  7. Oct 18, 2010
    • Wolfgang Denk's avatar
      Rename TEXT_BASE into CONFIG_SYS_TEXT_BASE · 14d0a02a
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      14d0a02a
  8. Jul 12, 2010
  9. May 28, 2010
  10. Apr 24, 2010
  11. Apr 16, 2010
  12. Apr 13, 2010
  13. Apr 02, 2010
  14. Oct 05, 2009
  15. Aug 25, 2009
  16. Mar 20, 2009
    • Trent Piepho's avatar
      Fix all linker script to handle all rodata sections · f62fb999
      Trent Piepho authored
      
      A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
      which needs to be added the the linker script.  Instead of just adding this
      one section, we use a wildcard ".rodata*" to get all rodata linker section
      gcc has now and might add in the future.
      
      However, '*(.rodata*)' by itself will result in sub-optimal section
      ordering.  The sections will be sorted by object file, which causes extra
      padding between the unaligned rodata.str.1.1 of one object file and the
      aligned rodata of the next object file.  This is easy to fix by using the
      SORT_BY_ALIGNMENT command.
      
      This patch has not be tested one most of the boards modified.  Some boards
      have a linker script that looks something like this:
      
      *(.text)
      . = ALIGN(16);
      *(.rodata)
      *(.rodata.str1.4)
      *(.eh_frame)
      
      I change this to:
      
      *(.text)
      . = ALIGN(16);
      *(.eh_frame)
      *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
      
      This means the start of rodata will no longer be 16 bytes aligned.
      However, the boundary between text and rodata/eh_frame is still aligned to
      16 bytes, which is what I think the real purpose of the ALIGN call is.
      
      Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
      f62fb999
  17. Oct 18, 2008
  18. Jul 02, 2008
  19. Jun 12, 2008
    • Becky Bruce's avatar
      Change initdram() return type to phys_size_t · 9973e3c6
      Becky Bruce authored
      
      This patch changes the return type of initdram() from long int to phys_size_t.
      This is required for a couple of reasons: long int limits the amount of dram
      to 2GB, and u-boot in general is moving over to phys_size_t to represent the
      size of physical memory.  phys_size_t is defined as an unsigned long on almost
      all current platforms.
      
      This patch *only* changes the return type of the initdram function (in
      include/common.h, as well as in each board's implementation of initdram).  It
      does not actually modify the code inside the function on any of the platforms;
      platforms which wish to support more than 2GB of DRAM will need to modify
      their initdram() function code.
      
      Build tested with MAKEALL for ppc, arm, mips, mips-el. Booted on powerpc
      MPC8641HPCN.
      
      Signed-off-by: default avatarBecky Bruce <becky.bruce@freescale.com>
      9973e3c6
  20. Jan 12, 2008
    • Wolfgang Denk's avatar
      Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections · 64134f01
      Wolfgang Denk authored
      
      With recent toolchain versions, some boards would not build because
      or errors like this one (here for ocotea board when building with
      ELDK 4.2 beta):
      ppc_4xx-ld: section .bootpg [fffff000 -> fffff23b] overlaps section .bss [fffee900 -> fffff8ab]
      
      For many boards, the .bss section is big enough that it wraps around
      at the end of the address space (0xFFFFFFFF), so the problem will not
      be visible unless you use a 64 bit tool chain for development. On
      some boards however, changes to the code size (due to different
      optimizations) we bail out with section overlaps like above.
      
      The fix is to add the NOLOAD attribute to the .bss and .sbss
      sections, telling the linker that .bss does not consume any space in
      the image.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      64134f01
  21. Jul 09, 2007
  22. Jul 03, 2007
  23. Oct 08, 2006
  24. Sep 01, 2006
    • Marian Balakowicz's avatar
      Add support for a saving build objects in a separate directory. · f9328639
      Marian Balakowicz authored
      Modifications are based on the linux kernel approach and
      support two use cases:
      
        1) Add O= to the make command line
        'make O=/tmp/build all'
      
        2) Set environement variable BUILD_DIR to point to the desired location
        'export BUILD_DIR=/tmp/build'
        'make'
      
      The second approach can also be used with a MAKEALL script
      'export BUILD_DIR=/tmp/build'
      './MAKEALL'
      
      Command line 'O=' setting overrides BUILD_DIR environent variable.
      
      When none of the above methods is used the local build is performed and
      the object files are placed in the source directory.
      f9328639
  25. Jun 08, 2006
  26. Apr 26, 2006
  27. Aug 31, 2005
  28. Aug 05, 2005
  29. May 19, 2004
  30. Feb 09, 2004
    • Wolfgang Denk's avatar
      Patches by Stephan Linz, 30 Jan 2004: · ec4c544b
      Wolfgang Denk authored
      1: - board/altera/common/flash.c:flash_erase():
           o allow interrupts befor get_timer() call
           o check-up each erased sector and avoid unexpected timeouts
         - board/altera/dk1c20/dk1s10.c:board_early_init_f():
           o enclose sevenseg_set() in cpp condition
         - remove the ASMI configuration for DK1S10_standard_32 (never present)
         - fix some typed in mistakes in the NIOS documentation
      2: - split DK1C20 configuration into several header files:
           o two new files for each NIOS CPU description
           o U-Boot related part is remaining in DK1C20.h
      3: - split DK1S10 configuration into several header files:
           o two new files for each NIOS CPU description
           o U-Boot related part is remaining in DK1S10.h
      4: - Add support for the Microtronix Linux Development Kit
           NIOS CPU configuration at the Altera Nios Development Kit,
           Stratix Edition (DK-1S10)
      5: - Add documentation for the Altera Nios Development Kit,
           Stratix Edition (DK-1S10)
      6: - Add support for the Nios Serial Peripharel Interface (SPI)
           (master only)
      7: - Add support for the common U-Boot SPI framework at
           RTC driver DS1306
      ec4c544b
  31. Feb 08, 2004
    • Wolfgang Denk's avatar
      * Patch by Yuli Barcohen, 26 Jan 2004: · 5653fc33
      Wolfgang Denk authored
        Allow bzip2 compression for small memory footprint boards
      
      * Patch by Brad Kemp, 21 Jan 2004:
        Add support for CFI flash driver for both the Intel and the AMD
        command sets.
      
      * Patch by Travis Sawyer, 20 Jan 2004:
        Fix pci bridge auto enumeration of sibling p2p bridges.
      
      * Patch by Tolunay Orkun, 12 Jan 2004:
        Add some delays as needed for Intel LXT971A PHY support
      
      * Patches by Stephan Linz, 09 Jan 2004:
        - avoid warning: unused variable `piop' in board/altera/common/sevenseg.c
        - make DK1C20 board configuration related to ASMI conform to
          documentation
      5653fc33
  32. Jan 20, 2004
    • Wolfgang Denk's avatar
      * The PS/2 mux on the BMS2003 board needs 450 ms after power on · c837dcb1
      Wolfgang Denk authored
        before we can access it; add delay in case we are faster (with no
        CF card inserted)
      
      * Cleanup of some init functions
      
      * Make sure SCC Ethernet is always stopped by the time we boot Linux
        to avoid Linux crashes by early packets coming in.
      
      * Accelerate flash accesses on LWMON board by using buffered writes
      c837dcb1
  33. Jan 03, 2004
    • Wolfgang Denk's avatar
      Patches by Stephan Linz, 11 Dec 2003: · c935d3bd
      Wolfgang Denk authored
      - more documentation for NIOS port
      - new struct nios_pio_t, struct nios_spi_t
      - Reconfiguration for NIOS Development Kit DK1C20:
        o move board related code from board/dk1c20
          to board/altera/dk1c20
        o create a new common source path board/altera/common
          and move generic flash access stuff into it
        o change/expand configuration file DK1C20.h
      - Add support for NIOS Development Kit DK1S10
      - Add status LED support for NIOS systems
      - Add dual 7-segment LED support for Altera NIOS DevKits
      c935d3bd
Loading