06 Apr, 2022

3 commits

  • On 2019.04 SPL, we enabled DM gadget driver for QM/QXP to support
    dual USB ports. The CI_UDC DM gadget driver will call init function
    inside EHCI mx6 driver, so when building SPL on iMX8QM/QXP with CI UDC
    enabled, we have to enable usb host driver as well, and this introduces
    about more than 40KB size to SPL.

    Move the common codes to a independent file, so that both host driver
    and gadget driver can call it, then decouple the host and gadget driver.

    Note: the patch only applies to ci_udc gadget DM driver. For non-DM gadget
    driver, it still depends ehci host interfaces.

    Signed-off-by: Ye Li
    Acked-by: Peng Fan
    (cherry picked from commit 1afed171a77b4c95cd4ea76f29d5a0a6bb199820)
    (cherry picked from commit 6680499ca4d3a740df5c0aa5a5e66f6d93f827fb)
    (cherry picked from commit f1fc6faa99e66ceb801503db28b3ce8fc01c4138)
    (cherry picked from commit 89d47b48f0f598ef080bc99385f831c698ca7c98)
    (cherry picked from commit 937de0f31667e89e7b4250b233c1fd8da3412d24)

    Ye Li
     
  • This driver is ported from NXP i.MX U-Boot version imx_v2019.04
    and some changes have also been made to adapt to U-Boot.

    Add the Cadence USB3 IP(CDNS3) driver for the gadget (device mode).
    The CDNS3 gadget driver support DM mode. CONFIG_DM_USB_GADGET should
    be enabled when use this driver.

    Signed-off-by: Sherry Sun
    Signed-off-by: Ye Li
    (cherry picked from commit 09d22730a9b022dd6354740d46c6fa155553bbd0)
    (cherry picked from commit 7069c6cc75111ff35b61278e768abcd7cb2b6cb1)

    Sherry Sun
     
  • Upstream version is an initial version, it can't be used directly.
    We will use downstream version instead.

    Signed-off-by: Ye Li
    (cherry picked from commit a956dfbc2a09a53c6a7a143ffdd807735526017b)
    (cherry picked from commit 59681eeda696cc1345b836e9ee6ae7f61c031365)

    Ye Li
     

04 Apr, 2022

2 commits

  • Signed-off-by: Tom Rini

    Tom Rini
     
  • If include/generated/env.in does not exist, which is a typical case for
    clean build, quiet_cmd_gen_envp command tries to delete this file
    unconditionally.

    This produces following warning during the build:
    ENVP include/generated/env.in
    rm: cannot remove 'include/generated/env.in': No such file or directory

    Add '-f' option to the `rm` command to not complain if file does not
    exist.

    Fixes: f432eb6d8a9d ("env: Avoid using a leftover text-environment file")
    Reviewed-by: Sean Anderson
    Signed-off-by: Andrey Zhizhikin

    Andrey Zhizhikin
     

01 Apr, 2022

1 commit

  • If include/generated/environment.h exists (perhaps leftover from a build
    of another board) it is used, even if the board currently being built does
    not have a text environment.

    This causes a build error. Fix it by emptying the file if it should not be
    there.

    Fixes: https://source.denx.de/u-boot/u-boot/-/issues/9
    Signed-off-by: Simon Glass
    Reported-by: Sean Anderson
    Tested-by: Sean Anderson

    Simon Glass
     

31 Mar, 2022

1 commit


28 Mar, 2022

2 commits


20 Mar, 2022

1 commit


15 Mar, 2022

1 commit


03 Mar, 2022

1 commit


01 Mar, 2022

1 commit


28 Feb, 2022

1 commit

  • The Layerscape platforms have different RCW header value from FSL
    PowerPC platforms, the current image header verification callback
    is only working on PowerPC, it will fail on Layerscape, this patch
    is to fix this issue.

    This is a historical problem and exposed by the following patch:
    http://patchwork.ozlabs.org/project/uboot/patch/20220114173443.9877-1-pali@kernel.org

    Signed-off-by: Hou Zhiqiang
    Reviewed-by: Priyanka Jain

    Hou Zhiqiang
     

26 Feb, 2022

1 commit

  • There is a conflict between the static file
    lib/acpi/dsdt.c and the file dsdt.c generated
    dynamicaly by scripts/Makefile.lib. When a
    mrproper is done, the static file dsdt.c is
    removed. If a build with acpi enabled is
    launched after, the following error is raised:

    CC lib/acpi/acpi_table.o
    make[2]: *** No rule to make target 'lib/acpi/dsdt.asl', needed by 'lib/acpi/dsdt.c'. Stop.
    scripts/Makefile.build:394: recipe for target 'lib/acpi' failed

    To avoid such error, the generated file is named
    dsdt_generated.c instead of dstdt.c.

    Signed-off-by: Philippe Reynes
    Tested-by: Heiko Thiery

    Philippe Reynes
     

23 Feb, 2022

