Skip to content
Snippets Groups Projects
  1. Nov 27, 2010
    • Wolfgang Denk's avatar
      86xx: Cleanup for partial linking and --gc-sections · 4e2894be
      Wolfgang Denk authored
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      4e2894be
    • Wolfgang Denk's avatar
      83xx: Cleanup for partial linking and --gc-sections · ff2311ab
      Wolfgang Denk authored
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Haiying Wang <r54964@freescale.com>
      ff2311ab
    • Wolfgang Denk's avatar
      ppc4xx: Cleanup for partial linking and --gc-sections · ee8028b7
      Wolfgang Denk authored
      
      This commit adapts 4xx boards for partial linking with --gc-sections.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Tirumala Marri <tmarri@apm.com>
      Cc: David Updegraff <dave@cray.com>
      Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
      Cc: Dirk Eibach <eibach@gdsys.de>
      Cc: Larry Johnson <lrj@acm.org>
      Cc: Peter De Schrijver <p2@mind.be>
      Cc: Niklaus Giger <niklaus.giger@netstal.com>
      Cc: Daniel Poirot <dan.poirot@windriver.com>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      ee8028b7
    • Wolfgang Denk's avatar
      POWERPC: enable --gc-sections and -ffunction-sections -fdata-sections · c08e5cf7
      Wolfgang Denk authored
      
      The switch from archive libraries to partial linking has introduced a
      number of problems, that are non-trivial to solve.  For example, it is
      no longer possible to include individual object files in the linker
      script as we did before for example in the case of boards with
      embedded environment to fill up the gap caused by the need to align
      the environment on flash erase block boundaries.
      
      The best (but unfortunately not easiest) approach to address this
      problem is to enable -ffunction-sections (and -fdata-sections) so
      we can again (and even in much finer granularity) place certain code
      where we want it.  When doing this step, it seems only consequent to
      also add --gc-sections which has the added benefit of reducing the
      memory footprint of the U-Boot image (both in flash and in RAM).
      
      Unfortunately, this requires changes to a lot of linker scripts.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Stefan Roese <sr@denx.de>
      Cc: Kim Phillips <kim.phillips@freescale.com>
      Cc: Andy Fleming <afleming@gmail.com>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      c08e5cf7
  2. Nov 26, 2010
  3. Nov 20, 2010
  4. Nov 19, 2010
  5. Nov 18, 2010
  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
    • Albert Aribaud's avatar
      ARM: fix linker file for newer ld support · aaeb0a89
      Albert Aribaud authored
      
      older ld emitted all ELF relocations in input sections named
      .rel.dyn, whereas newer ld uses names of the form .rel*. The
      linker script only collected .rel.dyn input sections. Rewrite
      to collect all .rel* input sections.
      
      Signed-off-by: default avatarAlbert Aribaud <albert.aribaud@free.fr>
      aaeb0a89
    • Heiko Schocher's avatar
      i2c, mpc5xxx: add multibus support · 00913379
      Heiko Schocher authored
      
      Tested on upcoming hydra (mpc5200 based) board.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      00913379
  7. Nov 14, 2010
  8. Nov 11, 2010
  9. Nov 04, 2010
  10. Nov 02, 2010
  11. Oct 30, 2010
  12. Oct 29, 2010
  13. Oct 28, 2010
    • Tanmay Upadhyay's avatar
      Kirkwood: bugfix: DRAM size initialization · 28e57108
      Tanmay Upadhyay authored
      
      If start of any DRAM bank is greater than total DDR size, remaining DDR banks' start address & size were left un-initialized in dram_init function. This could break other functions who uses array 'gd->bd->bi_dram'. Kirkwood network driver is one example. This also stops Linux kernel from booting.
      
      v2 - Set start address also to 0. Without this Linux kernel couldn't
           boot up
      
      Signed-off-by: default avatarTanmay Upadhyay <tanmay.upadhyay@einfochips.com>
      28e57108
    • Shawn Guo's avatar
      mx51evk: support new relocation scheme · 1ab027cb
      Shawn Guo authored
      
      This patch is to fix build breakage and support new relocation
      scheme for mx51evk.
      
      - Correct IRAM base address and add size definition
      
        The IRAM starts from 0x1FFE0000 on final revsion i.mx51 than
        0x1FFE8000 which is for older revision.
      
      - Include imx-regs.h in mx51evk.h
      
        Definitions like CSD0_BASE_ADDR and IRAM_BASE_ADDR can be
        referred to.
      
      - Define CONFIG_SYS_INIT_RAM_ADDR and CONFIG_SYS_INIT_RAM_SIZE
      
        They are used to define init RAM layout.
      
      - Remove comment for CONFIG_SYS_GBL_DATA_SIZE which has been
        buried by Wolfgang's commit below
      
        25ddd1fb: Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value
      
      Signed-off-by: default avatarShawn Guo <shawn.gsc@gmail.com>
      1ab027cb
    • Stefano Babic's avatar
      MX51: remove warning in clock.c · 9a004418
      Stefano Babic authored
      
      The patch removes the warning:
      
      clock.c:291: warning: initialization from incompatible pointer type
      
      after  constification of args[]
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      9a004418
    • Matthias Weisser's avatar
      imx25: Fix reset · 81129d07
      Matthias Weisser authored
      
      This patch fixes the reset command on imx25. The watchdog registers are 16
      bits in size and not 32. This patch also adds the service register codes as
      constants.
      
      Signed-off-by: default avatarMatthias Weisser <weisserm@arcor.de>
      81129d07
    • Jason Liu's avatar
      MX5:use common u-boot.lds of cpu layer · 95707aaa
      Jason Liu authored
      
      Remove u-boot.lds from mx5 and use the common u-boot.lds
      of cpu layer. This patch also fix the building errors:
      
      arch/arm/cpu/armv7/start.o: In function `_rel_dyn_start_ofs':
      arch/arm/cpu/armv7/start.S:283: undefined reference to `__rel_dyn_start'
      arch/arm/cpu/armv7/start.o: In function `_rel_dyn_end_ofs':
      arch/arm/cpu/armv7/start.S:283: undefined reference to `__rel_dyn_end'
      arch/arm/cpu/armv7/start.o: In function `_dynsym_start_ofs':
      arch/arm/cpu/armv7/start.S:283: undefined reference to `__dynsym_start'
      
      Signed-off-by: default avatarJason Liu <r64343@freescale.com>
      95707aaa
    • C Nauman's avatar
      Add generic support for samsung s3c2440 · d9abba82
      C Nauman authored
      
      This patch adds generic support for the Samsung s3c2440 processor.
      
      Global s3c24x0 changes to struct members converting from upper case to
      lower case.
      
      Signed-off-by: default avatarCraig Nauman <cnauman@diagraph.com>
      Cc: kevin.morfitt@fearnside-systems.co.uk
      Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
      d9abba82
    • Mike Frysinger's avatar
      Blackfin: config.mk: drop manual stripping of config vars · 73520939
      Mike Frysinger authored
      
      Now that the common code takes care of stripping away quotes and such
      from numeric options, we no longer need to do so ourselves.  So drop
      the custom code we have in the Blackfin config.mk.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      73520939
    • Mike Frysinger's avatar
      Blackfin: fix building after asm-offsets.h intro · 1fde3eb2
      Mike Frysinger authored
      
      Since some of the defines in our config.h use the generated defines, we
      need to include the generated header.  This fixes building of the Blackfin
      start.S file (where the stack is setup).
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      1fde3eb2
  14. Oct 27, 2010
  15. Oct 26, 2010
Loading