Skip to content
Snippets Groups Projects
  1. Mar 16, 2021
    • Heinrich Schuchardt's avatar
      doc: move README.dfu to HTML documentation · 75d48d11
      Heinrich Schuchardt authored
      
      Move README.dfu to doc/usage/dfu.rst and convert to reStructured text.
      
      In the long run this page should be split into two. One for the overview
      and one for the dfu command. UEFI capsule updates and dfutftp should be
      integrated into the overview page.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      75d48d11
    • Simon Glass's avatar
      efi: Fix compiler warnings · 64d809b4
      Simon Glass authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      This occur when building on Raspberry Pi 400 (32-bit ARM). Fix them.
      
      Examples:
      
      cmd/efidebug.c: In function ‘do_efi_capsule_update’:
      cmd/efidebug.c:75:49: warning: cast from pointer to integer of different
      	size [-Wpointer-to-int-cast]
        ret = EFI_CALL(RT->update_capsule(&capsule, 1, (u64)NULL));
                                                       ^
      include/efi_loader.h:104:9: note: in definition of macro ‘EFI_CALL’
        typeof(exp) _r = exp; \
               ^~~
      cmd/efidebug.c:75:49: warning: cast from pointer to integer of different
      	size [-Wpointer-to-int-cast]
        ret = EFI_CALL(RT->update_capsule(&capsule, 1, (u64)NULL));
                                                       ^
      include/efi_loader.h:104:19: note: in definition of macro ‘EFI_CALL’
        typeof(exp) _r = exp; \
                         ^~~
      
      In file included from include/common.h:20,
                       from lib/efi_loader/efi_capsule.c:9:
      lib/efi_loader/efi_capsule.c: In function ‘efi_update_capsule’:
      include/efi_loader.h:83:8: warning: format ‘%lu’ expects argument of type
      	‘long unsigned int’, but argument 10 has type ‘size_t’
      	{aka ‘unsigned int’} [-Wformat=]
        debug("%sEFI: Entry %s(" format ")\n", __efi_nesting_inc(), \
              ^~~~~~~~~~~~~~~~~~
      include/linux/printk.h:37:21: note: in definition of macro ‘pr_fmt’
       #define pr_fmt(fmt) fmt
                           ^~~
      include/log.h:229:2: note: in expansion of macro ‘log’
        log(LOG_CATEGORY, LOGL_DEBUG, fmt, ##args); \
        ^~~
      include/log.h:249:2: note: in expansion of macro ‘debug_cond’
        debug_cond(_DEBUG, fmt, ##args)
        ^~~~~~~~~~
      include/efi_loader.h:83:2: note: in expansion of macro ‘debug’
        debug("%sEFI: Entry %s(" format ")\n", __efi_nesting_inc(), \
        ^~~~~
      lib/efi_loader/efi_capsule.c:444:2: note: in expansion of macro ‘EFI_ENTRY’
        EFI_ENTRY("%p, %lu, %llu\n", capsule_header_array, capsule_count,
        ^~~~~~~~~
      lib/efi_loader/efi_capsule.c:444:19: note: format string is defined here
        EFI_ENTRY("%p, %lu, %llu\n", capsule_header_array, capsule_count,
                       ~~^
                       %u
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Replace (uintptr_t)NULL by 0.
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      64d809b4
    • Ilias Apalodimas's avatar
      efi_selftest: Remove loadfile2 for initrd selftests · d2ac8af9
      Ilias Apalodimas authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      We are redefining how u-boot locates the initrd to load via the kernel
      LoadFile2 protocol.  This selftest is not relevant any more, so remove
      it. A new one will be added later
      
      Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      d2ac8af9
    • Simon Glass's avatar
      mkeficapsule: Correct printf() strings · ad09004a
      Simon Glass authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      Use %z when printing size_t values. This avoids errors on 32-bit
      machines.
      
      Signed-off-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      Use a conversion to size_t for printing stat.st_size.
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      ad09004a
    • Heinrich Schuchardt's avatar
      efi_selftest: illegal cast to pointer in initrddump · fbc6ceae
      Heinrich Schuchardt authored
      
      On 32bit systems u64 cannot directly be cast to void *.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      fbc6ceae
    • Mark Kettenis's avatar
      efi_loader: fix memory type for memory reservation block · 9ff9f4b4
      Mark Kettenis authored and Heinrich Schuchardt's avatar Heinrich Schuchardt committed
      
      The (yet unreleased version of the) devicetree specification clearly
      states that:
      
        As with the /reserved-memory node, when booting via UEFI
        entries in the Memory Reservation Block must also be listed
        in the system memory map obtained via the GetMemoryMap() toi
        protect against allocations by UEFI applications. The memory
        reservation block entries should be listed with type
        EfiReservedMemoryType.
      
      This restores the behaviour that was changed by commit 4cbb2930
      ("efi_loader: consider no-map property of reserved memory").
      
      Fixes: 4cbb2930 ("efi_loader: consider no-map property of reserved memory")
      Signed-off-by: default avatarMark Kettenis <kettenis@openbsd.org>
      Reviewed-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      9ff9f4b4
    • Heinrich Schuchardt's avatar
      efi_loader: disable GRUB_ARM32_WORKAROUND on ARCH_SUNXI · 8b5dea33
      Heinrich Schuchardt authored
      
      GRUB_ARM32_WORKAROUND can be disabled on ARCH_SUNXI as the Allwinner SoCs
      only have a level 2 cache controlled via CP15 and not an architecturally
      defined cache. Having the cache available speeds up booting Linux.
      
      On ARCH_BCM283X it is already disabled via rpi_2_defconfig. But let's move
      this setting to Kconfig.
      
      Signed-off-by: Heinrich Schuchardt's avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      8b5dea33
  2. Mar 15, 2021
  3. Mar 12, 2021
  4. Mar 11, 2021
Loading