Skip to content
Snippets Groups Projects
  1. Feb 26, 2021
    • Sean Anderson's avatar
      fastboot: Allow u-boot-style partitions · de1728ce
      Sean Anderson authored
      
      This adds support for partitions of the form "dev.hwpart:part" and
      "dev#partname". This allows one to flash to eMMC boot partitions without
      having to use CONFIG_FASTBOOT_MMC_BOOT1_SUPPORT. It also allows one to
      flash to an entire device without needing CONFIG_FASTBOOT_MMC_USER_NAME.
      Lastly, one can also flash MMC devices other than
      CONFIG_FASTBOOT_FLASH_MMC_DEV.
      
      Because devices can be specified explicitly, CONFIG_FASTBOOT_FLASH_MMC_DEV
      is used only when necessary for existing functionality. For those cases,
      fastboot_mmc_get_dev has been added as a helper function. This allows
      
      There should be no conflicts with the existing system, but just in case, I
      have ordered detection of these names after all existing names.
      
      The fastboot_mmc_part test has been updated for these new names.
      
      Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      de1728ce
    • Sean Anderson's avatar
      test: dm: Add test for fastboot mmc partition naming · d4f22cb3
      Sean Anderson authored
      
      This test verifies the mapping between fastboot partitions and partitions
      as understood by U-Boot. It also tests the creation of GPT partitions,
      though that is not the primary goal.
      
      Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      d4f22cb3
    • Sean Anderson's avatar
      mmc: sandbox: Add support for writing · 3f6fb771
      Sean Anderson authored
      
      This adds support writing to the sandbox mmc backed by an in-memory
      buffer. The unit test has been updated to test reading, writing, and
      erasing. I'm not sure what MMCs erase to; I picked 0, but if it's 0xFF
      then that can be easily changed.
      
      Signed-off-by: default avatarSean Anderson <sean.anderson@seco.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      3f6fb771
  2. Feb 24, 2021
  3. Feb 18, 2021
  4. Feb 16, 2021
  5. Feb 03, 2021
    • Marek Vasut's avatar
      dm: core: Add late driver remove option · cc6f4c8f
      Marek Vasut authored
      
      Add another flag to the DM core which could be assigned to drivers and
      which makes those drivers call their remove callbacks last, just before
      booting OS and after all the other drivers finished with their remove
      callbacks. This is necessary for things like clock drivers, where the
      other drivers might depend on the clock driver in their remove callbacks.
      Prime example is the mmc subsystem, which can reconfigure a card from HS
      mode to slower modes in the remove callback and for that it needs to
      reconfigure the controller clock.
      
      Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      cc6f4c8f
    • Simon Glass's avatar
      dm: core: Avoid partially removing devices · c51d2e70
      Simon Glass authored
      
      At present if device_remove() decides that the device should not actually
      be removed, it still calls the uclass pre_remove() method and powers the
      device down.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      c51d2e70
  6. Feb 02, 2021
    • Simon Glass's avatar
      common: Drop asm/global_data.h from common header · 401d1c4f
      Simon Glass authored
      
      Move this out of the common header and include it only where needed.  In
      a number of cases this requires adding "struct udevice;" to avoid adding
      another large header or in other cases replacing / adding missing header
      files that had been pulled in, very indirectly.   Finally, we have a few
      cases where we did not need to include <asm/global_data.h> at all, so
      remove that include.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      401d1c4f
  7. Feb 01, 2021
    • Stephen Warren's avatar
      test/py: fix runtest wrapper for pytest 6 · 37249757
      Stephen Warren authored
      
      The implementation of pytest_runtest_protocol() must call
      pytest_runtest_logstart() and pytest_runtest_logfinish(). This appears to
      be necessary even in pytest 5.2.1 judging by the default version of
      pytest_runtest_protocol(), but evidently some form of code reorganization
      in pytest only made this have a practical effect in the newer version. I'd
      previously been under the impression that 100% of the required work of
      pytest_runtest_protocol() was handled by the fact it called
      runtestprotocol() as its implementation. However, it appears that custom
      implementations do need to do a little more than this.
      
      Reported-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Signed-off-by: default avatarStephen Warren <swarren@wwwdotorg.org>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      37249757
  8. Jan 30, 2021
  9. Jan 29, 2021
    • Heinrich Schuchardt's avatar
      test: inconsistent string tests · 9d43b410
      Heinrich Schuchardt authored
      
      Excluding ut str in test/cmd_ut.c but compiling test/str_ut.c results in
      failure of the Python test invoking the C unit tests as observed on
      sipeed_riscv_smode_defconfig:
      
      FAILED test/py/tests/test_ut.py::test_ut[ut_str_upper]
      
      Allow to compile test/str_ut.c on all boards.
      
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      9d43b410
    • Heinrich Schuchardt's avatar
      test: inconsistent bootm tests · fe158657
      Heinrich Schuchardt authored
      
      Excluding ut bootm in test/cmd_ut.c but compiling test/bootm.c results in
      failure of the Python test invoking the C unit tests as observed on
      sipeed_riscv_smode_defconfig:
      
      FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_nop]
      FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_nospace]
      FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_silent]
      FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_silent_var]
      FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_subst]
      FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_subst_both]
      FAILED test/py/tests/test_ut.py::test_ut[ut_bootm_subst_var]
      
      Only compile test/bootm.c on the sandbox.
      
      Fixes: f158ba15 ("bootm: Add tests for fixup_silent_linux()")
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      fe158657
    • Tom Rini's avatar
      test: Update test_fs to not use deprecated pytest.yield_fixture() · a59e59c9
      Tom Rini authored
      
      As noted in comments, yield_fixture has been deprecated for longer than
      our minimum required version of pytest.  Newer versions of pytest cause
      this to be a louder warning, and as the migration is trivial, perform it
      now.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      a59e59c9
    • Heinrich Schuchardt's avatar
      test: correct entry point to pytest · 89d52afa
      Heinrich Schuchardt authored
      
      With Pytest 6.0.2 'make tests' fails:
      
      sandbox: Traceback (most recent call last):
        File "./test/py/test.py", line 20, in <module>
          sys.exit(load_entry_point('pytest', 'console_scripts', 'pytest')(args))
      TypeError: console_main() takes 0 positional arguments but 1 was given
      
      The definition of console_scripts has changed as follows:
      
      Pytest 4.6.1:
      
      [options.entry_points]
      console_scripts =
              pytest=pytest:main
              py.test=pytest:main
              
      Pytest 6.0.2:
              
      [options.entry_points]
      console_scripts =
          pytest=pytest:console_main
          py.test=pytest:console_main
      
      The new function console_main() has a comment:
      "This function is not meant for programmable use; use `main()`"
      
      Hence let's call pytest.main() directly.
      Move args processing into the __main__ paragraph.
      
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Tested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      Tested-by: default avatarTom Rini <trini@konsulko.com>
      89d52afa
    • Heinrich Schuchardt's avatar
      test: pr_cont_test.o depends on CONFIG_LOG=y · 34d7f72a
      Heinrich Schuchardt authored
      
      Compiling wandboard_defconfig with CONFIG_UT_LOG=y leads to a build error:
      
      test/log/pr_cont_test.c: In function ‘log_test_pr_cont’:
      test/log/pr_cont_test.c:28:14: error:
      ‘gd_t’ {aka ‘volatile struct global_data’} has no member named ‘log_fmt’
        log_fmt = gd->log_fmt;
      
      We do not want to let CONFIG_UT_LOG depend on CONFIG_LOG=y because we have
      tests for logging functions called with CONFIG_LOG=n.
      
      Fix the build dependency.
      
      Reported-by: default avatarKever Yang <kever.yang@rock-chips.com>
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      34d7f72a
    • Tom Rini's avatar
      test: test_ofplatdata: Mark as sandbox specific · e6b8e948
      Tom Rini authored
      
      This test checks for output specific to the sandbox device tree, mark it
      as sandbox specific.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      e6b8e948
  10. Jan 27, 2021
  11. Jan 25, 2021
  12. Jan 23, 2021
  13. Jan 18, 2021
  14. Jan 17, 2021
  15. Jan 16, 2021
Loading