Skip to content
Snippets Groups Projects
  1. Mar 28, 2021
  2. Mar 23, 2021
  3. Mar 19, 2021
    • Heinrich Schuchardt's avatar
      efi_loader: Uart device path · 62df6e9c
      Heinrich Schuchardt authored
      
      When uploading an EFI binary via the UART we need to assign a device path.
      
      * Provide devicepath node to text conversion for Uart() node.
      * Provide function to create Uart() device path.
      * Add UART support to efi_dp_from_name().
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      62df6e9c
    • Marek Behún's avatar
      api: fix a potential serious bug caused by undef CONFIG_SYS_64BIT_LBA · d32211ee
      Marek Behún authored and Tom Rini's avatar Tom Rini committed
      
      The api_public.h header file undefined macro CONFIG_SYS_64BIT_LBA.
      
      But api/api_storage.c includes this header before including part.h,
      causing the type of lbaint_t and subsequently the type signature of
      blk_dread() and blk_dwrite() functions to change from the rest of U-Boot
      (if CONFIG_SYS_64BIT_LBA is defined for the board).
      
      This is of course wrong, because the call to blk_dread() / blk_dwrite()
      will receive mangled arguments.
      
      Fix this by removing the undef of macro CONFIG_SYS_64BIT_LBA and instead
      make the immediate code do what it would do as if the macro was not
      defined.
      
      Add a FIXME to whoever is maintaining this code.
      
      CI managed to trigger this bug when compiling for lsxhl_defconfig, which
      has CONFIG_API selected. The compiler complained about blk_dwrite() and
      blk_dread() not matching original declarations:
      
        include/blk.h:280:15: warning: type of ‘blk_dwrite’ does not match
                                       original declaration
      				 [-Wlto-type-mismatch]
        280 | unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t st
            |               ^
        drivers/block/blk-uclass.c:456:15: note: type mismatch in parameter 2
        456 | unsigned long blk_dwrite(struct blk_desc *block_dev, lbaint_t st
            |               ^
      
      Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      d32211ee
  4. Mar 17, 2021
  5. Mar 15, 2021
    • Lokesh Vutla's avatar
      include: configs: am65x_evm: Optimize size of SPL BSS · 003d10ba
      Lokesh Vutla authored
      
      Current BSS allocation of SPL is as below:
      $ size spl/u-boot-spl
         text	   data	    bss	    dec	    hex	filename
       132369	   7852	   1496	 141717	  22995	spl/u-boot-spl
      
      But 20KB is allocated currently for BSS. Reduce it to 3KB and save some
      space for stack.
      
      Signed-off-by: Lokesh Vutla's avatarLokesh Vutla <lokeshvutla@ti.com>
      003d10ba
    • Adam Ford's avatar
      ARM: da850-evm: Fix boot issues from missing SPL_PAD_TO · a69c4895
      Adam Ford authored and Lokesh Vutla's avatar Lokesh Vutla committed
      
      In a previous attempt to unify config options and remove items
      from the whitelist file, SPL items were moved into a section
      enabled with CONFIG_SPL_BUILD.  Unfortunately, SPL_PAD_TO
      is referenced at the head Makefile and uses this define
      to create padding of the output file.  When it was moved
      to CONFIG_SPL_BUILD, it caused boot errors with devices
      that are not booting from NOR.  Fix the boot issues by moving
      SPL_PAD_TO out so it's always.
      
      Fixes: 7bb33e46 ("ARM: da850-evm: Unify config options with Kconfig")
      Signed-off-by: default avatarAdam Ford <aford173@gmail.com>
      a69c4895
  6. Mar 11, 2021
  7. Mar 08, 2021
  8. Mar 07, 2021
  9. Mar 05, 2021
  10. Mar 03, 2021
  11. Mar 01, 2021
  12. Feb 27, 2021
    • Marek Vasut's avatar
      ARM: imx6: dh-imx6: Drop the SF hunk in config · 4e4b1a10
      Marek Vasut authored and Stefano Babic's avatar Stefano Babic committed
      
      There is now CONFIG_SPL_DM_SPI{,_FLASH}, however keeping
      CONFIG_DM_SPI{,_FLASH} enabled in SPL seems to grow the SPL
      by a couple of bytes:
            text    data     bss     dec     hex filename
       -   34069    1568      96   35733    8b95 spl/u-boot-spl
       +   34075    1568      96   35739    8b9b spl/u-boot-spl
      In either case, the binary is bootable, so remove the part
      in board config.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Andreas Geisreiter <ageisreiter@dh-electronics.de>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Ludwig Zenz <lzenz@dh-electronics.de>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Tom Rini <trini@konsulko.com>
      4e4b1a10
    • Marek Vasut's avatar
      ARM: imx: Revert "dh_imx6: Switch to full DM-aware" · 58cbf2ef
      Marek Vasut authored and Stefano Babic's avatar Stefano Babic committed
      This reverts commit 03a673cf ("dh_imx6: Switch to full DM-aware").
      According to discussion [1], the patch is known to break the dh_imx6
      board, however it made it upstream just before 2021.01-rc4, likely by
      mistake. Revert this patch to put the board back into working order.
      
      Also note that this board has no DM SPL support due to OCRAM size
      limitations, but that is fine, as SPL DM support is optional.
      
      [1] https://lists.denx.de/pipermail/u-boot/2020-June/417986.html
      
      
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Andreas Geisreiter <ageisreiter@dh-electronics.de>
      Cc: Jagan Teki <jagan@amarulasolutions.com>
      Cc: Ludwig Zenz <lzenz@dh-electronics.de>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Tom Rini <trini@konsulko.com>
      58cbf2ef
  13. Feb 26, 2021
Loading