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

21 commits


09 Sep, 2014

2 commits

  • The load region size of EIM-NOR are defined to 0. For this case,
    the parameter "imximage_init_loadsize" must be calculated.
    The imximage tool implements the calculation in the "imximage_generate"
    function, but the following function "imximage_set_header" resets the value
    and not calculate. This bug cause some fields of IVT head are not
    correct, for example the boot_data and DCD overlay the application area.

    Signed-off-by: Ye.Li

    Ye.Li
     
  • According to mx53 and mx6 reference manuals:

    "The maximum size of the DCD limited to 1768 bytes."

    As each DCD entry consists of 8 bytes, we have a total of 1768 / 8 = 221, and
    excluding the first entry, which is the header leads to 220 as the maximum
    number for DCD size.

    Reported-by: Jonas Karlsson
    Signed-off-by: Fabio Estevam
    Acked-by: Nitin Garg
    Acked-by: Nitin Garg

    Fabio Estevam
     

06 Sep, 2014

7 commits

  • A missing 'global' declaration means that this feature does not currently
    work. Fix it.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Some boards unfortunately build with warnings and it is useful to be able
    to easily distinguish the warnings from the errors.

    Use a simple pattern match to categorise gcc output into warnings and
    errors, and display each separately. New warnings are shown in magenta (with
    a w+ prefix) and fixed warnings are shown in yellow with a w- prefix.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Add a -l option to display a list of offending boards against each
    error/warning line. The information will be shown in brackets as below:

    02: wip
    sandbox: + sandbox
    arm: + seaboard
    +(sandbox) arch/sandbox/cpu/cpu.c: In function 'timer_get_us':
    +(sandbox) arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable]
    +(seaboard) board/nvidia/seaboard/seaboard.c: In function 'pin_mux_mmc':
    +(seaboard) board/nvidia/seaboard/seaboard.c:36:9: warning: unused variable 'fred' [-Wunused-variable]
    +(seaboard) int fred;
    +(seaboard) ^

    Signed-off-by: Simon Glass

    Simon Glass
     
  • The full path is long and also includes buildman private directories.
    Clean this up, so that only a relative U-Boot path is shown.

    This will change warnings like these:

    /home/sjg/c/src/third_party/u-boot/buildman5/.bm-work/00/arch/sandbox/cpu/cpu.c: In function 'timer_get_us':
    /home/sjg/c/src/third_party/u-boot/buildman5/.bm-work/00/arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable]

    /home/sjg/c/src/third_party/u-boot/files/arch/sandbox/cpu/cpu.c: In function 'timer_get_us':
    /home/sjg/c/src/third_party/u-boot/files/arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable]

    to:

    arch/sandbox/cpu/cpu.c: In function 'timer_get_us':
    arch/sandbox/cpu/cpu.c:40:9: warning: unused variable 'i' [-Wunused-variable]

    Signed-off-by: Simon Glass

    Simon Glass
     
  • Some boards are known to be broken and it is convenient to be able to
    exclude them from the build.

    Add an --exclude option to specific boards to exclude. This uses the
    same matching rules as the normal 'include' arguments, and is a comma-
    separated list of regular expressions.

    Suggested-by: York Sun
    Signed-off-by: Simon Glass

    Simon Glass
     
  • These characters are commonly used in variables, so permit them. Also
    document the permitted characters.

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

    Simon Glass
     
  • When buildman finds errors/warnings when building, set the return code to
    indicate this.

    Suggested-by: York Sun
    Signed-off-by: Simon Glass

    Simon Glass