Skip to content
Snippets Groups Projects
  1. Mar 27, 2011
  2. Mar 22, 2011
  3. Feb 21, 2011
  4. Jan 14, 2011
  5. Dec 17, 2010
  6. Dec 16, 2010
    • Scott Wood's avatar
      powerpc/nand spl: link libgcc · 97a85b22
      Scott Wood authored
      
      Recent GCC (4.4+) performs out-of-line epilogues in some cases, when
      optimizing for size.  It causes a link error for _restgpr_30_x (and similar)
      if libgcc is not linked.
      
      It actually increases size with very small binaries, due to the fixed size
      of the out-of-line code, and not having any functions that actually need to
      restore more than 2 or 3 registers.  But I don't see a way to turn it off,
      other than asking GCC to optimize for speed -- which may also increase
      size for some boards.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Acked-by: default avatarWolfgang Denk <wd@denx.de>
      97a85b22
    • Scott Wood's avatar
      powerpc/nand spl: link libgcc · 767589a7
      Scott Wood authored
      
      Recent GCC (4.4+) performs out-of-line epilogues in some cases, when
      optimizing for size.  It causes a link error for _restgpr_30_x (and similar)
      if libgcc is not linked.
      
      It actually increases size with very small binaries, due to the fixed size
      of the out-of-line code, and not having any functions that actually need to
      restore more than 2 or 3 registers.  But I don't see a way to turn it off,
      other than asking GCC to optimize for speed -- which may also increase
      size for some boards.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Acked-by: default avatarWolfgang Denk <wd@denx.de>
      767589a7
  7. Dec 09, 2010
    • Stefano Babic's avatar
      Davinci 8xx: Move common functions to share code · a2f2eb76
      Stefano Babic authored
      
      As more Davinci 8xx board can be added, move common code
      to be shared between boards.
      
       * rebased ontop of Sugosh's patches
       * moving the HAWKBOARD_KICK{0,1}_UNLOCK defines to
         arch/arm/include/asm/arch-davinci/davinci_misc.h from to
         arch/arm/include/asm/arch-davinci/da8xx_common.h
       * don't define dram functions in PRELOADER
       * move sync_env_enetaddr into existing EMAC ifdef
       * use misc.c in hawkboard nand_spl
      
      Signed-off-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
      a2f2eb76
    • Sughosh Ganu's avatar
      Add board support for hawkboard · dfddb5e6
      Sughosh Ganu authored
      
      The patch adds basic board support for TI's OMAP-L138 based
      Hawkboard. This board is pretty similar to the da850 EVM. Support for
      nand and network access is added in this version.
      
      The following bootup procedure is used.
      
      At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand
      controllers and copies the second stage bootloader(nand_spl) to
      RAM. The secondary bootloader then copies u-boot from a predefined
      location in the nand flash to the RAM, and passes control to the
      u-boot image.
      
      Three config options are supported
      * hawkboard_config - Used to create the u-boot.bin. Tftp the
       u-boot.bin image to the RAM from u-boot, and flash to the nand flash
       at address 0xe0000.
      
      * hawkboard_nand_config - Used to generate the secondary
       bootloader(nand_spl) image. This creates an elf file u-boot-spl
       under nand_spl/. Create an AIS signed image using this file, and
       flash it to the nand flash at address 0x20000. The ais file should
       fit in one block.
      
      * hawkboard_uart_config - This is same as the first image, but with
       the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS
      
      Signed-off-by: default avatarSughosh Ganu <urwithsughosh@gmail.com>
      Signed-off-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
      Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
      dfddb5e6
    • Sughosh Ganu's avatar
      Remove board_init_f function from nand_boot.c · 3258dcae
      Sughosh Ganu authored
      
      Remove the board_init_f function from nand_spl/nand_boot.c. This
       function is to be defined by all boards using the nand_spl
       functionality in their individual board directory.
      
       Currently this function was being used by the smdk6400 board. Added
       the board specific function definition.
      
      Signed-off-by: default avatarSughosh Ganu <urwithsughosh@gmail.com>
      Acked-by: default avatarScott Wood <scottwood@freescale.com>
      Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
      3258dcae
  8. Nov 30, 2010
    • Stefano Babic's avatar
      Davinci 8xx: Move common functions to share code · 6d1c649f
      Stefano Babic authored
      
      As more Davinci 8xx board can be added, move common code
      to be shared between boards.
      
       * rebased ontop of Sugosh's patches
       * moving the HAWKBOARD_KICK{0,1}_UNLOCK defines to
         arch/arm/include/asm/arch-davinci/davinci_misc.h from to
         arch/arm/include/asm/arch-davinci/da8xx_common.h
       * don't define dram functions in PRELOADER
       * move sync_env_enetaddr into existing EMAC ifdef
       * use misc.c in hawkboard nand_spl
      
      Signed-off-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
      6d1c649f
    • Sughosh Ganu's avatar
      Add board support for hawkboard · 48571ff0
      Sughosh Ganu authored
      
      The patch adds basic board support for TI's OMAP-L138 based
      Hawkboard. This board is pretty similar to the da850 EVM. Support for
      nand and network access is added in this version.
      
      The following bootup procedure is used.
      
      At reset, the Rom Boot Loader(RBL), initialises the ddr and the nand
      controllers and copies the second stage bootloader(nand_spl) to
      RAM. The secondary bootloader then copies u-boot from a predefined
      location in the nand flash to the RAM, and passes control to the
      u-boot image.
      
      Three config options are supported
      * hawkboard_config - Used to create the u-boot.bin. Tftp the
       u-boot.bin image to the RAM from u-boot, and flash to the nand flash
       at address 0xe0000.
      
      * hawkboard_nand_config - Used to generate the secondary
       bootloader(nand_spl) image. This creates an elf file u-boot-spl
       under nand_spl/. Create an AIS signed image using this file, and
       flash it to the nand flash at address 0x20000. The ais file should
       fit in one block.
      
      * hawkboard_uart_config - This is same as the first image, but with
       the TEXT_BASE as expected by the RBL(0xc1080000). Create the AIS
      
      Signed-off-by: default avatarSughosh Ganu <urwithsughosh@gmail.com>
      Signed-off-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
      Signed-off-by: default avatarSandeep Paulraj <s-paulraj@ti.com>
      48571ff0
  9. Nov 29, 2010
  10. Nov 27, 2010
    • 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
    • Scott Wood's avatar
      83xx: Fix NAND_SPL link address · f1c574d4
      Scott Wood authored
      
      Apply the same fix for 83xx as was done for 85xx in commit
      96196a1f.
      
      Without this, NAND SPLs are built with the text base intended for the main
      image, resulting in a broken, very large u-boot-nand.bin.
      
      The block of defines for NAND boot is moved closer to where
      CONFIG_SYS_TEXT_BASE is defined.  We can't directly use
      CONFIG_SYS_NAND_U_BOOT_DST in the definition of CONFIG_SYS_TEXT_BASE because
      autoconf.mk will include the literal text "CONFIG_SYS_NAND_U_BOOT_DST",
      but at least keep them close and point out that they're supposed to be
      the same.
      
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      f1c574d4
  11. Nov 17, 2010
  12. Nov 12, 2010
  13. Oct 29, 2010
    • Wolfgang Denk's avatar
      Drop support for CONFIG_SYS_ARM_WITHOUT_RELOC · a9aa3926
      Wolfgang Denk authored
      
      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: default avatarWolfgang Denk <wd@denx.de>
      Tested-by: default avatarHeiko Schocher <hs@denx.de>
      Tested-by: default avatarReinhard Meyer <u-boot@emk-elektronik.de>
      a9aa3926
  14. Oct 18, 2010
  15. Oct 13, 2010
  16. Sep 23, 2010
  17. Sep 19, 2010
    • Heiko Schocher's avatar
      ARM: implement relocation for ARM926 · ab86f72c
      Heiko Schocher authored
      
      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: default avatarBen Gardiner <bengardiner@nanometrics.ca>
      
      Portions of this work were supported by funding from
      the CE Linux Forum.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Cc: Ben Gardiner <bengardiner@nanometrics.ca>
      ab86f72c
    • Heiko Schocher's avatar
      ARM: add relocation support · f1d2b313
      Heiko Schocher authored
      
      !! 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: default avatarHeiko Schocher <hs@denx.de>
      
      Fix boot from NAND for non-ARM systems
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      f1d2b313
    • Heiko Schocher's avatar
      nand_boot_fsl_nfc.c: make "nfc" a "static const" pointer · 4fff329d
      Heiko Schocher authored
      
      With -fPIC enabled, this variable needs an entry in the GOT, which
      causes the image size to exceed 2 KiB which is the maximum allowed for
      some systems. Making it a "static const" avoids the GOT entry and thus
      reduces the image size to < 2 KiB.
      
      Portions of this work were supported by funding from
      the CE Linux Forum.
      
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Acked-by: default avatarScott Wood <scottwood@freescale.com>
      4fff329d
  18. Jul 16, 2010
    • Becky Bruce's avatar
      83xx/85xx/86xx: LBC register cleanup · f51cdaf1
      Becky Bruce authored
      
      Currently, 83xx, 86xx, and 85xx have a lot of duplicated code
      dedicated to defining and manipulating the LBC registers.  Merge
      this into a single spot.
      
      To do this, we have to decide on a common name for the data structure
      that holds the lbc registers - it will now be known as fsl_lbc_t, and we
      adopt a common name for the immap layouts that include the lbc - this was
      previously known as either im_lbc or lbus; use the former.
      
      In addition, create accessors for the BR/OR regs that use in/out_be32
      and use those instead of the mismash of access methods currently in play.
      
      I have done a successful ppc build all and tested a board or two from
      each processor family.
      
      Signed-off-by: default avatarBecky Bruce <beckyb@kernel.crashing.org>
      Acked-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      f51cdaf1
  19. Apr 21, 2010
  20. Apr 13, 2010
  21. Mar 07, 2010
  22. Mar 02, 2010
    • Kim Phillips's avatar
      mpc83xx: fix out-of-tree mpc8315 nand build · fe389da6
      Kim Phillips authored
      
      commit 2e95004d "mpc83xx: Add NAND boot support
      for MPC8315E-RDB boards" symlinked nand_spl/board/freescale/mpc8315erdb to
      mpc8313erdb in order to not duplicate code.
      
      Since the main makefile builds nand_spl/board/$(BOARDDIR) (which makes sense),
      and the board Makefile and linker script are the only two necessary files
      to enable out-of-tree building, and other boards have duplicated nand makefiles
      (e.g. 8536ds & 8569mds), it only seems prudent to copy these two files in the
      name of the 8315 too.
      
      Signed-off-by: default avatarKim Phillips <kim.phillips@freescale.com>
      Cc: Anton Vorontsov <avorontsov@ru.mvista.com>
      Cc: Wolfgang Denk <wd@denx.de>
      fe389da6
  23. Jan 27, 2010
  24. Nov 05, 2009
  25. Oct 27, 2009
Loading