Skip to content
Snippets Groups Projects
  1. Dec 16, 2016
  2. Dec 14, 2016
  3. Dec 12, 2016
  4. Dec 05, 2016
  5. Dec 01, 2016
  6. Nov 30, 2016
  7. Nov 28, 2016
    • Rafał Miłecki's avatar
      firmware-utils: replace md5 code with Alexander Peslyak's implementation · cb7ab730
      Rafał Miłecki authored
      
      Our current implementation is pretty old and uses some pre-standard/old
      ANSI C style that triggers warnings like:
      warning: call to function 'MD5_Init' without a real prototype [-Wunprototyped-calls]
      
      This is caused by declarations specified in a following way:
      src/md5.h:60:6: note: 'MD5_Init' was declared here
       void MD5_Init ();
      
      Having these warnings makes it harded to notice real problems. We could
      try hiding them but it makes more sense to just use a cleaner code.
      Another tiny gain from this switch is slightly reduced binary size, on
      x86_64 tplink-safeloader's size 48104 became 48003.
      
      The new code is public domain, uses "heavily cut-down BSD license".
      
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      cb7ab730
  8. Nov 26, 2016
    • Florian Fainelli's avatar
      firmware-utils: Fix build failure in mkmerakifw.c FS#298 · 97eff5cb
      Florian Fainelli authored
      
      Earlier compilers such as GCC 4 do not like anynomous unions, make it a named
      union "u", and update the code where relevant.
      
      Fixes FS#298
      Fixes: a72e1692 ("firmware-utils: Add support for the Cisco Meraki MX60/MX60W")
      Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      97eff5cb
    • Hannu Nyman's avatar
      2c05fd7e
    • Hannu Nyman's avatar
      tools/quilt: update to 0.65 · a22464b9
      Hannu Nyman authored
      
      User-visible changes since 0.64 are as follows:
      
        - Translation fixes
        - Project settings have priority
        - Reject binary files in patches
        - Fix a race condition in diff_file
        - Performance: Optimizations to the setup command
        - Performance: Optimizations to the bash completion script
        - Test suite: Improve the edit test case
        - Test suite: Make the symlink test more robust
        - Test suite: Test backup failure
        - Test suite: Test the header command with hard links
        - diff: Report diff failures
        - edit: Fix a corner case bug
        - mail: Fix the help text
        - push: Fix the synopsis
        - refresh: Do not remove symlinks
        - refresh: Break links to read-only patch files
        - refresh: Always preserve modification time
        - setup: Report failed look-ups in inspect-wrapper
        - quilt.el: Fix quilt-editable when patches are stored in subdirs
        - bash_completion: Handle spaces in file names
        - bash_completion: Update the list of commands
        - bash_completion: Add new command options
        - bash_completion: Fix handling of mail, new, push options
        - guards: Simplify the help text
        - guards: Include the file name also in the "Not found" case
        - guards: Add support for an external filelist in --check mode
        - guards: Report which config file has problem in --check mode
        - guards: Documentation update
        - guards: Clarify a user message
      
      Note to packagers: the Makefile was modified to take configure's
      --sysconfdir into account as other projects do. As a result, setting
      --prefix=/usr will no longer put the configuration files under /etc.
      You now need to explicitly pass --sysconfdir=/etc. If you don't,
      configuration files will go under /usr/etc, which is not what you want.
      This is somewhat less intuitive, but also more consistent with what
      other projects are doing.
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      a22464b9
    • Hannu Nyman's avatar
      tools/scons: update to 2.5.1 · a6e790b2
      Hannu Nyman authored
      
      RELEASE 2.5.1 - Mon, 03 Nov 2016 13:37:42 -0400
          - Add scons-configure-cache.py to packaging. It was omitted
          - Use memoization to optimize PATH evaluation across
            all dependencies per node.
      
      Signed-off-by: default avatarHannu Nyman <hannu.nyman@iki.fi>
      a6e790b2
  9. Nov 21, 2016
    • Chris Blake's avatar
      firmware-utils: Add support for the Cisco Meraki MX60/MX60W · a72e1692
      Chris Blake authored
      
      This patch adds header support for the Cisco Meraki MX60/MX60W, which
      are a part of the apm821xx target. Some structure changes were needed
      due to the fact this device uses U-Boot (unlike other devices in
      mkmerakifw.c) which uses a different header structure to define the load
      offsets for the image.
      
      A thanks to Christian for helping implement this properly.
      
      Cc: Christian Lamparter <chunkeey@gmail.com>
      
      Signed-off-by: default avatarChris Blake <chrisrblake93@gmail.com>
      a72e1692
  10. Nov 20, 2016
    • Rafał Miłecki's avatar
      firmware-utils: tplink-safeloader: keep per-device info on trailing char · 0d3be662
      Rafał Miłecki authored
      
      Recent refactoring introduced a regression. It ignored second argument
      of make_support_list function which was originally true for C2600. The
      new generic build_image function always passes false.
      
      This patch allows specifying trailing char in a device specific info. It
      also switches Archer C9 to the \0 char to make it compliant with vendor
      images.
      
      I verified generated images to be binary identical to the ones that
      were created before whole refactoring.
      
      Reported-by: default avatarJo-Philipp Wich <jo@mein.io>
      Fixes: fd924d20 ("firmware-utils: tplink-safeloader: use one function for generating images")
      Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
      0d3be662
  11. Nov 19, 2016
  12. Nov 17, 2016
  13. Nov 16, 2016
  14. Oct 31, 2016
    • Alexandru Ardelean's avatar
      firmware-utils: fix compilation on MacOS X · 00d1e6c7
      Alexandru Ardelean authored
      
      Looking into /usr/include/stdlib.h, there's a `devname()` function defined
      under some #ifdef's which conflicts with the `static char *devname` definition
      in `src/mkwrggimg.c`.
      
      Defining `_ANSI_SOURCE` in the `src/mkwrggimg.c` file, omits that part of the
      header.
      
      Another more intrusive approach is to rename `devname` to something like
      `g_devname` in `src/mkwrggimg.c`. But I think the `_ANSI_SOURCE` define should
      be enough.
      
      Compilation error is:
      
          src/mkwrggimg.c:64:14: error: redefinition of 'devname' as different kind of symbol
          static char *devname;
                       ^
          /usr/include/stdlib.h:286:7: note: previous definition is here
          char    *devname(dev_t, mode_t);
                   ^
          src/mkwrggimg.c:147:12: error: non-object type 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') is not assignable
                                  devname = optarg;
                                  ~~~~~~~ ^
          src/mkwrggimg.c:192:6: warning: comparison of function 'devname' equal to a null pointer is always false [-Wtautological-pointer-compare]
                  if (devname == NULL) {
                      ^~~~~~~    ~~~~
          src/mkwrggimg.c:192:6: note: prefix with the address-of operator to silence this warning
                  if (devname == NULL) {
                      ^
                      &
          src/mkwrggimg.c:251:27: warning: incompatible pointer types passing 'char *(dev_t, mode_t)' (aka 'char *(int, unsigned short)') to parameter of type 'const char *' [-Wincompatible-pointer-types]
                  strncpy(header->devname, devname, sizeof(header->devname));
                                           ^~~~~~~
          /usr/include/secure/_string.h:119:34: note: expanded from macro 'strncpy'
            __builtin___strncpy_chk (dest, src, len, __darwin_obsz (dest))
      
      Signed-off-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>
      [Jo-Philipp Wich: slightly reformat commit message]
      Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
      00d1e6c7
  15. Oct 26, 2016
  16. Oct 18, 2016
  17. Oct 15, 2016
  18. Oct 12, 2016
  19. Oct 06, 2016
  20. Oct 05, 2016
  21. Oct 04, 2016
Loading