11 Nov, 2014

1 commit


08 Nov, 2014

2 commits

  • On architectures where 'long' is 64 bit, the u-boot environment
    as seen by the fw_env tools was missing 4 bytes.
    This patch fixes getenvsize(), and thus also ensures that the
    environment's CRC32 checksum is calculated correctly.

    Signed-off-by: Dominic Sacré
    Cc: Wolfgang Denk
    Cc: Tom Rini

    Dominic Sacré
     
  • Since Linux 3.15, relative path feature and related fixes,
    cleanups have been merged to the top Makefile.

    The relative path feature looks stable enough, so let's import it
    to U-Boot along with various cleanups.

    Commits imported from Linux (some need adjustment) are:

    [1] commit 7e1c04779efd by Michal Marek
    kbuild: Use relative path for $(objtree)

    [2] commit 890676c65d69 by Michal Marek
    kbuild: Use relative path when building in the source tree

    [3] commit 9da0763bdd82 by Michal Marek
    kbuild: Use relative path when building in a subdir of the source tree

    [4] commit c2e28dc975ea by Michal Marek
    kbuild: Print the name of the build directory

    [5] commit 066b7ed95580 by Michal Marek
    kbuild: Do not print the build directory with make -s

    [6] commit 3f1d9a6cec01 by Michal Marek
    kbuild: make -s should be used with kernelrelease/kernelversion/image_name

    [7] commit 7ff525712acf by Masahiro Yamada
    kbuild: fake the "Entering directory ..." message more simply

    [8] commit 745a254322c8 by Masahiro Yamada
    kbuild: use $(Q) for sub-make target

    [9] commit aa55c8e2f7a3 by Masahiro Yamada
    kbuild: handle C=... and M=... after entering into build directory

    [10] commit ab7474ea5361 by Borislav Petkov
    Kbuild: Ignore GREP_OPTIONS env variable

    To use relative path feature, tools/Makefile and scripts/Makefile.autoconf
    must be tweaked.

    Signed-off-by: Michal Marek
    Signed-off-by: Borislav Petkov
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

06 Nov, 2014

1 commit


05 Nov, 2014

1 commit

  • This patch fix the kwimage tools for version 0 fileformat used for kirkwood
    Tested on sheevaplug

    Signed-off-by: Gerald Kerma
    Tested-by: Stefan Roese
    Reviewed-by: Stefan Roese
    Acked-By: Prafulla Wadaskar

    Gerald Kerma
     

03 Nov, 2014

1 commit

  • In system boot chapter of i.MX6 reference manual, the "Image Vector Table"
    figure shows the bootdata.start points to the beginning of the destination
    memory. It means the bootdata.size should contain the IVT offset part,
    but the calculation in imximage tool does not have.

    We found this issue when booting from QuadSPI NOR on i.MX6SX. The u-boot
    runs into abnormal (crash or stop) after booting. After checked the destination
    memory where the image is loaded to, there are hundreds of bytes at
    the image end are not loaded into memory. Since there is a 4096 bytes
    round in the calculation, for the booting devices using smaller IVT offset,
    such as SD and SPI booting, they are not easy to reproduce.

    Signed-off-by: Ye.Li

    Ye.Li
     

31 Oct, 2014

2 commits

  • This patch fixes a compilation warning of kwbimage.c:

    tools/kwbimage.c: In function ‘kwbimage_set_header’:
    tools/kwbimage.c:784:8: warning: ‘headersz’ may be used uninitialized in this function [-Wmaybe-uninitialized]
    memcpy(ptr, image, headersz);
    ^
    Instead of using multiple if statements, use a switch statement with
    a default entry. And return with error if an unsupported version
    is configured in the cfg file.

    Signed-off-by: Stefan Roese
    Acked-By: Wolfgang Denk

    Stefan Roese
     
  • kwbimage uses get_current_dir_name(3) which is a gnu extension and not
    available on darwin host. Fix this by converting to portable getcwd(3)
    function.

    This patch fixes the following error:
    ---88---

    Signed-off-by: Andreas Bießmann
    Cc: Stefan Roese
    Acked-by: Stefan Roese
    [agust: fixed getcwd() return warning]
    Signed-off-by: Anatolij Gustschin

    Andreas Bießmann
     

28 Oct, 2014

1 commit


27 Oct, 2014

3 commits


23 Oct, 2014

