Skip to content
Snippets Groups Projects
  1. Feb 22, 2022
    • Simon Glass's avatar
      spl: Allow disabling binman symbols in SPL · 38c04d8e
      Simon Glass authored
      
      When CONFIG_SPL_FIT is enabled we do not access U-Boot directly in
      the image, since it is embedded in a FIT which is parsed at runtime.
      
      Provide a CONFIG option to drop the symbols in this case.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      38c04d8e
    • Simon Glass's avatar
      spl: x86: Correct the binman symbols for SPL · 00959d87
      Simon Glass authored
      
      These symbols are incorrect, meaning that binman cannot find the
      associated entry. This leads to errors like:
      
      binman: Section '/binman/simple-bin': Symbol '_binman_spl_prop_size'
         in entry '/binman/simple-bin/u-boot-spl/u-boot-spl-nodtb':
         Entry 'spl' not found in list (mkimage,u-boot-spl-nodtb,
         u-boot-spl-bss-pad,u-boot-spl-dtb,u-boot-spl,u-boot-img,main-section)
      
      Fix it.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      00959d87
  2. Feb 11, 2022
  3. Feb 09, 2022
  4. Feb 03, 2022
    • Vignesh Raghavendra's avatar
      spl: ymodem: Fix buffer overflow during Image copy · c1335e2c
      Vignesh Raghavendra authored
      
      ymodem_read_fit() driver will end copying up to BUF_SIZE boundary even
      when requested size of copy operation is less than that.
      For example, if offset = 0, size = 1440B, ymodem_read_fit() ends up
      copying 2KB from offset = 0, to destination buffer addr
      
      This causes data corruption when malloc'd buffer is passed during UART
      boot since commit 03f1f78a ("spl: fit: Prefer a malloc()'d buffer
      for loading images")
      
      With this, UART boot works again on K3 (AM654, J7, AM64) family of
      devices.
      
      Fixes: 03f1f78a ("spl: fit: Prefer a malloc()'d buffer for loading images")
      Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
      c1335e2c
  5. Jan 28, 2022
  6. Jan 26, 2022
    • Loic Poulain's avatar
      usb: gadget: Add CDC ACM function · fc2b399a
      Loic Poulain authored
      
      Add support for CDC ACM using the new UDC and gadget API. This protocol
      can be used for serial over USB data transfer and is widely supported
      by various OS (GNU/Linux, MS-Windows, OSX...). The usual purpose of
      such link is to access device debug console and can be useful for
      products not exposing regular UART to the user.
      
      A default stdio device named 'usbacm' is created, and can be used
      to redirect console to USB link over CDC ACM:
      
      > setenv stdin usbacm; setenv stdout usbacm
      
      Signed-off-by: default avatarLoic Poulain <loic.poulain@linaro.org>
      fc2b399a
    • Simon Glass's avatar
      tools: Pass the key blob around · 99f844ba
      Simon Glass authored
      
      At present we rely on the key blob being in the global_data fdt_blob
      pointer. This is true in U-Boot but not with tools. For clarity, pass the
      parameter around.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      99f844ba
  7. Jan 21, 2022
    • Patrick Delaunay's avatar
      mtd: cfi: introduce CFI_FLASH_BANKS · 98150e7e
      Patrick Delaunay authored
      
      Replace CONFIG_SYS_MAX_FLASH_BANKS by CFI_FLASH_BANKS to prepare
      Kconfig migration and avoid to redefine CONFIG_SYS_MAX_FLASH_BANKS
      in cfi_flash.h.
      
      After this patch CONFIG_SYS_MAX_FLASH_BANKS should be never used in
      the cfi code: use CFI_MAX_FLASH_BANKS for struct size or CFI_FLASH_BANKS
      for number of CFI banks which can be dynamic.
      
      This patch modify all the files which include mtd/cfi_flash.h.
      
      Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
      Reviewed-by: default avatarStefan Roese <sr@denx.de>
      98150e7e
    • Alexandru Gagniuc's avatar
      spl: Convert SYS_MMCSD_RAW_MODE_KERNEL_SECTOR to Kconfig · 22eb1526
      Alexandru Gagniuc authored
      
      Falcon mode is very useful in improving boot speed. A question that
      Falcon mode asks is "Where do I look for the kernel". With MMC boot
      media, the correct answer is CONFIG_SYS_MMCSD_RAW_MODE_KERNEL_SECTOR.
      The scope of this patch is to move this to Kconfig.
      
      It is possible for a system to support Falcon mode from NOR but not
      MMC. In that case, mmc_load_image_raw_os() would not be used. To
      address this, conditionally compile mmc_load_image_raw_os() when
      SPL_FALCON_BOOT_MMCSD, instead of SPL_OS_BOOT.
      
      Signed-off-by: default avatarAlexandru Gagniuc <mr.nuke.me@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      [trini: Move spl_start_uboot to its own guard in spl_mmc.c, rerun migration]
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      22eb1526
  8. Jan 20, 2022
  9. Jan 19, 2022
  10. Jan 18, 2022
  11. Jan 13, 2022
  12. Dec 31, 2021
  13. Dec 27, 2021
  14. Dec 26, 2021
  15. Dec 23, 2021
    • Simon Glass's avatar
      fdt: Show a runtime warning based on devicetree source · 93233b07
      Simon Glass authored
      
      When running, if the devicetree failed to come from the expected source,
      show a warning, e.g:
      
         U-Boot ...
      
         DRAM:  128 MiB
         Core:  42 devices, 11 uclasses, devicetree: separate
         Warning: Unexpected devicetree source (not from a prior stage)
         Warning: U-Boot may not function properly
         Flash: 64 MiB
         ...
      
      These warnings should only appear if the board config has been changed, or
      the prior stage is broken.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      93233b07
    • Simon Glass's avatar
      fdt: Report the devicetree source · ff66e7bb
      Simon Glass authored
      
      It can be confusing to figure out where the devicetree came from. It seems
      important enough to warrant a message during boot. Add information about
      the number of devices and uclasses too since it is helpful to have some
      idea what is going on with driver model.
      
      Report the devicetree source in bdinfo too.
      
      This looks something like this, with > marking the new line.
      
         U-Boot 2021.10-00190 (Oct 30 2021 - 09:01:29 -0600)
      
         DRAM:  128 MiB
      >  Core:  42 devices, 11 uclasses, devicetree: passage
         Flash: 64 MiB
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      ff66e7bb
Loading