19 Feb, 2019

1 commit


12 Feb, 2019

1 commit

  • On x86_64 the size of the file u-boot loaded by the tftp test has grown in
    size such that when loading the file to 0x200000 it overwrites a memory
    area reserved for PCI.

    If no load address is specified for tftp do not use the ram base address
    (or if zero 0x200000) but the default address.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

16 Jan, 2019

2 commits


15 Jan, 2019

1 commit

  • At present the 'Index' column assumes there is only one digit. But on some
    devices (e.g. snow) there are a lot of regulators and GPIO banks. Adjust
    the output to allow for two digits without messing up the display.

    Also capatalise the heading to match.

    Fixes: 5197dafc42 (dm: core: Widen the dump tree to show more of the
    driver's name.)

    Signed-off-by: Simon Glass
    Reviewed-by: Liviu Dudau

    Simon Glass
     

07 Dec, 2018

1 commit

  • commit d6330064634a ("spl: Add a define for SPL_TPL_PROMPT")

    changes the SPL/TPL banner from upper case into lower
    case. As SPL and TPL are three-letter acronyms and they
    are written in upper case, change it back to upper case.

    Signed-off-by: Heiko Schocher
    Reviewed-by: Simon Glass

    Heiko Schocher
     

04 Dec, 2018

1 commit

  • Patch queue for efi - 2018-12-03

    This release is fully packed with lots of glorious improvements in UEFI
    land again!

    - Make PE images more standards compliant
    - Improve sandbox support
    - Improve correctness
    - Fix RISC-V execution on virt model
    - Honor board defined top of ram (fixes a few boards)
    - Imply DM USB access when distro boot is available
    - Code cleanups

    Tom Rini
     

03 Dec, 2018

3 commits


30 Nov, 2018

1 commit

  • At present tests are quite slow to run, over a minute on my machine. This
    presents a considerable barrier to bisecting for failures.

    The slowest tests are the filesystem ones and the buildman --fetch-arch
    test. Add a new 'qcheck' target that skips these tests. This reduces test
    time down to about 40 second, still too long, but bearable.

    Signed-off-by: Simon Glass

    Simon Glass
     

26 Nov, 2018

5 commits

  • There is some basic informaton that SPL normally wants to pass through to
    U-Boot, such as the SDRAM size and bank information.

    Mkae use of the new bloblist structure for this. Add a new 'handoff' blob
    which is set up in SPL and passed to U-Boot proper. Also adda test for
    sandbox_spl that checks that this works correctly and a new 'sb' command
    to show the information passed from SPL.

    Reviewed-by: Tom Rini
    Signed-off-by: Simon Glass

    Simon Glass
     
  • The old 'sb' command was deprecated in 2015 and replaced with 'host'.
    Remove the remaining users and the command, so that the name is available
    for other purposes.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present we don't have a test that of-platdata can be accessed in SPL.
    Add this in as a command-line option to SPL.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • It is sometimes useful to restart sandbox with some particular flags to
    test certain functionality. Add a new method to ConsoleSandbox to handle
    this, without changing the existing APIs.

    Signed-off-by: Simon Glass
    Acked-by: Stephen Warren

    Simon Glass
     
  • We should use a macro rather than hard-coding the SPL prompt to 'spl'
    since the code can be used by TPL too. Add a macro that works for both
    and use it in various places.

    This allows TPL to use the same code without printing confusing messages.

    Note that the string is lower case ('spl', 'tpl') which is a change from
    previously.

    Reviewed-by: Tom Rini
    Signed-off-by: Simon Glass

    Simon Glass
     

21 Nov, 2018

1 commit


17 Nov, 2018

1 commit

  • Add pinmux test which test the following commands:
    - pinmux list
    - pinmux dev
    - pinmux status

    Signed-off-by: Patrice Chotard
    Reviewed-by: Simon Glass
    [trini: Mark some tests as sandbox-centric]
    Signed-off-by: Tom Rini

    Signed-off-by: Tom Rini

    Patrice Chotard
     

09 Oct, 2018

1 commit

  • At present to output a log message you need something like:

    log(UCLASS_SPI, LOCL_INFO, "message1");
    log(UCLASS_SPI, LOCL_INFO, "message2");

    but many files use the same category throughout. Also it is helpful to
    shorten the length of log names, providing helpers for common logging
    levels. Add some macros so that it is possible to do:

    (top of file, before #includes)
    #define LOG_CATEGORY UCLASS_SPI

    (later in the file)
    log_info("message1");
    log_debug("message2");
    log_err("message3");

    Signed-off-by: Simon Glass

    Simon Glass
     

08 Oct, 2018

2 commits

  • At present the tests run one after the other using a single CPU. This is
    not very efficient. Bring in the concurrencytest module and run the tests
    concurrently, using one process for each CPU by default. A -P option
    allows this to be overridden, which is necessary for code-coverage to
    function correctly.

    This requires fixing a few tests which are currently not fully
    independent.

    At some point we might consider doing this across all pytests in U-Boot.
    There is a pytest version that supports specifying the number of processes
    to use, but it did not work for me.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • At present the unicode filtering seems to get confused at times with
    this error:

    UnicodeDecodeError: 'ascii' codec can't decode byte 0x80 in position
    32: ordinal not in range(128)

    It seems to be due to self._nonprint being interpreted as UTF-8. Fix it
    by using ordinals instead of characters, changing the string to set.

    Signed-off-by: Simon Glass
    Reviewed-by: Stephen Warren
    Tested-by: Michal Simek

    Simon Glass
     

07 Oct, 2018

1 commit


06 Oct, 2018

3 commits


24 Sep, 2018

10 commits


11 Sep, 2018

1 commit


21 Aug, 2018

1 commit

  • In some cases it can be useful to be able to bind a device to a driver from
    the command line.
    The obvious example is for versatile devices such as USB gadget.
    Another use case is when the devices are not yet ready at startup and
    require some setup before the drivers are bound (ex: FPGA which bitsream is
    fetched from a mass storage or ethernet)

    usage example:

    bind usb_dev_generic 0 usb_ether
    unbind usb_dev_generic 0 usb_ether
    or
    unbind eth 1

    bind /ocp/omap_dwc3@48380000/usb@48390000 usb_ether
    unbind /ocp/omap_dwc3@48380000/usb@48390000

    Signed-off-by: Jean-Jacques Hiblot

    Jean-Jacques Hiblot
     

28 Jul, 2018

1 commit

  • While using the 'tpm' command should work on most cases, this test suite
    only works with TPMv2 and since the work to make both versions build at
    the same time, we might end up having both 'tpm' (TPMv1) and 'tpm2'
    (TPMv2) commands available at the same time. Ensure this test suite
    always use the right one.

    Signed-off-by: Miquel Raynal
    Reviewed-by: Simon Glass

    Miquel Raynal
     

21 Jul, 2018

2 commits

  • This tests that the importing of an environment with a specified
    whitelist works as intended.

    If there are variables passed as parameter to the env import command,
    those only should be imported in the current environment.

    For each variable passed as parameter, if
    - foo is bar in current env and bar2 in exported env, after importing
    exported env, foo shall be bar2,
    - foo does not exist in current env and foo is bar2 in exported env,
    after importing exported env, foo shall be bar2,
    - foo is bar in current env and does not exist in exported env (but is
    passed as parameter), after importing exported env, foo shall be empty
    ONLY if the -d option is passed to env import, otherwise foo shall be
    bar,

    Any variable not passed as parameter should be left untouched.

    Two other tests are made to test that size cannot be '-' if the checksum
    protection is enabled.

    Signed-off-by: Quentin Schulz
    Reviewed-by: Simon Glass
    Reviewed-by: Stephen Warren
    Tested-by: Stephen Warren

    Quentin Schulz
     
  • Some functions have different behaviour when the given address is 0
    (assumed to be NULL by the function).

    find_ram_base() does not return 0 anymore so it's safe to remove those
    offsets.

    Suggested-by: Stephen Warren
    Signed-off-by: Quentin Schulz
    Reviewed-by: Stephen Warren
    Tested-by: Stephen Warren

    Quentin Schulz