Skip to content
Snippets Groups Projects
  1. Mar 28, 2022
    • Jérôme Carretero's avatar
      boot: image: fixup zstd decompression buffer initialization typo · 408e2d5a
      Jérôme Carretero authored
      
      The code was mistakenly initializing the input buffer twice.
      
      Tested to be working on BeagleBone by adjusting CONFIG_SYS_BOOTM_LEN to
      64MiB (probably works with less) and preparing uImage with:
      
       cat arch/arm/boot/Image \
        | zstd --ultra -22 --zstd=windowLog=22 \
        > linux.bin.zst
      
       mkimage -A arm -T kernel uImage -C zstd -d linux.bin.zst \
        -a 0x80008000 -e 0x80008000
      
      Without the windowLog restriction, bootm fails with a zstd decompression
      error 7 (window too large), which I haven't troubleshooted.
      
      There should be a bit more documentation on the feature...
      
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Fixes: 458b30af image: Update image_decomp() to avoid ifdefs
      408e2d5a
  2. Feb 11, 2022
    • Zhang Ning's avatar
      cmd: pxe_utils: sysboot: add kaslr-seed generation support · 02901469
      Zhang Ning authored
      
      this will add kaslrseed keyword to sysboot lable,
      when it set, it will request to genarate random number
      from hwrng as kaslr-seed.
      
      with this patch exlinux.conf label looks like
      
      label l0
              menu testing
              linux /boot/vmlinuz-5.15.16-arm
              initrd /boot/initramfs-5.15.16-arm.img
              fdtdir /boot/dtbs/5.15.16-arm/
              kaslrseed
              append root=UUID=92ae1e50-eeeb-4c5b-8939-7e1cd6cfb059 ro
      
      Tested on Khadas VIM with kernel 5.16.0-rc5-arm64, Debian 11.
      
      Signed-off-by: default avatarZhang Ning <zhangn1985@qq.com>
      02901469
  3. Feb 04, 2022
  4. Jan 26, 2022
  5. Jan 24, 2022
  6. Jan 21, 2022
  7. Jan 19, 2022
  8. Jan 15, 2022
    • Amjad Ouled-Ameur's avatar
      cmd: pxe_utils: sysboot: add label override support · c2969792
      Amjad Ouled-Ameur authored
      
      This will allow consumers to choose a pxe label at runtime instead of
      having to prompt the user. One good use-case for this, is choosing
      whether or not to apply a dtbo depending on the hardware configuration.
      e.g: for TI's AM335x EVM, it would be convenient to apply a particular
      dtbo only when the J9 jumper is on PRUSS mode. To achieve this, the
      pxe menu should have 2 labels, one with the dtbo and the other without,
      then the "pxe_label_override" env variable should point to the label with
      the dtbo at runtime only when the jumper is on PRUSS mode.
      
      This change can be used for different use-cases and bring more
      flexibilty to consumers who use sysboot/pxe_utils.
      
      if "pxe_label_override" is set but does not exist in the pxe menu,
      the code should fallback to the default label if given, and no failure
      is returned but rather a warning message.
      
      Signed-off-by: default avatarAmjad Ouled-Ameur <aouledameur@baylibre.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarArtem Lapkin <email2tema@gmail.com>
      Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
      c2969792
  9. Jan 13, 2022
  10. Dec 27, 2021
    • Tom Rini's avatar
      Finish conversion of CONFIG_SYS_CLK_FREQ to Kconfig · 2f8a6db5
      Tom Rini authored
      
      In order to finish moving this symbol to Kconfig for all platforms, we
      need to do a few more things.  First, for all platforms that define this
      to a function, introduce CONFIG_DYNAMIC_SYS_CLK_FREQ, similar to
      CONFIG_DYNAMIC_DDR_CLK_FREQ and populate clock_legacy.h.  This entails
      also switching all users from CONFIG_SYS_CLK_FREQ to get_board_sys_clk()
      and updating a few preprocessor tests.
      
      With that done, all platforms that define a value here can be converted
      to Kconfig, and a fall-back of zero is sufficiently safe to use (and
      what is used today in cases where code may or may not have this
      available).  Make sure that code which calls this function includes
      <clock_legacy.h> to get the prototype.
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      2f8a6db5
    • Tom Rini's avatar
      Convert CONFIG_SD_BOOT et al to Kconfig · 66e0e2b1
      Tom Rini authored
      
      This converts the following to Kconfig:
         CONFIG_SD_BOOT
         CONFIG_SD_BOOT_QSPI
      
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      66e0e2b1
  11. Dec 20, 2021
  12. Dec 17, 2021
    • Simon Glass's avatar
      fdtgrep: Handle an empty output tree · 121cfe5a
      Simon Glass authored
      
      In strange cases it is possible for fdtgrep to find nothing to output.
      Typically this means that the resulting SPL device tree is not going to
      allow anything to boot, but at present the tree is actually invalid,
      since it only has an END tag in the struct region.
      
      The FDT spec requires at least a root node. So add a special case to
      include at least this, if the FDT_REG_SUPERNODES flag is set.
      
      This ensures that grepping an empty tree still produces a valid tree.
      
      Also add comments to the enum since it is not completely obvious from
      the names now.
      
      The typical symptom of this problem is a message from binman:
      
         pylibfdt error -11: FDT_ERR_BADSTRUCTURE
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      121cfe5a
  13. Nov 23, 2021
  14. Nov 17, 2021
  15. Nov 16, 2021
    • Simon Glass's avatar
      bootm: Tidy up use of autostart env var · 78398652
      Simon Glass authored
      
      This has different semantics in different places. Go with the bootm method
      and put it in a common function so that the behaviour is consistent in
      U-Boot. Update the docs.
      
      To be clear, this changes the way that 'bootelf' and standalone boot
      work. Before, if autostart was set to "fred" or "YES", for example, they
      would consider that a "yes". This may change behaviour for some boards,
      but the only in-tree boards which mention autostart use "no" to disable
      it, which will still work.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Suggested-by: default avatarWolfgang Denk <wd@denx.de>
      78398652
  16. Nov 15, 2021
  17. Nov 13, 2021
  18. Nov 12, 2021
Loading