1. 15 Sep, 2021 17 commits
  2. 14 Sep, 2021 9 commits
    • Tom Rini's avatar
      Prepare v2021.10-rc4 · bb92678c
      Tom Rini authored
      
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      bb92678c
    • Tom Rini's avatar
      configs: Resync with savedefconfig · e3e2c643
      Tom Rini authored
      
      
      Rsync all defconfig files using moveconfig.py
      Signed-off-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      e3e2c643
    • Alexandru Gagniuc's avatar
      image: Avoid erroneous double byte-swap in CRC value · 1ac7580a
      Alexandru Gagniuc authored
      The hash algorithm selection was streamlined in commit 92055e13
      ("image: Drop if/elseif hash selection in calculate_hash()"). Said
      commit kept the call to cpu_to_uimage() to convert the CRC to big
      endian format.
      
      This would have been correct when calling crc32_wd(). However, the
      ->hash_func_ws member of crc32 points to crc32_wd_buf(), which already
      converts the CRC to big endian. On a little endian host, doing both
      conversions results in a little-endian CRC. This is incorrect.
      
      To remedy this, simply drop the call to cpu_to_uimage(), thus only
      doing the byte-order conversion once.
      
      Fixes: 92055e13
      
       ("image: Drop if/elseif hash selection in
             calculate_hash()")
      Tested-by: Tom Rini's avatarTom Rini <trini@konsulko.com>
      Signed-off-by: default avatarAlexandru Gagniuc <mr.nuke.me@gmail.com>
      1ac7580a
    • Tom Rini's avatar
      Merge branch '2021-09-14-assorted-fixes' · c6eac912
      Tom Rini authored
      - Assorted bugfixes
      c6eac912
    • Alexandru Gagniuc's avatar
      image: rsa: Move padding_algos to linker lists · de41f0ee
      Alexandru Gagniuc authored
      We are not guaranteed to have the padding_pkcs_15_verify symbol since
      commit 92c960bc ("lib: rsa: Remove #ifdefs from rsa.h"), and
      commit 61416fe9 ("Kconfig: FIT_SIGNATURE should not select RSA_VERIFY")
      
      The padding_algos only make sense with RSA verification, which can now
      be disabled in lieu of ECDSA. In fact this will lead to build failures
      because of the missing symbol mentioned earlier.
      
      To resolve this, move the padding_algos to a linker list, with
      declarations moved to rsa_verify.c. This is consistent with commit
      6909edb4
      
       ("image: rsa: Move verification algorithm to a linker list")
      
      One could argue that the added #ifdef USE_HOSTCC is ugly, and should
      be hidden within the U_BOOT_PADDING_ALGO() macro. However, this would
      be inconsistent with the "cryptos" list. This logic for was not
      previously explored:
      
      Without knowledge of the U_BOOT_PADDING_ALGO() macro, its use is
      similar to something being declared. However, should #ifndef
      USE_HOSTCC be part of the macro, it would not be obvious that it
      behaves differently on host code and target code. Having the #ifndef
      outside the macro makes this obvious.
      
      Also, the #ifdef is not always necessary. For example ecda-verify
      makes use of U_BOOT_CRYPTO_ALGO() without any accompanying #ifdefs.
      The fundamental issue is a lack of separation of host and target code
      in rsa_verify. Therefore, the declaration of a padding algo with the
      external #ifdef is more readable and consistent.
      Signed-off-by: default avatarAlexandru Gagniuc <mr.nuke.me@gmail.com>
      de41f0ee
    • Yuan Fang's avatar
      pinctrl: fix typo · 423e324d
      Yuan Fang authored
      
      
      fix typo in pinctrl Kconfig file to avoid git commit failure on
      some commit hooks check.
      Signed-off-by: default avatarYuan Fang <fangyuanseu@gmail.com>
      423e324d
    • Oleksandr Suvorov's avatar
      lib: fix typos in Kconfig · 5145bc73
      Oleksandr Suvorov authored
      There are trivial typos in the Kconfig file. Fixed them.
      Also, fixed grammar in the descriptions with typos.
      
      Fixes: d56b4b19 ("configs: Migrate RBTREE, LZO, CMD_MTDPARTS, CMD_UBI and CMD_UBIFS")
      Fixes: 7264f292
      
       ("spl: fit: Eanble GZIP support for image decompression")
      Signed-off-by: default avatarOleksandr Suvorov <oleksandr.suvorov@foundries.io>
      Reviewed-by: Bin Meng's avatarBin Meng <bmeng.cn@gmail.com>
      5145bc73
    • Heinrich Schuchardt's avatar
      lib/rsa: don't use NULL as key_id · d607dfd8
      Heinrich Schuchardt authored
      If keydir is not provided but name is we want to use name as key_id.
      
      But with the current coding name is only used on its own if it is NULL
      and keydir is provided which never occurs.
      
      Fixes: 824ee745
      
       ("lib/rsa: Use the 'keyfile' argument from mkimage")
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      d607dfd8
    • Tom Rini's avatar
      Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi · 5c257573
      Tom Rini authored
      - a fix for U-Boot 2021.10 to bring back MMC boot on older boards.
      5c257573
  3. 13 Sep, 2021 12 commits
  4. 11 Sep, 2021 2 commits