09 Apr, 2020

1 commit


01 Apr, 2020

7 commits


31 Mar, 2020

1 commit


28 Mar, 2020

2 commits


13 Mar, 2020

1 commit

  • 4dbc107f4683 ("cmd: gpio: Correct do_gpio() return value") correctly
    changed the behaviour of the gpio command to return CMD_RET_SUCCESS or
    CMD_RET_FAILURE, but any existing script which expects the return value
    to be the pin value is broken by this change.

    Reinstate the legacy behaviour for `gpio input` only.

    Fixes: 4dbc107f4683 ("cmd: gpio: Correct do_gpio() return value")
    Signed-off-by: Alex Kiernan
    Signed-off-by: Alex Kiernan
    Reviewed-by: Simon Glass

    Alex Kiernan
     

05 Feb, 2020

2 commits


04 Feb, 2020

2 commits

  • Unit test for 'abootimg' command. Right now it covers dtb/dtbo
    functionality in Android Boot Image v2, which was added recently.

    Running test:

    $ ./test/py/test.py --bd sandbox --build -k test_abootimg

    shows that 1/1 tests passes successfully.

    Signed-off-by: Sam Protsenko
    Signed-off-by: Lokesh Vutla

    Sam Protsenko
     
  • Convert Android documentation from regular txt format to Sphinx (RST).
    Also add Android index.rst file and reference it in root index.rst, so
    that Android documentation is visible.

    Test:

    $ make htmldocs
    $ xdg-open doc/output/index.html

    Signed-off-by: Sam Protsenko
    Signed-off-by: Lokesh Vutla

    Sam Protsenko
     

16 Jan, 2020

2 commits

  • Xilinx/FPGA changes for v2020.04

    ARM64:
    - Add INIT_SPL_RELATIVE dependency

    SPL:
    - FIT image fix
    - Enable customization of bl2_plat_get_bl31_params()

    Pytest:
    - Add test for octal/hex conversions

    Microblaze:
    - Fix manual relocation for one SPI instance

    Nand:
    - Convert zynq/zynqmp drivers to DM

    Xilinx:
    - Enable boot script location via Kconfig
    - Support OF_SEPARATE in board FDT selection
    - Remove low level uart setup it is done later by code
    - Add support for DEVICE_TREE variable passing for SPL

    Zynq:
    - Enable jtag boot mode via distro boot
    - Removing unused baseaddresses from hardware.h
    - DT fixups

    ZynqMP:
    - Fix emmc boot sequence
    - Simplify spl logic around bss and board_init_r()
    - Support psu_post_config_data() calling
    - Tune mini-nand DTS
    - Fix psu wiring for a2197 boards
    - Add runtime MMC device boot order filling in spl
    - Clear ATF handoff handling with custom bl2_plat_get_bl31_params()
    - Add support u-boot.its generation
    - Use single image configuration for all platforms
    - Enable PANIC_HANG via Kconfig
    - DT fixups
    - Firmware fixes
    - Add support for zcu208 and zcu1285

    Versal:
    - Fix emmc boot sequence
    - Enable board_late_init() by default

    Tom Rini
     
  • The device tree compiler expects that a node with a unit-address has a reg
    property.

    Signed-off-by: Heinrich Schuchardt
    Reviewed-by: Simon Glass

    Heinrich Schuchardt
     

14 Jan, 2020

1 commit


08 Jan, 2020

3 commits


07 Jan, 2020