3 commits

  • This patch integrates the Barebox version of this kwbimage.c file into
    U-Boot. As this version supports the image version 1 type for the
    Armada XP / 370 SoCs.

    It was easier to integrate the existing and known to be working Barebox
    source than to update the current U-Boot version to support this
    v1 image header format. Now all Marvell MVEBU SoCs are supported:

    Image type 0: Kirkwood & Dove
    Image type 1: Armada 370 & Armada XP

    Please note that the current v1 support has this restuction (same as
    has Barebox version):

    Not implemented: support for the register headers and secure headers
    in v1 images

    Tested on Marvell DB-78460-BP eval board.

    Signed-off-by: Stefan Roese
    Tested-by: Luka Perkov

    Stefan Roese
     
  • Signed-off-by: Stefan Roese
    Tested-by: Luka Perkov

    Stefan Roese
     
  • The barebox version of the kwboot tool has evolved a bit. To support
    Armada XP and Dove. Additionally a few minor fixes have been applied.
    So lets sync with the latest barebox version.

    Please note that the main difference between both versions now is, that
    the U-Boot version still supports the -p option, to dynamically patch
    an image for UART boot mode. I didn't test it now though.

    Signed-off-by: Stefan Roese
    Tested-by: Luka Perkov

    Stefan Roese
     

06 Oct, 2014

1 commit

  • Like many platforms, the Altera socfpga platform requires that the
    preloader be "signed" in a certain way or the built-in boot ROM will
    not boot the code.

    This change automatically creates an appropriately signed preloader
    from an SPL image.

    The signed image includes a CRC which must, of course, be generated
    with a CRC generator that the SoCFPGA boot ROM agrees with otherwise
    the boot ROM will reject the image.

    Unfortunately the CRC used in this boot ROM is not the same as the
    Adler CRC in lib/crc32.c. Indeed the Adler code is not technically a
    CRC but is more correctly described as a checksum.

    Thus, the appropriate CRC generator is added to lib/ as crc32_alt.c.

    Signed-off-by: Charles Manning
    Signed-off-by: Marek Vasut
    Cc: Chin Liang See
    Cc: Dinh Nguyen
    Cc: Albert Aribaud
    Cc: Tom Rini
    Cc: Wolfgang Denk
    Cc: Pavel Machek
    Acked-by: Pavel Machek

    V2: - Zap unused constant
    - Explicitly print an error message in case of error
    - Rework the hdr_checksum() function to take the *header directly
    instead of a plan buffer pointer

    Charles Manning
     

25 Sep, 2014

3 commits

  • This tools is unnecessary since commit f6c8f38ec601
    (tools/genboardscfg.py: improve performance more with Kconfiglib).

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • We are still keeping invalid email addressed in MAINTAINERS
    because they carry information.

    The problem is that scripts/get_maintainer.pl adds emails in the
    "M:" field including invalid ones.

    We want to comment out invalid email addresses in MAINTAINERS
    to prevent scripts/get_maintainer.pl from picking them up.
    On the other hand, we want to collect them for boards.cfg
    to know the last known maintainer of each board.

    This commit adjusts tools/genboardscfg.py to parse also
    the commented "M:" fields, which is useful for the next commit.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • When building the U-Boot tools for non-ELF platforms (such as Blackfin
    FLAT), since commit 79fc0c5f498c3982aa4740c273ab1a9255063d9c
    ("tools/env: cross-compile fw_printenv without setting HOSTCC"), the
    build fails because it tries to strip a FLAT binary, which does not
    make sense.

    This commit solves this by changing the stripping logic in
    tools/env/Makefile to be similar to the one in tools/Makefile. This
    logic continues to apply strip to the final binary, but does not abort
    the build if it fails, and does the stripping in place on the final
    binary. This allows the logic to work fine if stripping doesn't work,
    as it leaves the final binary untouched.

    Signed-off-by: Thomas Petazzoni
    Cc: Masahiro Yamada
    Cc: Sonic Zhang
    Reviewed-by: Masahiro Yamada
    Reviewed-by: Sonic Zhang

    Thomas Petazzoni
     

22 Sep, 2014

2 commits


18 Sep, 2014

2 commits


17 Sep, 2014

2 commits

  • The idea of using Kconfiglib was given by Tom Rini.
    It allows us to scan lots of defconfigs very quickly.
    This commit also uses multiprocessing for further acceleration.

    Signed-off-by: Masahiro Yamada
    Suggested-by: Tom Rini
    Acked-by: Simon Glass

    Masahiro Yamada
     
  • Kconfiglib is the flexible Python Kconfig parser and library
    created by Ulf Magnusson.
    (https://github.com/ulfalizer/Kconfiglib)

    This commit imports kconfiglib.py from
    commit ce84c22e58fa59cb93679d4ead03c3cd1387965e,
    with ISC SPDX-License-Identifier.

    Signed-off-by: Masahiro Yamada
    Signed-off-by: Ulf Magnusson
    Cc: Ulf Magnusson
    Cc: Wolfgang Denk

    Masahiro Yamada
     

10 Sep, 2014

15 commits