08 Dec, 2017

7 commits

  • This does not appear to be used by any boards. Before introducing a new
    log system, remove this old one.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • With clang this gives a warning because hubsts appears to be used before
    it is set, even if ultimately it is not used. Simplify the code to avoid
    this problem.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The debug() macro now evaluates its expression so does not need #ifdef
    protection. In fact the current code causes a warning with the new log
    implementation. Adjust the code to fix this.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • Before adding new features, move these definitions to a separate header
    to avoid further cluttering common.h.

    Signed-off-by: Simon Glass
    Reviewed-by: Bin Meng

    Simon Glass
     
  • While sandbox works OK without the special-case code, it does result in
    console output being stored in the pre-console buffer while sandbox starts
    up. If there is a crash or a problem then there is no indication of what
    is going on.

    For ease of debugging it seems better to revert this change also.

    This reverts commit d8c6fb8cedbc35eee27730a7fa544e499b3c81cc.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • We cannot use sandbox memory at 0 since other things use memory at that
    address. Move it up out of the way.

    Note that the pre-console buffer is currently disabled with sandbox, but
    this change will avoid confusion if it is manually enabled.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • While sandbox works OK without the special-case code, it does result in
    console output being stored in the pre-console buffer while sandbox starts
    up. If there is a crash or a problem then there is no indication of what
    is going on.

    For ease of debugging it seems better to revert this change.

    This reverts commit 47b98ad0f6779485d0f0c14f337c3eece273eb54.

    Signed-off-by: Simon Glass

    Simon Glass
     

07 Dec, 2017

8 commits


06 Dec, 2017

3 commits

  • Since commit 2614a208471e ("common: command: tempory buffer should
    have size of command line buf"), there have been consistent Travis CI
    failures on my builds (interestingly not for Tom, even though building
    the same commit id) due to a SEGV in building the byteswapped
    omapimage:
    arm: pcm051_rev3
    make[2]: *** [MLO.byteswap] Error 139
    ^^^ error code for a SEGV

    Turns out that the word-based byte-swapping loop in omapimage.c is to
    blame. With the loop condition
    while (swapped st_size / sizeof(uint32_t)))
    there had been one-too-many iterations for all file sizes divisible by
    the sizeof(uint32_t). I.e. we had 1 iteration for 0 bytes (and also 1
    through 3 bytes) and 2 iterations at 4 bytes... clearly overshooting
    on 0 and 4 bytes.

    This commit fixes the calculation of an up-rounded word-count and
    makes sure to keep the zero-based loop-counter below the number of
    words to be processed.

    References: 2614a20 ("common: command: tempory buffer should have size of command line buf")
    Fixes: 79b9ebb ("omapimage: Add support for byteswapped SPI images")
    Signed-off-by: Philipp Tomsich
    Reviewed-by: Martin Elshuber

    Philipp Tomsich
     
  • Patch queue for efi - 2017-12-05

    Highlights for this release:

    - Dynamic EFI object creation (lists instead of static arrays)
    - EFI selftest improvements
    - Minor fixes

    Tom Rini
     
  • Commit f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot
    services") changed the internal EFI API header without adapting its existing
    EFI stub users. Let's adapt the EFI stub as well.

    Fixes: f5a2a93892f ("efi_loader: consistently use efi_uintn_t in boot services")
    Signed-off-by: Alexander Graf
    Reviewed-by: Heinrich Schuchardt

    Alexander Graf
     

05 Dec, 2017

1 commit


04 Dec, 2017

21 commits