1 commit

  • Bring in the following merges:

    commit 8fbbec12f7d2c18f8883f3371cfca74a98b5dd87
    Merge: 87f69f467a83 63618e71e89b
    Author: Tom Rini
    Date: Fri Jan 3 09:48:47 2020 -0500

    Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq into next

    - updates and fixes on ls1028a, lx2, ls1046a, MC-DPSPARSER support

    commit 87f69f467a8335b171c71bf217d2625d515acd7c
    Merge: c0912f9bbfb2 4466b9970319
    Author: Tom Rini
    Date: Tue Dec 24 08:18:19 2019 -0500

    Merge https://gitlab.denx.de/u-boot/custodians/u-boot-mpc85xx into next

    - Enable DM driver on ppc/km boards
    - Enable DM_USB for some of NXP powerpc platforms: P5040, T4240, T208x,
    T104x, P4080, P2041, P2020, P1020, P3041
    - Some updates in mpc85xx-ddr driver, km boards

    commit c0912f9bbfb26dd03d189953678691b799d35b6e
    Merge: 533c9f5714bd a1d6dc3f8407
    Author: Tom Rini
    Date: Wed Dec 18 07:20:19 2019 -0500

    Merge branch 'next' of https://gitlab.denx.de/u-boot/custodians/u-boot-x86 into next

    - Various x86 common codes updated for TPL/SPL
    - I2C designware driver updated for PCI
    - ICH SPI driver updated to support Apollo Lake
    - Add Intel FSP2 base support
    - Intel Apollo Lake platform specific drivers support
    - Add a new board Google Chromebook Coral

    commit 533c9f5714bdba79dc6f2629284d4c1a08a611d1
    Merge: 553cb0688782 033e18b47bd0
    Author: Tom Rini
    Date: Tue Dec 17 07:53:08 2019 -0500

    Merge tag '20191217-for-next' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c into next

    i2c: for next
    - misc: i2c_eeprom:
    Add partition support and add ability to query size
    of eeprom device and partitions
    - i2c common:
    add support for offset overflow in to address and add
    sandbox tests for it.

    commit 553cb06887825314e74a9bdac337467c77d1db88
    Merge: f39abbbc531e b4f98b3b16ec
    Author: Tom Rini
    Date: Thu Dec 12 08:18:59 2019 -0500

    Merge tag 'dm-next-13dec19' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm into next

    buildman improvements including toolchain environment feature
    sandbox unicode support in serial

    Tom Rini
     

02 Jan, 2020

2 commits

  • This test currently does not run because it specifies the sandbox board
    instead of sandbox_spl. Fix it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • get_env() was originally written to strip() the output of printenv to
    isolate the test from any whitespace changes in printenv's output.
    However, this throws away any whitespace in the variable value, which can
    cause issues when test code expects to see that whitespace. In fact,
    printenv never adds any whitespace at all, so there's no need to strip.

    The strip causes a practical problem for test_env_echo_exists() if
    state_test_env.get_existent_var() happens to choose a U-Boot variable that
    contains trailing whitespace. This is true for variable boot_targets.

    With Python 2, get_existent_var() never returned boot_targets so this
    issue never caused a practical problem.

    With Python 3, get_existent_var does sometimes return boot_targets, no
    doubt due to Python 3's different dict hash key order implementation,
    about 0.5-2% of the time, so this test appears intermittent. With the
    strip removed, this intermittency is solved, since the test passes for all
    possible U-Boot variables.

    Signed-off-by: Stephen Warren

    Stephen Warren
     

10 Dec, 2019

1 commit


05 Dec, 2019

1 commit

  • # This is actually a resent patch of
    # [1] https://lists.denx.de/pipermail/u-boot/2019-May/369170.html

    Two test cases are added under test_fs_ext:
    test case 10: for root directory
    test case 11: for non-root directory

    Those will verify a behavior fixed by the commits related to
    root directory
    ("fs: fat: allocate a new cluster for root directory of fat32" and
    "fs: fat: flush a directory cluster properly"), and focus on
    handling long-file-name directory entries under a directory.

    Signed-off-by: AKASHI Takahiro

    AKASHI Takahiro
     

31 Oct, 2019

