Skip to content
Snippets Groups Projects
  1. May 05, 2017
  2. Apr 30, 2017
  3. Apr 14, 2017
  4. Apr 13, 2017
    • Simon Glass's avatar
      fdtgrep: Cope with the /aliases node being last · c47a38b4
      Simon Glass authored
      
      With skeleton.dtsi being dropped it is more likely that the /aliases node
      will be last in the device tree. Update fdtgrep to handle this.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      c47a38b4
    • Peng Fan's avatar
      lib: div64: sync with Linux · 0342e335
      Peng Fan authored
      
      Sync with Linux commit ad0376eb1483b ("Merge tag 'edac_for_4.11_2'").
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Tom Rini <trini@konsulko.com>
      0342e335
    • Vignesh R's avatar
      tiny-printf: Add support for %p format · cdce1f76
      Vignesh R authored
      
      Add support for %p, %pa[p], %pM, %pm and %pI4 formats to tiny-printf.
      %pM and %pI4 are widely used by SPL networking stack and is required if
      networking support is desired in SPL.
      %p, %pa and %pap are mostly used by debug prints and hence supported
      only when DEBUG is enabled.
      
      Before this patch:
      $ size spl/u-boot-spl
         text	   data	    bss	    dec	    hex	filename
        99325	   4899	 218584	 322808	  4ecf8	spl/u-boot-spl
      
      After this patch (with CONFIG_SPL_NET_SUPPORT):
      $ size spl/u-boot-spl
         text	   data	    bss	    dec	    hex	filename
        99666	   4899	 218584	 323149	  4ee4d	spl/u-boot-spl
      
      So, this patch adds ~350 bytes to code size.
      
      If CONFIG_SPL_NET_SUPPORT is not enabled, this adds ~25 bytes.
      
      If CONFIG_USE_TINY_PRINTF is disabled then:
      $ size spl/u-boot-spl
        text	   data	    bss	    dec	    hex	filename
       101116	   4899	 218584	 324599	  4f3f7	spl/u-boot-spl
      
      So, there is still ~1.4K space saved even with support for %pM/%pI4.
      
      Compiler used is to build is:
      arm-linux-gnueabihf-gcc (Linaro GCC 6.2-2016.11) 6.2.1 20161016
      
      Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      cdce1f76
  5. Apr 12, 2017
  6. Apr 10, 2017
  7. Apr 07, 2017
  8. Apr 05, 2017
  9. Mar 26, 2017
    • mario.six@gdsys.cc's avatar
      tpm: Add function to load keys via their parent's SHA1 hash · 0f4b2ba1
      mario.six@gdsys.cc authored
      
      If we want to load a key into a TPM, we need to know the designated parent
      key's handle, so that the TPM is able to insert the key at the correct place in
      the key hierarchy.
      
      However, if we want to load a key whose designated parent key we also
      previously loaded ourselves, we first need to memorize this parent key's handle
      (since the handles for the key are chosen at random when they are inserted into
      the TPM). If we are, however, unable to do so, for example if the parent key is
      loaded into the TPM during production, and its child key during the actual
      boot, we must find a different mechanism to identify the parent key.
      
      To solve this problem, we add a function that allows U-Boot to load a key into
      the TPM using their designated parent key's SHA1 hash, and the corresponding
      auth data.
      
      Signed-off-by: default avatarMario Six <mario.six@gdsys.cc>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      0f4b2ba1
    • Vignesh R's avatar
      libfdt: use CONFIG_IS_ENABLED for OF_LIBFDT · 5efa1bfb
      Vignesh R authored
      
      Use CONFIG_IS_ENABLED() macro to check whether OF_TRANSLATE is enabled, so
      that code block is compiled irrespective of SPL or U-Boot build
      and fdt address translation is used.
      
      Signed-off-by: default avatarVignesh R <vigneshr@ti.com>
      5efa1bfb
  10. Mar 20, 2017
  11. Mar 17, 2017
  12. Mar 15, 2017
  13. Mar 14, 2017
  14. Feb 06, 2017
  15. Feb 01, 2017
  16. Jan 28, 2017
  17. Jan 14, 2017
  18. Jan 09, 2017
  19. Jan 04, 2017
    • Andre Przywara's avatar
      SPL: tiny-printf: ignore "-" modifier · 1c853629
      Andre Przywara authored
      
      tiny-printf does not know about the "-" modifier, which aligns numbers.
      This is used by some SPL code, but as it's purely cosmetical, we just
      ignore this modifier here to avoid changing correct printf strings.
      
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
      1c853629
    • Andre Przywara's avatar
      SPL: tiny-printf: add "l" modifier · a28e1d98
      Andre Przywara authored
      
      tiny-printf does not know about the "l" modifier so far, which breaks
      the crash dump on AArch64, because it uses %lx to print the registers.
      Add an easy way of handling longs correctly.
      
      Using a relatively decent compiler (GCC 5.3.0) this does _not_ increase
      the code size of tiny-printf.o for 32-bit builds (where long and int
      are actually the same), actually it looses three (ARM Thumb2) instructions
      from the actual SPL (numbers for orangepi_plus_defconfig):
        text    data     bss     dec     hex filename
         758       0       0     758     2f6 spl/lib/tiny-printf.o	before
       18839     488     232   19559    4c67 spl/u-boot-spl		before
         758       0       0     758     2f6 spl/lib/tiny-printf.o	after
       18833     488     232   19553    4c61 spl/u-boot-spl		after
      
      This adds some substantial amount of code to a 64-bit build, though:
      (taken after a later commit, which enables the ARM64 SPL build for sunxi)
        text    data     bss     dec     hex filename
        1542       0       0    1542     606 spl/lib/tiny-printf.o	before
       25830     392     360   26582    67d6 spl/u-boot-spl		before
        1758       0       0    1758     6de spl/lib/tiny-printf.o	after
       26040     392     360   26792    68a8 spl/u-boot-spl		after
      
      Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
      a28e1d98
  20. Dec 20, 2016
    • Nathan Rossi's avatar
      fdt: add memory bank decoding functions for board setup · 623f6019
      Nathan Rossi authored
      
      Add two functions for use by board implementations to decode the memory
      banks of the /memory node so as to populate the global data with
      ram_size and board info for memory banks.
      
      The fdtdec_setup_memory_size() function decodes the first memory bank
      and sets up the gd->ram_size with the size of the memory bank. This
      function should be called from the boards dram_init().
      
      The fdtdec_setup_memory_banksize() function decode the memory banks
      (up to the CONFIG_NR_DRAM_BANKS) and populates the base address and size
      into the gd->bd->bi_dram array of banks. This function should be called
      from the boards dram_init_banksize().
      
      Signed-off-by: default avatarNathan Rossi <nathan@nathanrossi.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Michal Simek <monstr@monstr.eu>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      623f6019
  21. Nov 27, 2016
    • Alexander Graf's avatar
      efi_loader: Allow to compile helloworld.efi w/o bundling it · 95b62b2e
      Alexander Graf authored
      
      Today we can compile a self-contained hello world efi test binary that
      allows us to quickly verify whether the EFI loader framwork works.
      
      We can use that binary outside of the self-contained test case though,
      by providing it to a to-be-tested system via tftp.
      
      This patch separates compilation of the helloworld.efi file from
      including it in the u-boot binary for "bootefi hello". It also modifies
      the efi_loader test case to enable travis to pick up the compiled file.
      Because we're now no longer bloating the resulting u-boot binary, we
      can enable compilation always, giving us good travis test coverage.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      95b62b2e
  22. Nov 21, 2016
  23. Nov 17, 2016
    • Alexander Graf's avatar
      ls2080: Exit dpaa only right before exiting U-Boot · b7b8410a
      Alexander Graf authored
      
      On ls2080 we have a separate network fabric component which we need to
      shut down before we enter Linux (or any other OS). Along with that also
      comes configuration of the fabric using a description file.
      
      Today we always stop and configure the fabric in the boot script and
      (again) exit it on device tree generation. This works ok for the normal
      booti case, but with bootefi the payload we're running may still want to
      access the network.
      
      So let's add a new fsl_mc command that defers configuration and stopping
      the hardware to when we actually exit U-Boot, so that we can still use
      the fabric from an EFI payload.
      
      For existing boot scripts, nothing should change with this patch.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
      [agraf: Fix x86 build]
      b7b8410a
  24. Nov 14, 2016
Loading