1 commit

  • Add an entry for OP-TEE Trusted OS 'BL32' payload.
    This is required by platforms using Cortex-A cores with TrustZone
    technology.

    Signed-off-by: Roger Quadros
    Reviewed-by: Simon Glass
    Add missing-blob-help, renumber the test file, update entry-docs:
    Signed-off-by: Simon Glass

    Roger Quadros
     

15 Feb, 2022

1 commit


12 Feb, 2022

1 commit

  • echo -n does not give the intended effect when invoked in macOS through
    /bin/sh, which is the shell make uses by default, see
    "https://stackoverflow.com/questions/11675070/makefile-echo-n-not-working"
    for a detailed explanation. In this case, it resulted in "-n" being
    written to env.txt and env.in even though they should be empty, which
    caused compilation to fail with "Your board uses a text-file
    environment, so must not define CONFIG_EXTRA_ENV_SETTINGS".

    This patch prevents the error by replacing echo -n's with touch, as they
    are used to create empty files in these cases.

    qthedev
     

09 Feb, 2022

1 commit

  • Very few boards remain to be migrated:

    am57xx_hs_evm_usb
    controlcenterdc
    highbank
    ls1021atsn_qspi
    ls1021atsn_sdcard
    ls1021atwr_sdcard_ifc_SECURE_BOOT
    ls1046ardb_sdcard_SECURE_BOOT
    ls1088ardb_sdcard_qspi_SECURE_BOOT
    omap5_uevm
    pg_wcom_expu1
    pg_wcom_seli8
    sandbox
    sandbox64
    sandbox_flattree
    sandbox_noinst
    sandbox_spl
    tools-only

    Addd a migration deadline for a year out.

    Signed-off-by: Simon Glass
    Reviewed-by: Stefan Roese

    Simon Glass
     

05 Feb, 2022

1 commit


01 Feb, 2022

1 commit


31 Jan, 2022

1 commit

  • The current Makefile rule requires there to be a 'Module' line in the
    pylint output, like this:

    ************* Module binman.fip_util

    This line only appears if pylint has some comments about the module. We
    cannot rely on it for naming.

    Update the code to instead use the filename as the identifier for each
    score, so rather than:

    multiplexed_log 7.49

    we output:

    test_multiplexed_log.py 7.20

    It is still easy to see which file the score relates to. In fact the new
    naming is nicer since the full subdirectories are shown.

    The avoids the problem where a module name is not produced, and the output
    gets out of sync.

    Regenerate pylint.base so we can start from the current baseline.

    Signed-off-by: Simon Glass

    Simon Glass
     

29 Jan, 2022

1 commit


26 Jan, 2022

1 commit

  • This behaviour is necessary with boards where the binman description
    requires processing external blobs, since these may be missing.

    Enable it by default, so that CI is happy. Warnings indicate that a valid
    image is not produced, as with the --allow-missing option.

    Signed-off-by: Simon Glass

    Simon Glass
     

25 Jan, 2022

1 commit

  • At present the Python code in U-Boot is somewhat inconsistent, with some
    files passing pylint quite cleanly and others not.

    Add a way to track progress on this clean-up, by checking that no module
    has got any worse as a result of changes.

    This can be used with 'make pylint'.

    Signed-off-by: Simon Glass
    [trini: Re-generate pylint.base]

    Simon Glass
     

15 Jan, 2022

1 commit


13 Jan, 2022

2 commits


11 Jan, 2022

2 commits


08 Jan, 2022

1 commit

  • While converting to binman for an imx8mq board, it has been found that
    building in the u-boot CI fails. This is because an imx8mq requires an
    external binary (signed_hdmi_imx8m.bin). If this file cannot be found
    mkimage fails.
    To be able to build this board in the u-boot CI a binman option
    (--fake-ext-blobs) is introduced that can be switched on via the u-boot
    makefile option BINMAN_FAKE_EXT_BLOBS. With that the needed dummy files are
    created.

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

    Heiko Thiery
     

24 Dec, 2021

2 commits

  • U-Boot always needs some sort of a device tree in the build. Some boards
    never actually use this, at least in production systems, since a prior
    firmware stage sets one up and passes it to U-Boot. At present the only
    mechanism to do that is with custom function (OF_BOARD), but future work
    will include a standard way of doing this ('standard passage').

    It can be confusing to see a device tree emitted from the U-Boot build in
    this situation. Add an option to drop it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Boards which define OF_HAS_PRIOR_STAGE must define OF_BOARD at present,
    since a custom function is the only way to obtain the devicetree at
    runtime.

    Add a build error when this requirement is not met, to avoid accepting
    any patches which break this requirement.

    Add an allowlist for boards which use it, currently none. This allowlist
    can be updated for local development, if needed.

    Signed-off-by: Simon Glass
    [trini: change of_whitelist to of_allowlist]
    Signed-off-by: Tom Rini

    Simon Glass
     

23 Dec, 2021

1 commit


21 Dec, 2021

2 commits


06 Dec, 2021

2 commits


30 Nov, 2021

2 commits