10 commits

  • We have two further uses of raw string usage in the test/py codebase
    that are used under CI. The first of which is under the bind test and
    is a direct update. The second of which is to strip VT100 codes from
    the match buffer. While switching this to a raw string is also a direct
    update, the comment it notes that problems were encountered on Ubuntu
    14.04 (and whatever Python 2 version that was) that required slight
    tweaks to the regex. Replace that now that we're saying Python 3.5 is
    the minimum.

    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • To be more closely aligned with Python community best practices, we need
    to better document our usage of pip and make use of a requirements.txt
    file that shows the versions of the tools that we are using. This will
    aide in ensuring reproducibility of our tests as well.

    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • Now that we have moved to being based on pytest for python3 we need to
    make our test.py wrapper more robust in terms of only calling python3
    rather than possibly finding and using python2. To do this, change from
    execvp()'ing pytest to invoking the package itself via python. In the
    event that pytest is unavailable we still get a user-friendly error:

    pkg_resources.DistributionNotFound: The 'pytest' distribution was not found and is required by the application

    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • The check_output function from the subprocess Python module by default
    returns data as encoded bytes and leaves decoding to the application.
    Given our uses of the call, it makes the most sense to immediately
    decode the results.

    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • - In python 3 you must use raw strings for regex as other forms are
    deprecated and would require further changes to the pattern here.
    In one case this lets us have a simpler match pattern.
    - As strings are now Unicode our complex tests (Euro symbol,
    SHIFT+ALT+FN 5) we need to declare that as a bytes string and then
    decode it for use.

    Cc: Heinrich Schuchardt
    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • In the case of some unit tests we are working with providing a fake
    flash device that we have written some text strings in to. In this case
    we want to tell Python to encode things to bytes for us.

    Reviewed-by: Stephen Warren
    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • - Modern pytest is more visible in telling us about parameters that we
    had not described, so describe a few more.
    - ConfigParser.readfp(...) is now configparser.read_file(...)
    - As part of the "strings vs bytes" conversions in Python 3, we use the
    default encoding/decoding of utf-8 but in some places tell Python to
    replace problematic conversions rather than throw a fatal error.
    - Fix a typo noticed while doing the above ("tot he" -> "to the").
    - As suggested by Stephen, re-alphabetize the import list
    - Per Heinrich, replace how we write contents in test_fit.py

    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • Use the 2to3 tool to perform numerous automatic conversions from Python
    2 syntax to Python 3. Also fix whitespace problems that Python 3
    catches that Python 2 did not.

    Reviewed-by: Stephen Warren
    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     
  • Fix the following spit from pytest:

    u-boot/test/py/conftest.py:438: RemovedInPytest4Warning: MarkInfo objects are deprecated as they contain merged marks which are hard to deal with correctly.
    Please use node.get_closest_marker(name) or node.iter_markers(name).
    Docs: https://docs.pytest.org/en/latest/mark.html#updating-code
    for board in mark.args:

    In both cases, the later suggestion is applicable.

    Reviewed-by: Stephen Warren
    Reviewed-by: Simon Glass
    Signed-off-by: Marek Vasut
    Cc: Igor Opaniuk
    [trini: Update for current file with a few more cases, un-pin pytest in CI]
    Tested-by: Simon Glass [on sandbox]
    Tested-by: Stephen Warren
    Signed-off-by: Tom Rini

    Marek Vasut
     
  • We inconsistently note multiple dependencies today in our tests,
    sometimes with a single line that declares multiple and sometimes
    multiple single lines. Current pytest seems to fail on the single line
    format so change to multiple declarations.

    Reviewed-by: Stephen Warren
    Reviewed-by: Simon Glass
    Tested-by: Stephen Warren
    Tested-by: Simon Glass [on sandbox]
    Signed-off-by: Tom Rini

    Tom Rini
     

15 Oct, 2019

2 commits

  • At present the 'Index' column of 'dm tree' assumes there is
    two digits, this patch increase it to 3 digits.

    It also aligns output of 'dm uclass', assuming the same 3 digits index.

    The boards with CONFIG_PINCTRL_FULL activated have one pinconfig
    by pin configuration, so they can have more than 100 devices
    pinconfig (for example with stm32mp157c-ev1 board we have
    106 pinconfig node).

    Signed-off-by: Patrick Delaunay
    Reviewed-by: Simon Glass

    Patrick Delaunay
     
  • This commit add a test in the vboot test to check that
    when a required key is asked, only FIT signed with this
    key is used/accepted by u-boot.

    Signed-off-by: Philippe Reynes

    Philippe Reynes
     

21 Aug, 2019

1 commit

  • Based on discussion with Stephen Warren there was recommendation to list
    both memory and random command dependencies just in case that dependency is
    not properly handled by Kconfig.

    Fixes: a09c1f7e1c1b ("test/py: Fix MMC/SD block write test dependency")
    Signed-off-by: Michal Simek
    Acked-by: Stephen Warren

    Michal Simek