Skip to content
Snippets Groups Projects
  1. Dec 15, 2019
  2. Oct 08, 2019
  3. May 08, 2019
  4. Jan 27, 2019
    • Tom Rini's avatar
      linker: Modify linker scripts to be more generic · 2f41ade7
      Tom Rini authored
      
      Make use of "IMAGE_MAX_SIZE" and "IMAGE_TEXT_BASE" rather than
      CONFIG_SPL_MAX_SIZE and CONFIG_SPL_TEXT_BASE.  This lets us re-use the
      same script for both SPL and TPL.  Add logic to scripts/Makefile.spl to
      pass in the right value when preprocessing the script.
      
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Fabio Estevam <fabio.estevam@nxp.com>
      Cc: Jagan Teki <jagan@openedev.com>
      Cc: Maxime Ripard <maxime.ripard@bootlin.com>
      Cc: Andreas Bießmann <andreas@biessmann.org>
      Cc: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Cc: York Sun <york.sun@nxp.com>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Adam Ford <aford173@gmail.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Tested-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
      Tested-by: Adam Ford <aford173@gmail.com> #da850evm & omap3_logic_somlv
      Reviewed-by: default avatarSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
      2f41ade7
  5. May 07, 2018
    • Tom Rini's avatar
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini authored
      
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      83d290c5
  6. Feb 06, 2017
  7. Oct 19, 2016
  8. Mar 22, 2016
  9. Nov 25, 2014
  10. Jul 24, 2013
  11. May 13, 2013
  12. Mar 15, 2013
  13. Mar 12, 2013
    • Albert ARIBAUD's avatar
      Refactor linker-generated arrays · ef123c52
      Albert ARIBAUD authored
      
      Refactor linker-generated array code so that symbols
      which were previously linker-generated are now compiler-
      generated. This causes relocation records of type
      R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
      code which uses LGA able to run before relocation as
      well as after.
      
      Note: this affects more than ARM targets, as linker-
      lists span possibly all target architectures, notably
      PowerPC.
      
      Conflicts:
      	arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
      	arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
      	arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
      	board/ait/cam_enc_4xx/u-boot-spl.lds
      	board/davinci/da8xxevm/u-boot-spl-da850evm.lds
      	board/davinci/da8xxevm/u-boot-spl-hawk.lds
      	board/vpac270/u-boot-spl.lds
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      ef123c52
  14. Mar 04, 2013
  15. Feb 15, 2013
  16. Nov 28, 2012
  17. Oct 22, 2012
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Add .u_boot_list into all linker files · 55675142
      Marek Vasut authored
      
      Add section for the linker-generated lists into all possible linker
      files, so that everyone can easily use these lists. This is mostly
      a mechanical adjustment.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      55675142
  18. Aug 04, 2011
  19. Apr 13, 2011
  20. Feb 12, 2011
  21. Oct 18, 2010
  22. Oct 07, 2010
  23. May 05, 2010
    • Graeme Russ's avatar
      x86: Add RAM bootstrap functionality · 077e1958
      Graeme Russ authored
      
      Add a parameter to the 32-bit entry to indicate if entry is from Real
      Mode or not. If entry is from Real Mode, execute the destructive 'sizer'
      routine to determine memory size as we are booting cold and running in
      Flash. If not entering from Real Mode, we are executing a U-Boot image
      from RAM and therefore the memory size is already known (and running
      'sizer' will destroy the running image)
      
      There are now two 32-bit entry points. The first is the 'in RAM' entry
      point which exists at the start of the U-Boot binary image. As such,
      you can load u-boot.bin in RAM and jump directly to the load address
      without needing to calculate any offsets. The second entry point is
      used by the real-to-protected mode switch
      
      This patch also changes TEXT_BASE to 0x6000000 (in RAM). You can load
      the resulting image at 0x6000000 and simple go 0x6000000 from the u-boot
      prompt
      
      Hopefully a later patch will completely elliminate any dependency on
      TEXT_BASE like a relocatable linux kernel (perfect world)
      
      Signed-off-by: default avatarGraeme Russ <graeme.russ@gmail.com>
      077e1958
  24. Dec 05, 2009
  25. 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
  26. Jan 24, 2009
  27. Nov 18, 2008
  28. May 20, 2008
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      53677ef1
Loading