1. 13 12月, 2017 2 次提交
  2. 06 12月, 2017 1 次提交
    • P
      tools: omapimage: fix corner-case in byteswap path · c8e1ca3e
      Philipp Tomsich 提交于
      Since commit 2614a208 ("common: command: tempory buffer should
      have size of command line buf"), there have been consistent Travis CI
      failures on my builds (interestingly not for Tom, even though building
      the same commit id) due to a SEGV in building the byteswapped
      omapimage:
           	    arm: pcm051_rev3
           make[2]: *** [MLO.byteswap] Error 139
           	      	  		       ^^^ error code for a SEGV
      
      Turns out that the word-based byte-swapping loop in omapimage.c is to
      blame. With the loop condition
             while (swapped <= (sbuf->st_size / sizeof(uint32_t)))
      there had been one-too-many iterations for all file sizes divisible by
      the sizeof(uint32_t).  I.e. we had 1 iteration for 0 bytes (and also 1
      through 3 bytes) and 2 iterations at 4 bytes... clearly overshooting
      on 0 and 4 bytes.
      
      This commit fixes the calculation of an up-rounded word-count and
      makes sure to keep the zero-based loop-counter below the number of
      words to be processed.
      
      References: 2614a208 ("common: command: tempory buffer should have size of command line buf")
      Fixes: 79b9ebb7 ("omapimage: Add support for byteswapped SPI images")
      Signed-off-by: NPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
      Reviewed-by: NMartin Elshuber <martin.elshuber@theobroma-systems.com>
      c8e1ca3e
  3. 04 12月, 2017 1 次提交
  4. 30 11月, 2017 1 次提交
  5. 29 11月, 2017 1 次提交
  6. 28 11月, 2017 1 次提交
    • M
      tools: mkimage: Extend mkimage to also include pmufw · c85a6b79
      Michal Simek 提交于
      The patch is adding external pmufw "Platform Management Unit firmware"
      to boot.bin image. Boot.bin is a Xilinx format which bootrom is capable
      to read and boot the system. pmufw is copied to the header data section
      follows by u-boot-spl.bin. pmufw is consumed by PMU unit (Microblaze)
      and SPL runs on a53-0.
      
      This is generated command line when PMUFW_INIT_FILE is setup.
      
      ./tools/mkimage -T zynqmpimage -R ./"" -n
      ./"board/xilinx/zynqmp/pmufw.bin" -d spl/u-boot-spl.bin spl/boot.bin
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      c85a6b79
  7. 23 11月, 2017 20 次提交
  8. 22 11月, 2017 2 次提交
  9. 21 11月, 2017 1 次提交
  10. 17 11月, 2017 2 次提交
    • M
      tools: use files from scripts/dtc/libfdt where possible · b38ad663
      Masahiro Yamada 提交于
      Prior to this commit, tools/Makefile pulls all libfdt files from
      lib/libfdt.
      
      lib/libfdt/ and scripts/dtc/libfdt have the same copies for the
      followings 6 files:
        fdt.c fdt_addresses.c fdt_empty_tree.c fdt_overlay.c fdt_strerr.c
        fdt_sw.c
      
      This commit changes them to #include ones from scripts/dtc/libfdt.
      
      Unfortunately, U-Boot locally modified the following 3 files:
        fdt_ro.c fdt_wip.c fdt_rw.c
      
      I did not touch them in order to avoid unpredictable impact.
      
      The fdt_region.c is U-Boot own file.  This is also borrowed from
      lib/libfdt/.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      b38ad663
    • M
      pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile · 15b97f5c
      Masahiro Yamada 提交于
      The pylibfdt is used by dtoc (and, indirectly by binman), but there
      is no reason why it must be generated in the tools/ directory.
      
      Recently, U-Boot switched over to the bundled DTC, and the directory
      structure under scripts/dtc/ now mirrors the upstream DTC project.
      So, scripts/dtc/pylibfdt is the best location.
      
      I also rewrote the Makefile in a cleaner Kbuild style.
      
      The scripts from the upstream have been moved as follows:
      
        lib/libfdt/pylibfdt/setup.py -> scripts/dtc/pylibfdt/setup.py
        lib/libfdt/pylibfdt/libfdt.i -> scripts/dtc/pylibfdt/libfdt.i_shipped
      
      The .i_shipped is coped to .i during building because the .i must be
      located in the objtree when we build it out of tree.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      15b97f5c
  11. 06 11月, 2017 5 次提交
  12. 24 10月, 2017 1 次提交
  13. 16 10月, 2017 2 次提交