1. 01 Feb, 2017 1 commit
  2. 24 Jan, 2017 1 commit
  3. 20 Jan, 2017 1 commit
  4. 28 Nov, 2016 1 commit
    • Andre Przywara's avatar
      tools/Makefile: suppress "which swig" error output · d0fc6dc5
      Andre Przywara authored
      The Makefile in tools/ tries to find the "swig" utility by calling "which".
      If nothing is found in the path, some versions of which will print an error
      $ make clean
      which: no swig in (/usr/local/bin:/usr/bin:/bin)
      This does not apply to all version of "which", though:
      $ echo $0
      $ type which
      which is aliased to `type -path'
      $ which foo				<== this version is OK
      $ /usr/bin/which foo			<== this one is chatty
      /usr/bin/which: no foo in (/usr/local/bin:/usr/bin:/bin)
      $ sh					<== make uses /bin/sh
      sh-4.3$ which foo			<== no alias here
      which: no foo in (/usr/local/bin:/usr/bin:/bin)
      This error message is rather pointless in our case, since we just have
      this very check to care for this. So add stderr redirection to suppress
      the message.
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
  5. 13 Nov, 2016 1 commit
  6. 30 Oct, 2016 2 commits
  7. 06 Oct, 2016 1 commit
  8. 15 Jul, 2016 2 commits
  9. 11 Jul, 2016 1 commit
  10. 24 May, 2016 1 commit
  11. 22 Mar, 2016 1 commit
    • Tom Rini's avatar
      cmd: Fix license command · 8a7367ac
      Tom Rini authored
      The license command isn't usually built and has a few problems:
      - The rules to generate license.h haven't worked in a long time,
        re-write these based on the bmp_logo.h rules.
      - 'tok' is unused and the license text size has increased
      - bin2header.c wasn't grabbing unistd.h to know the prototype for
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
  12. 14 Mar, 2016 1 commit
  13. 24 Feb, 2016 1 commit
  14. 14 Jan, 2016 1 commit
    • Stefan Roese's avatar
      arm: mvebu: Move SoC selection (A38X vs AXP) into Kconfig · 81e33f4b
      Stefan Roese authored
      Until now, the SoC selection for the ARCH_MVEBU platforms has been done
      in the config header. Using CONFIG_ARMADA_XP in a non-clear way. As
      it needed to get selected for AXP and A38x based boards. This patch
      now changes this to move the SoC selection to Kconfig. And also
      uses CONFIG_ARCH_MVEBU as a common define for both AXP and A38x.
      This makes things a bit clearer - especially for new board additions.
      Additionally the defines CONFIG_SYS_MVEBU_DDR_AXP and
      CONFIG_SYS_MVEBU_DDR_A38X are replaced with the already available
      And CONFIG_DDR3 is removed, as its not referenced anywhere.
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
  15. 08 Jan, 2016 1 commit
  16. 14 Dec, 2015 1 commit
  17. 01 Dec, 2015 1 commit
  18. 19 Nov, 2015 1 commit
    • Nathan Rossi's avatar
      tools: zynqimage: Add Xilinx Zynq boot header generation to mkimage · 66eef1e7
      Nathan Rossi authored
      As with other platforms vendors love to create their own boot header
      formats. Xilinx is no different and for the Zynq platform/SoC there
      exists the "boot.bin" which is read by the platforms bootrom. This
      format is described to a useful extent within the Xilinx Zynq TRM.
      This implementation adds support for the 'zynqimage' to mkimage. The
      implementation only considers the most common boot header which is
      un-encrypted and packed directly after the boot header itself (no
      XIP, etc.). However this implementation does take into consideration the
      other fields of the header for image dumping use cases (vector table and
      register initialization).
      Signed-off-by: default avatarNathan Rossi <nathan@nathanrossi.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Tom Rini <trini@konsulko.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
  19. 03 Sep, 2015 2 commits
  20. 27 Jul, 2015 1 commit
  21. 24 Jul, 2015 1 commit
  22. 21 Jul, 2015 1 commit
    • Simon Glass's avatar
      fdt: Add fdtgrep tool · 1043d0a0
      Simon Glass authored
      This tool allows us to extract subsets of a device tree file. It is used by
      the SPL vuild, which needs to cut down the device tree size for use in
      limited memory.
      This tool was originally written for libfdt but it has not been accepted
      upstream, so for now, include it in U-Boot. Several utilfdt library
      functions been included inline here.
      If fdtgrep is eventually accepted in libfdt then we can bring that version
      of libfdt in here, and drop fdtgrep (requiring that fdtgrep is provided by
      the user).
      If it is not accepted then another approach would be to write a special
      tool for chopping down device tree files for SPL. While it would use the
      same libfdt support, it would be less code than fdtgrep.c because it would
      not have general-purpose functions.
      Another approach (which was used with v1 of this series) is to sprinkler all
      the device tree files with #ifdef. I don't like that idea.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
  23. 28 May, 2015 1 commit
  24. 10 Apr, 2015 1 commit
  25. 16 Feb, 2015 1 commit
    • Andreas Bießmann's avatar
      tools/imagetool: remove linker script · 1fddd7b6
      Andreas Bießmann authored
      Commit a93648d1 introduced linker generated
      lists for imagetool which is the base for some host tools (mkimage, dumpimage,
      et al.).  Unfortunately some host tool chains do not support the used type of
      linker scripts. Therefore this commit broke these host-tools for them, namely
      FreeBSD and Darwin (OS/X).
      This commit tries to fix this. In order to have a clean distinction between host
      and embedded code space we need to introduce our own linker generated list
      instead of re-using the available linker_lists.h provided functionality.  So we
      copy the implementation used in linux kernel script/mod/file2alias.c which has
      the very same problem (cause it is a host tool). This code also comes with an
      abstraction for Mach-O binary format used in Darwin systems.
      Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
      Cc: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
  26. 07 Feb, 2015 1 commit
  27. 30 Jan, 2015 2 commits
  28. 29 Jan, 2015 1 commit
  29. 19 Dec, 2014 1 commit
    • Simon Glass's avatar
      x86: ifdtool: Add support for early microcode access · 31eca697
      Simon Glass authored
      Some Intel CPUs use an 'FSP' binary blob which provides an inflexible
      means of starting up the CPU. One result is that microcode updates can only
      be done before RAM is available and therefore parsing of the device tree
      is impracticle.
      Worse, the addess of the microcode update must be stored in ROM since a
      pointer to its start address and size is passed to the 'FSP' blob. It is
      not possible to perform any calculations to obtain the address and size.
      To work around this, ifdtool is enhanced to work out the address and size of
      the first microcode update it finds in the supplied device tree. It then
      writes these into the correct place in the ROM. U-Boot can then start up
      the FSP correctly.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
  30. 21 Nov, 2014 1 commit
  31. 07 Nov, 2014 1 commit
    • Masahiro Yamada's avatar
      kbuild: sync top Makefile with Linux 3.18-rc1 · ffe29ebc
      Masahiro Yamada authored
      Since Linux 3.15, relative path feature and related fixes,
      cleanups have been merged to the top Makefile.
      The relative path feature looks stable enough, so let's import it
      to U-Boot along with various cleanups.
      Commits imported from Linux (some need adjustment) are:
      [1] commit 7e1c04779efd by Michal Marek
        kbuild: Use relative path for $(objtree)
      [2] commit 890676c65d69 by Michal Marek
        kbuild: Use relative path when building in the source tree
      [3] commit 9da0763bdd82 by Michal Marek
        kbuild: Use relative path when building in a subdir of the source tree
      [4] commit c2e28dc975ea by Michal Marek
        kbuild: Print the name of the build directory
      [5] commit 066b7ed95580 by Michal Marek
        kbuild: Do not print the build directory with make -s
      [6] commit 3f1d9a6cec01 by Michal Marek
        kbuild: make -s should be used with kernelrelease/kernelversion/image_name
      [7] commit 7ff525712acf by Masahiro Yamada
        kbuild: fake the "Entering directory ..." message more simply
      [8] commit 745a254322c8 by Masahiro Yamada
        kbuild: use $(Q) for sub-make target
      [9] commit aa55c8e2f7a3 by Masahiro Yamada
        kbuild: handle C=... and M=... after entering into build directory
      [10] commit ab7474ea5361 by Borislav Petkov
        Kbuild: Ignore GREP_OPTIONS env variable
      To use relative path feature, tools/Makefile and scripts/Makefile.autoconf
      must be tweaked.
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
  32. 23 Oct, 2014 1 commit
  33. 06 Oct, 2014 1 commit
    • Charles Manning's avatar
      tools: socfpga: Add socfpga preloader signing to mkimage · 832472a9
      Charles Manning authored
      Like many platforms, the Altera socfpga platform requires that the
      preloader be "signed" in a certain way or the built-in boot ROM will
      not boot the code.
      This change automatically creates an appropriately signed preloader
      from an SPL image.
      The signed image includes a CRC which must, of course, be generated
      with a CRC generator that the SoCFPGA boot ROM agrees with otherwise
      the boot ROM will reject the image.
      Unfortunately the CRC used in this boot ROM is not the same as the
      Adler CRC in lib/crc32.c. Indeed the Adler code is not technically a
      CRC but is more correctly described as a checksum.
      Thus, the appropriate CRC generator is added to lib/ as crc32_alt.c.
      Signed-off-by: default avatarCharles Manning <cdhmanning@gmail.com>
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Chin Liang See <clsee@altera.com>
      Cc: Dinh Nguyen <dinguyen@altera.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Tom Rini <trini@ti.com>
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Pavel Machek <pavel@denx.de>
      Acked-by: default avatarPavel Machek <pavel@denx.de>
      V2: - Zap unused constant
          - Explicitly print an error message in case of error
          - Rework the hdr_checksum() function to take the *header directly
            instead of a plan buffer pointer
  34. 30 Jul, 2014 1 commit
    • Masahiro Yamada's avatar
      kconfig: switch to Kconfig · 51148790
      Masahiro Yamada authored
      This commit enables Kconfig.
      Going forward, we use Kconfig for the board configuration.
      mkconfig will never be used. Nor will include/config.mk be generated.
      Kconfig must be adjusted for U-Boot because our situation is
      a little more complicated than Linux Kernel.
      We have to generate multiple boot images (Normal, SPL, TPL)
      from one source tree.
      Each image needs its own configuration input.
      Run "make <board>_defconfig" to do the board configuration.
      It will create the .config file and additionally spl/.config, tpl/.config
      if SPL, TPL is enabled, respectively.
      You can use "make config", "make menuconfig" etc. to create
      a new .config or modify the existing one.
      Use "make spl/config", "make spl/menuconfig" etc. for spl/.config
      and do likewise for tpl/.config file.
      The generic syntax of configuration targets for SPL, TPL is:
      Here, <target_image> is either 'spl' or 'tpl'
            <config_command> is 'config', 'menuconfig', 'xconfig', etc.
      When the configuration is done, run "make".
      (Or "make <board>_defconfig all" will do the configuration and build
      in one time.)
      For futher information of how Kconfig works in U-Boot,
      please read the comment block of scripts/multiconfig.py.
      By the way, there is another item worth remarking here:
      coexistence of Kconfig and board herder files.
      Prior to Kconfig, we used C headers to define a set of configs.
      We expect a very long term to migrate from C headers to Kconfig.
      Two different infractructure must coexist in the interim.
      In our former configuration scheme, include/autoconf.mk was generated
      for use in makefiles.
      It is still generated under include/, spl/include/, tpl/include/ directory
      for the Normal, SPL, TPL image, respectively.
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
  35. 23 Jun, 2014 1 commit
    • Heiko Schocher's avatar
      lib, fdt: move fdtdec_get_int() out of lib/fdtdec.c · b047d671
      Heiko Schocher authored
      move fdtdec_get_int() out of lib/fdtdec.c into lib/fdtdec_common.c
      as this function is also used, if CONFIG_OF_CONTROL is not
      used. Poped up on the ids8313 board using signed FIT images,
      and activating CONFIG_SYS_GENERIC_BOARD. Without this patch
      it shows on boot:
      No valid FDT found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For sandbox, use -d <file.dtb>
      With this patch, it boots again with CONFIG_SYS_GENERIC_BOARD
      Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@ti.com>
  36. 19 Jun, 2014 1 commit
    • Jeroen Hofstee's avatar
      includes: move openssl headers to include/u-boot · 2b9912e6
      Jeroen Hofstee authored
      commit 18b06652 "tools: include u-boot version of sha256.h"
      unconditionally forced the sha256.h from u-boot to be used
      for tools instead of the host version. This is fragile though
      as it will also include the host version. Therefore move it
      to include/u-boot to join u-boot/md5.h etc which were renamed
      for the same reason.
      cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>