Skip to content
Snippets Groups Projects
  1. Dec 01, 2016
  2. Nov 29, 2015
  3. Nov 17, 2015
    • Stefan Roese's avatar
      tools/kwbimage.c: Fix generation of binary header · ea8b6877
      Stefan Roese authored
      
      The binary header ends with one lword, defining if another header
      follows this one. This additions 4 bytes need to be taken into
      account in the generation of the header size. And the complete
      4 bytes at the end of this binary header need to get cleared.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Cc: Luka Perkov <luka.perkov@sartura.hr>
      Cc: Kevin Smith <kevin.smith@elecsyscorp.com>
      ea8b6877
  4. Oct 21, 2015
  5. Oct 01, 2015
  6. Jul 24, 2015
  7. Jun 14, 2015
  8. Mar 05, 2015
  9. Feb 07, 2015
  10. Feb 06, 2015
  11. Jan 29, 2015
  12. Jan 11, 2015
    • Andreas Bießmann's avatar
      tools/kwbimage.c: fix parser error handling · f411b8f2
      Andreas Bießmann authored
      
      The two error checks for image_boot_mode_id and image_nand_ecc_mode_id where
      wrong and would never fail, fix that!
      
      This was detected by Apple's clang compiler:
      ---8<---
        HOSTCC  tools/kwbimage.o
      tools/kwbimage.c:553:20: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                      if (el->bootfrom < 0) {
                          ~~~~~~~~~~~~ ^ ~
      tools/kwbimage.c:571:23: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
                      if (el->nandeccmode < 0) {
                          ~~~~~~~~~~~~~~~ ^ ~
      2 warnings generated.
      --->8---
      
      Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
      Acked-By: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
      f411b8f2
  13. Jan 10, 2015
  14. Nov 04, 2014
  15. Oct 30, 2014
    • Stefan Roese's avatar
      tools/kwbimage: Fix compilation warning · 934a529f
      Stefan Roese authored
      
      This patch fixes a compilation warning of kwbimage.c:
      
      tools/kwbimage.c: In function ‘kwbimage_set_header’:
      tools/kwbimage.c:784:8: warning: ‘headersz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
        memcpy(ptr, image, headersz);
              ^
      Instead of using multiple if statements, use a switch statement with
      a default entry. And return with error if an unsupported version
      is configured in the cfg file.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Acked-By: default avatarWolfgang Denk <wd@denx.de>
      934a529f
    • Andreas Bießmann's avatar
      tools/kwbimage.c: fix build on darwin · e5f1a586
      Andreas Bießmann authored
      
      kwbimage uses get_current_dir_name(3) which is a gnu extension and not
      available on darwin host. Fix this by converting to portable getcwd(3)
      function.
      
      This patch fixes the following error:
      ---8<---
        HOSTCC  tools/kwbimage.o
      tools/kwbimage.c:399:16: warning: implicit declaration of function 'get_current_dir_name' is invalid in C99 [-Wimplicit-function-declaration]
                              char *cwd = get_current_dir_name();
                                          ^
      tools/kwbimage.c:399:10: warning: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
                              char *cwd = get_current_dir_name();
                                    ^     ~~~~~~~~~~~~~~~~~~~~~~
      2 warnings generated.
      ...
      Undefined symbols for architecture x86_64:
        "_get_current_dir_name", referenced from:
            _image_headersz_v1 in kwbimage.o
      ld: symbol(s) not found for architecture x86_64
      --->8---
      
      Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
      Cc: Stefan Roese <sr@denx.de>
      Acked-by: default avatarStefan Roese <sr@denx.de>
      [agust: fixed getcwd() return warning]
      Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
      e5f1a586
  16. Oct 23, 2014
    • Stefan Roese's avatar
      tools: kwbimage: Add image version 1 support for Armada XP / 370 · 4acd2d24
      Stefan Roese authored
      
      This patch integrates the Barebox version of this kwbimage.c file into
      U-Boot. As this version supports the image version 1 type for the
      Armada XP / 370 SoCs.
      
      It was easier to integrate the existing and known to be working Barebox
      source than to update the current U-Boot version to support this
      v1 image header format. Now all Marvell MVEBU SoCs are supported:
      
      Image type 0: Kirkwood & Dove
      Image type 1: Armada 370 & Armada XP
      
      Please note that the current v1 support has this restuction (same as
      has Barebox version):
      
      Not implemented: support for the register headers and secure headers
      in v1 images
      
      Tested on Marvell DB-78460-BP eval board.
      
      Signed-off-by: default avatarStefan Roese <sr@denx.de>
      Tested-by: default avatarLuka Perkov <luka@openwrt.org>
      4acd2d24
  17. Dec 13, 2013
    • Guilherme Maciel Ferreira's avatar
      tools: moved code common to all image tools to a separated module. · f86ed6a8
      Guilherme Maciel Ferreira authored
      
      In order to avoid duplicating code and keep only one point of modification,
      the functions, structs and defines useful for "dumpimage" were moved from
      "mkimage" to a common module called "imagetool".
      
      This modification also weakens the coupling between image types (FIT, IMX, MXS,
      and so on) and image tools (mkimage and dumpimage). Any tool may initialize the
      "imagetool" through register_image_tool() function, while the image types
      register themselves within an image tool using the register_image_type()
      function:
      
                                                            +---------------+
                                                     +------|   fit_image   |
       +--------------+          +-----------+       |      +---------------+
       |    mkimage   |--------> |           | <-----+
       +--------------+          |           |              +---------------+
                                 | imagetool | <------------|    imximage   |
       +--------------+          |           |              +---------------+
       |  dumpimage   |--------> |           | <-----+
       +--------------+          +-----------+       |      +---------------+
                                                     +------| default_image |
                                                            +---------------+
      
                register_image_tool()           register_image_type()
      
      Also, the struct "mkimage_params" was renamed to "image_tool_params" to make
      clear its general purpose.
      
      Signed-off-by: default avatarGuilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      f86ed6a8
  18. Aug 16, 2013
  19. Jul 24, 2013
  20. May 12, 2011
  21. Jan 18, 2011
  22. Oct 03, 2009
  23. Sep 15, 2009
  24. Sep 11, 2009
  25. Sep 10, 2009
Loading