1. 01 9月, 2020 10 次提交
  2. 31 8月, 2020 19 次提交
  3. 28 8月, 2020 2 次提交
    • T
      Merge branch '2020-08-27-misc-fixes' · 9f04a634
      Tom Rini 提交于
      - Fix for gd->ram_top and bootm_size calculations
      - Assorted Kconfig entry cleanups / fixes.
      - Make checkpatch.pl error on fdt_high/initrd_high=0xffffffff
      - Resync scripts/setlocalversion
      - Other minor bugfixes
      9f04a634
    • R
      scripts/setlocalversion: sync with linux 5.8 · 2ed1b242
      Rasmus Villemoes 提交于
      The linux changes since v3.16 are
      
      78283edf2c01 kbuild: setlocalversion: print error to STDERR
      b24413180f56 License cleanup: add SPDX GPL-2.0 license identifier to files with no license
      6147b1cf1965 scripts/setlocalversion: git: Make -dirty check more robust
      8ef14c2c41d9 Revert "scripts/setlocalversion: git: Make -dirty check more robust"
      ff64dd485730 scripts/setlocalversion: Improve -dirty check with git-status --no-optional-locks
      7a82e3fa28f1 scripts/setlocalversion: clear local variable to make it work for sh
      991b78fbd223 scripts: setlocalversion: fix a bashism
      3c96bdd0ebfa scripts: setlocalversion: replace backquote to dollar parenthesis
      
      and it's ff64dd485730 that is the motivation for this sync. It fixes
      false positive "-dirty" added to the version string when building with
      Yocto
      (https://lists.openembedded.org/g/openembedded-core/message/137702).
      
      There has been one U-Boot specific patch since this was synced with
      linux 3.16: 81630a3b (scripts: setlocalversion: safely extract
      variables from auto.conf using awk).  Keep these changes applied.
      Signed-off-by: NRasmus Villemoes <rasmus.villemoes@prevas.dk>
      [trini: Re-add 81630a3b and reword message]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      2ed1b242
  4. 27 8月, 2020 9 次提交
    • B
      image: don't exceed gd->ram_top in bootm_size · 7f98b4ee
      Baruch Siach 提交于
      When board_get_usable_ram_top() limits gd->ram_top, env_get_bootm_size()
      must not exceed that limit. Otherwise, boot_relocate_fdt() might put fdt
      out of the allowed RAM range.
      
      The similar commit 8ce1f10c ("ARM: bootm: take into account
      gd->ram_top") exposed this bug.
      
      This fixes boot on Armada 8040 based Clearfog GT-8K where ram_top is set
      to 0x80000000 (2GB), but bi_dram[0].size might be up to 0xc0000000
      (3GB). Note the relocated fdt address (0xbfff4000) in the console output
      listed below:
      
      Found /extlinux/extlinux.conf
      Retrieving file: /extlinux/extlinux.conf
      62 bytes read in 21 ms (2 KiB/s)
      1:	linux
      Retrieving file: /extlinux/Image
      13740544 bytes read in 1266 ms (10.4 MiB/s)
      Retrieving file: /extlinux/armada-8040-clearfog-gt-8k.dtb
      33368 bytes read in 31 ms (1 MiB/s)
         Booting using the fdt blob at 0x4f00000
         Loading Device Tree to 00000000bfff4000, end 00000000bffff257 ... "Synchronous Abort" handler, esr 0x96000045
      elr: 000000000006e1cc lr : 0000000000068fd8 (reloc)
      elr: 000000007ffa91cc lr : 000000007ffa3fd8
      x0 : ffffffffffffffff x1 : 00000000bfffc258
      x2 : 0000000000000000 x3 : ffffffffffff7da7
      x4 : 0000000004f08258 x5 : 00000000bfff4000
      x6 : 00000000bfff4000 x7 : 000000000000000f
      x8 : 000000007fb23bf8 x9 : 0000000000000008
      x10: 00000000bffff257 x11: 00000000bffff257
      x12: 0000000000000000 x13: fffffffffffff000
      x14: 00000000bfff4000 x15: 0000000000000021
      x16: 000000007ff7bc38 x17: 0000000000000000
      x18: 000000007fb2add0 x19: 00000000bfff4000
      x20: 0000000004f00000 x21: 000000000000b258
      x22: 0000000058820000 x23: 0000000000000010
      x24: 000000007ffe3c40 x25: 000000007fb23cb8
      x26: 00000000c0000000 x27: 0000000000000000
      x28: 000000007fc3fd50 x29: 000000007fb23bd0
      
      Code: 54000061 aa0603e0 d65f03c0 38606882 (38206822)
      Resetting CPU ...
      
      Thanks to Patrice CHOTARD who directed me to the right way.
      Signed-off-by: NBaruch Siach <baruch@tkos.co.il>
      7f98b4ee
    • M
      cmd: mem: Remove already removed CONFIG_SYS_MEMTEST_SCRATCH · 0b2b9b85
      Michal Simek 提交于
      The commit e519f03a ("cmd: mem: Remove CONFIG_SYS_MEMTEST_SCRATCH
      mapping") removed CONFIG_SYS_MEMTEST_SCRATCH but commit 09140113
      ("command: Remove the cmd_tbl_t typedef") has added it back. That's why
      symbol is still in the tree that's why remove it again.
      
      Fixes: 09140113 ("command: Remove the cmd_tbl_t typedef
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      0b2b9b85
    • H
      lib/rsa: correct check after allocation in fdt_add_bignum() · de959309
      Heinrich Schuchardt 提交于
      After allocating to pointer ctx we should check that pointer and not
      another pointer already checked above.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      de959309
    • H
      test: undefined reference to 'sscanf' · 4431a988
      Heinrich Schuchardt 提交于
      Compiling with CONFIG_UNIT_TEST=y leads to:
      
      aarch64-linux-gnu-ld.bfd:
      test/lib/sscanf.c:50: undefined reference to `sscanf'
      
      Add missing build dependency.
      
      Fixes:e87dfb05 ("lib: sscanf: add sscanf implementation")
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      4431a988
    • T
      checkpatch.pl: Make fdt / initrd relocation disabling an error · 12178b51
      Tom Rini 提交于
      Entirely disabling relocation of the device tree or initrd is almost
      never the right answer.  Doing this by default leads to hard to diagnose
      run-time failures.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      12178b51
    • M
      env: Kconfig: Add missing dependency for ENV_IS_IN_EXT4 · 07661784
      Michal Simek 提交于
      ENV_IS_IN_EXT4 also need to enable FS_EXT4 which is not covered in Kconfig.
      Kconfig reports this as:
      WARNING: unmet direct dependencies detected for EXT4_WRITE
        Depends on [n]: FS_EXT4 [=n]
        Selected by [y]:
        - ENV_IS_IN_EXT4 [=y] && !CHAIN_OF_TRUST [=n]
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      07661784
    • M
      arc: Kconfig: Add missing DM dependency · 7b56432c
      Michal Simek 提交于
      ARC is selecting TIMER which depends on DM but DM is not selected and
      doesn't need to be enabled. Fix it by selecting DM for ARC architecture.
      
      Kconfig is showing this missing dependency by:
      WARNING: unmet direct dependencies detected for TIMER
        Depends on [n]: DM [=n]
        Selected by [y]:
        - ARC [=y] && <choice>
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      7b56432c
    • M
      cmd: Kconfig: Change dependency for CMD_ADC · 6e741cfa
      Michal Simek 提交于
      CMD_ADC selected DM_REGULATOR unconditionally without enabling DM.
      That's why change select to depends on to cover it.
      
      Kconfig is showing this issue as:
      WARNING: unmet direct dependencies detected for REGMAP
        Depends on [n]: DM [=n]
        Selected by [y]:
        - DM_REGULATOR_PBIAS [=y] && DM_REGULATOR [=y]
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      [trini: Update CMD_ADC=y configs to enable DM_REGULATOR now]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      6e741cfa
    • M
      pci: kconfig: Setup proper dependency for PCIE_ROCKCHIP · a261fdce
      Michal Simek 提交于
      There is missing dependency for PCIE_ROCKCHIP which selects
      PHY_ROCKCHIP_PCIE which directly depends on ARCH_ROCKCHIP.
      
      WARNING: unmet direct dependencies detected for PHY_ROCKCHIP_PCIE
        Depends on [n]: ARCH_ROCKCHIP [=n]
        Selected by [y]:
        - PCIE_ROCKCHIP [=y] && PCI [=y]
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      a261fdce