Skip to content
Snippets Groups Projects
  1. Aug 21, 2024
  2. Aug 02, 2024
  3. Jul 31, 2024
  4. Jul 20, 2024
  5. Jul 19, 2024
  6. Jul 18, 2024
    • Mattijs Korpershoek's avatar
      bootstd: Add test for bootmeth_android · c2a2a06e
      Mattijs Korpershoek authored and Tom Rini's avatar Tom Rini committed
      
      Add a unit test for testing the Android bootmethod.
      
      This requires another mmc image (mmc7) to contain the following partitions:
      - misc: contains the Bootloader Control Block (BCB)
      - boot_a: contains a fake generic kernel image
      - vendor_boot_a: contains a fake vendor_boot image
      
      Also add BOOTMETH_ANDROID as a dependency on sandbox so that we can test
      this with:
      
      $ ./test/py/test.py --bd sandbox --build -k test_ut # build the mmc7.img
      $ ./test/py/test.py --bd sandbox --build -k bootflow_android
      
      Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
      Reviewed-by: default avatarJulien Masson <jmasson@baylibre.com>
      Reviewed-by: default avatarGuillaume La Roque <glaroque@baylibre.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      c2a2a06e
    • Rasmus Villemoes's avatar
      test/py: efi_capsule: rename device tree overlay source to .dtso · 7c996f24
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      
      Distinguish more clearly between source files meant for producing .dtb
      from those meant for producing .dtbo.
      
      Note that in the linux tree, all device tree overlay sources have been
      renamed to .dtso, and the .dts->.dtbo rule is gone since v6.5 (commit
      81d362732bac). So this is also a step towards staying closer to linux
      with respect to both Kbuild and device tree sources, and eventually
      eliminating all .dts -> .dtbo instances.
      
      This also matches the documentation update done in commit 4fb7e570.
      
      Cc: Masahisa Kojima <kojima.masahisa@socionext.com>
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      7c996f24
    • Rasmus Villemoes's avatar
      test: overlay: rename overlay source files to .dtso · 03e36e38
      Rasmus Villemoes authored and Tom Rini's avatar Tom Rini committed
      
      Distinguish more clearly between source files meant for producing .dtb
      from those meant for producing .dtbo.
      
      In this case, the files are really meant to be compiled to .dtbo ->
      .dtbo.S -> .dtbo.o that get embedded in the image, which means that
      the begin/end symbols generated by the makefile rule changes to
      __dtbo_ rather than __dtb, so the consuming .c file needs updating,
      but this should not result in any functional change.
      
      Note that in the linux tree, all device tree overlay sources have been
      renamed to .dtso, and the .dts->.dtbo rule is gone since v6.5 (commit
      81d362732bac). So this is also a step towards staying closer to linux
      with respect to both Kbuild and device tree sources.
      
      Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      03e36e38
    • Tom Rini's avatar
      test/py/requirements.txt: Bump zipp to current release · 2f1821fe
      Tom Rini authored
      
      A security issue exists with zipp before v3.19.1, and the current
      release is now v3.19.2. While the change in versions numbers is large, a
      manual inspection of the changelog shows that it's not as big as might
      be implied.
      
      Reported-by: GitHub dependabot
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      2f1821fe
  7. Jul 15, 2024
  8. Jul 14, 2024
  9. Jul 11, 2024
  10. Jul 04, 2024
  11. Jul 03, 2024
  12. Jun 28, 2024
    • Tim Harvey's avatar
      test: cmd: fdt: fix chosen test for DM_RNG · f485a996
      Tim Harvey authored and Tom Rini's avatar Tom Rini committed
      
      Now that kaslr-seed is automatically added to the chosen node if DM_RNG
      is enabled, adjust the test to expect this.
      
      Take care not to expect kaslr-seed for CONFIG_MEASURED_BOOT and
      CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT as we do not add it for those.
      
      Signed-off-by: default avatarTim Harvey <tharvey@gateworks.com>
      Cc: Michal Simek <michal.simek@amd.com>
      Cc: Andy Yan <andy.yan@rock-chips.com>
      Cc: Akash Gajjar <gajjar04akash@gmail.com>
      Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
      Cc: Patrice Chotard <patrice.chotard@foss.st.com>
      Cc: Devarsh Thakkar <devarsht@ti.com>
      Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
      Cc: Hugo Villeneuve <hvilleneuve@dimonoff.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@konsulko.com>
      Cc: Chris Morgan <macromorgan@hotmail.com>
      f485a996
  13. Jun 16, 2024
    • Rasmus Villemoes's avatar
      cyclic: make clients embed a struct cyclic_info in their own data structure · 008c4b3c
      Rasmus Villemoes authored and Stefan Roese's avatar Stefan Roese committed
      There are of course not a whole lot of examples in-tree yet, but
      before they appear, let's make this API change: Instead of separately
      allocating a 'struct cyclic_info', make the users embed such an
      instance in their own structure, and make the convention that the
      callback simply receives the 'struct cyclic_info *', from which the
      clients can get their own data using the container_of() macro.
      
      This has a number of advantages.
      
      First, it means cyclic_register() simply cannot fail, simplifying the
      code. The necessary storage will simply be allocated automatically
      when the client's own structure is allocated (often via
      uclass_priv_auto or similar).
      
      Second, code for which CONFIG_CYCLIC is just an option can more easily
      be written without #ifdefs, if we just provide an empty struct
      cyclic_info {}. For example, the nested CONFIG_IS_ENABLED()s in
      https://lore.kernel.org/u-boot/20240316201416.211480-1-marek.vasut+renesas@mailbox.org/
      
      
      are mostly due to the existence of the 'struct cyclic_info *' member
      being guarded by #ifdef CONFIG_CYCLIC.
      
      And we do probably want to avoid the extra memory overhead of that
      member when !CONFIG_CYCLIC. But that is automatic if, instead of a
      'struct cyclic_info *', one simply embeds a 'struct cyclic_info',
      which will have size 0 when !CONFIG_CYCLIC. Also, the no-op
      cyclic_register() function can just unconditionally be called, and the
      compiler will see that (1) the callback is referenced, so not emit a
      warning for a maybe-unused function and (2) see that it can actually
      never be reached, so not emit any code for it.
      
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      Signed-off-by: default avatarRasmus Villemoes <rasmus.villemoes@prevas.dk>
      008c4b3c
  14. Jun 13, 2024
    • Love Kumar's avatar
      test/py: net_boot: Add test cases for net boot · 0786dd57
      Love Kumar authored and Tom Rini's avatar Tom Rini committed
      
      Add tests for booting image using tftpboot/pxe boot commands, tftpboot
      boot case loads the FIT image into DDR and boots using bootm command
      whereas pxe boot cases downloads the pxe configuration file from the
      TFTP server and interprets it to boot the images mentioned in the pxe
      configurations file.
      This test relies on boardenv_* containing configuration values including
      the parameter 'pattern'. tftpboot/pxe boot cases boots the Linux till the
      boot log pattern value is matched. For example, if the parameter
      'pattern' is defined as 'login:', it will boot till login prompt.
      
      Signed-off-by: default avatarLove Kumar <love.kumar@amd.com>
      Tested-by: default avatarTom Rini <trini@konsulko.com>
      0786dd57
    • Love Kumar's avatar
      test/py: Add support to enable check for bad pattern · a57973ab
      Love Kumar authored and Tom Rini's avatar Tom Rini committed
      
      Executing a u-boot command may raise an error or extra bad pattern,
      beyond the default bad patterns. Providing a way to enable the console
      output error check in test.
      
      For example, description for OS boot test:
      import re
      check_type = 'kernel_boot_error'
      check_pattern = re.compile('ERROR -2: can't get kernel image!')
      with u_boot_console.enable_check(check_type, check_pattern):
          u_boot_console.run_command('<boot command>')
      
      Signed-off-by: default avatarLove Kumar <love.kumar@amd.com>
      a57973ab
  15. Jun 10, 2024
    • Tom Rini's avatar
      doc/sphinx, test/py: Update requests module to 2.32.2 · f3b6228e
      Tom Rini authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      The issue described in https://github.com/psf/requests/pull/6655
      
       has
      been assigned as a security issue. While unlikely to be exploited in our
      usage, update to the current release to fix it. Furthermore, upstream
      has now moved on to v2.23.2 as the release to use which has all of the
      issues resolved.
      
      Reported-by: GitHub dependabot
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      f3b6228e
    • Weizhao Ouyang's avatar
      efi_loader: Fix EFI_VARIABLE_APPEND_WRITE hash check · 3b7d26eb
      Weizhao Ouyang authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      According to UEFI v2.10 spec section 8.2.6, if a caller invokes the
      SetVariables() service, it will produce a digest from hash(VariableName,
      VendorGuid, Attributes, TimeStamp, DataNew_variable_content), then the
      firmware that implements the SetVariable() service will compare the
      digest with the result of applying the signer’s public key to the
      signature. For EFI variable append write, efitools sign-efi-sig-list has
      an option "-a" to add EFI_VARIABLE_APPEND_WRITE attr, and u-boot will
      drop this attribute in efi_set_variable_int(). So if a caller uses
      "sign-efi-sig-list -a" to create the authenticated variable, this append
      write will fail in the u-boot due to "hash check failed".
      
      This patch resumes writing the EFI_VARIABLE_APPEND_WRITE attr to ensure
      that the hash check is correct. And also update the "test_efi_secboot"
      test case to compliance with the change.
      
      Signed-off-by: default avatarWeizhao Ouyang <o451686892@gmail.com>
      3b7d26eb
  16. May 27, 2024
  17. May 24, 2024
  18. May 22, 2024
  19. May 20, 2024
  20. May 19, 2024
  21. May 08, 2024
    • Tom Rini's avatar
      test/py: Make the number of SPL banners seen a variable · 645f75f6
      Tom Rini authored
      
      Currently we have the option to tell the console code that we should
      ignore the SPL banner. We also have an option to say that we can see it
      a second time, and ignore it. However, some platforms such as TI AM64x
      will have us see the SPL banner three times. Rather than add an
      "spl3_skipped" option, rework the code. By default we expect to see the
      banner once, but boards can specify seeing it as many times as they
      expect to.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      645f75f6
  22. May 06, 2024
  23. May 05, 2024
  24. May 01, 2024
  25. Apr 18, 2024
  26. Apr 17, 2024
  27. Apr 12, 2024
Loading