11 Jul, 2017

1 commit


10 Jul, 2017

1 commit

  • This error code has not been upstreamed and is not really needed since it
    is unlikely to be triggered. Drop it to maintain compatability with
    upstream.

    Reported-by: Peter Robinson

    Signed-off-by: Simon Glass
    Tested-by: Peter Robinson

    Simon Glass
     

04 Jul, 2017

2 commits

  • If a relocation type is not supported loading the EFI binary
    should be aborted.

    Writing a message only is insufficient.

    Signed-off-by: Heinrich Schuchardt
    [agraf: use a() != b coding style]
    Signed-off-by: Alexander Graf

    xypron.glpk@gmx.de
     
  • UEFI spec 2.7 indicates that HandleProtocol can be implemented
    by calling OpenProtocol with
    attributes = EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL.

    Currently we pass attributes = 0 to efi_open_protocol. 0 is not a
    valid value when calling OpenProtocol. This does not cause any errors
    yet because our implementation of OpenProtocol is incomplete.

    We should pass the correct value to enable a fully compliant
    implementation of OpenProtocol in the future.

    Signed-off-by: Heinrich Schuchardt
    Signed-off-by: Alexander Graf

    xypron.glpk@gmx.de
     

03 Jul, 2017

3 commits


21 Jun, 2017

1 commit

  • endian.h on FreeBSD system exist in sys/ subdirectory.
    FreeBSD already have a fls function defined in strings.h which is included
    in string.h if __BSD_VISIBLE is defined, as a check for this.

    Signed-off-by: Emmanuel Vadot

    Emmanuel Vadot
     

06 Jun, 2017

1 commit


03 Jun, 2017

6 commits


01 Jun, 2017

5 commits


23 May, 2017

1 commit


22 May, 2017

1 commit

  • Commit 94e3c8c4fd7b ("crypto/fsl - Add progressive hashing support
    using hardware acceleration.") created entries for CONFIG_SHA1,
    CONFIG_SHA256, CONFIG_SHA_HW_ACCEL, and CONFIG_SHA_PROG_HW_ACCEL.
    However, no defconfig has migrated to it. Complete the move by first
    adding additional logic to various Kconfig files to select this when
    required and then use the moveconfig tool. In many cases we can select
    these because they are required to implement other drivers. We also
    correct how we include the various hashing algorithms in SPL.

    This commit was generated as follows (after Kconfig additions):

    [1] tools/moveconfig.py -y SHA1 SHA256 SHA_HW_ACCEL
    [2] tools/moveconfig.py -y SHA_PROG_HW_ACCEL

    Note:
    We cannot move SHA_HW_ACCEL and SHA_PROG_HW_ACCEL simultaneously
    because there is dependency between them.

    Cc: Poonam Aggrwal
    Cc: Naveen Burmi
    Cc: Po Liu
    Cc: Shengzhou Liu
    Cc: Priyanka Jain
    Cc: Shaohui Xie
    Cc: Chunhe Lan
    Cc: Chander Kashyap
    Cc: Steve Rae
    Cc: Dirk Eibach
    Cc: Feng Li
    Cc: Alison Wang
    Cc: Sumit Garg
    Cc: Mingkai Hu
    Cc: York Sun
    Cc: Prabhakar Kushwaha
    Cc: Jaehoon Chung
    Cc: Akshay Saraswat
    Cc: Heiko Schocher
    Cc: Jagan Teki
    Signed-off-by: Tom Rini
    Reviewed-by: Simon Glass
    Signed-off-by: Tom Rini

    Tom Rini
     

12 May, 2017

3 commits


10 May, 2017

2 commits

  • In some boards like the Raspberry Pi the initial bootloader will pass
    a DT to the kernel. When using U-Boot as such kernel, the board code in
    U-Boot should be able to provide U-Boot with this, already assembled
    device tree blob.

    This patch introduces a new config option CONFIG_OF_BOARD to use instead
    of CONFIG_OF_EMBED or CONFIG_OF_SEPARATE which will initialize the DT
    from a board-specific funtion instead of bundling one with U-Boot or as
    a separated file. This allows boards like the Raspberry Pi to reuse the
    device tree passed from the bootcode.bin and start.elf firmware
    files, including the run-time selected device tree overlays.

    Signed-off-by: Alex Deymo
    Reviewed-by: Simon Glass

    Alex Deymo
     
  • A common use of memmove() can be handled by memcpy(). Also memcpy()
    includes an optimisation for large sizes: it copies a word at a time. So
    we can get a speed-up by calling memcpy() to handle our move in this case.

    Update memmove() to call memcpy() if the destination is before the source.

    Signed-off-by: Simon Glass
    Reviewed-by: Tom Rini

    Simon Glass
     

06 May, 2017

1 commit


30 Apr, 2017

1 commit


14 Apr, 2017

4 commits


13 Apr, 2017

3 commits

  • Sync with Linux commit ad0376eb1483b ("Merge tag 'edac_for_4.11_2'").

    Signed-off-by: Peng Fan
    Cc: Tom Rini

    Peng Fan
     
  • 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: Vignesh R
    Reviewed-by: Tom Rini
    Reviewed-by: Simon Glass

    Vignesh R
     
  • aes.h is a too generic name if this file can
    be exported and used by a program.
    Rename it to avoid any conflicts with
    other files (for example, from openSSL).

    Signed-off-by: Stefano Babic

    Stefano Babic
     

11 Apr, 2017

2 commits

  • For some reason Python 3 seems to think it does not need to build
    the library. Using the --force parameter makes sure that the library
    gets built always. This is especially important since we move the
    library in the next step of the Makefile, hence forcing a rebuild
    every time the higher level Makefile triggers a rebuild is required
    to make sure the library is always there.

    Signed-off-by: Stefan Agner
    Acked-by: Simon Glass

    Stefan Agner
     
  • This a few minor changes down from upstream since the last sync.

    Signed-off-by: Simon Glass

    Simon Glass
     

07 Apr, 2017

2 commits