03 Sep, 2013

1 commit


22 Aug, 2013

1 commit


21 Aug, 2013

1 commit

  • Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can
    not be more than 4K. So, the SPL cannot initialize the DDR with the SPD
    code. This patch introduces TPL to enable a loader stub that is loaded
    by the code from the SPL. It initializes the DDR with the SPD or other
    operations.

    The TPL's size is sizeable, the maximum size is decided by the memory's
    size that TPL runs. It initializes the DDR through SPD code, and copys
    final uboot image to DDR. So there are three stage uboot images:
    * spl_boot, * tpl_boot, * final uboot image

    Signed-off-by: Ying Zhang
    Acked-by: York Sun

    Ying Zhang
     

20 Aug, 2013

2 commits

  • SPL defines CONFIG_SPL_BUILD but this does not percolate to the
    autoconf.mk Makefile. As a result the build breaks when
    CONFIG_SPL_BUILD is used in the board-specific include header file. With
    this, there is a possibility of having a CONFIG option defined in the
    header file but not defined in the Makefile causing all kinds of build
    failure and problems.

    It also messes things for up, for example, when one might want to
    undefine options to keep the SPL small and doesn't want to be stuck with
    the CONFIG options used for U-boot. Lastly, this also avoids defining
    special CONFIG_SPL_ variables for cases where some options are required
    in U-boot but not in SPL.

    We add a spl-autoconf.mk rule that is generated for SPL with the
    CONFIG_SPL_BUILD flag and conditionally include it for SPL builds.

    Signed-off-by: Joel Fernandes
    Signed-off-by: Ying Zhang

    Joel Fernandes
     
  • Signed-off-by: Tom Rini

    Tom Rini
     

19 Aug, 2013

1 commit


15 Aug, 2013

1 commit


03 Aug, 2013

1 commit

  • Subsequent patches assume that dtc supports various recent features.
    These are available in dtc 1.4.0. Validate that dtc is at least that
    version.

    Signed-off-by: Stephen Warren
    Acked-by: Simon Glass

    Stephen Warren
     

24 Jul, 2013

1 commit

  • Like many other projects, U-Boot has a tradition of including big
    blocks of License headers in all files. This not only blows up the
    source code with mostly redundant information, but also makes it very
    difficult to generate License Clearing Reports. An additional problem
    is that even the same lincenses are referred to by a number of
    slightly varying text blocks (full, abbreviated, different
    indentation, line wrapping and/or white space, with obsolete address
    information, ...) which makes automatic processing a nightmare.

    To make this easier, such license headers in the source files will be
    replaced with a single line reference to Unique Lincense Identifiers
    as defined by the Linux Foundation's SPDX project [1]. For example,
    in a source file the full "GPL v2.0 or later" header text will be
    replaced by a single line:

    SPDX-License-Identifier: GPL-2.0+

    We use the SPDX Unique Lincense Identifiers here; these are available
    at [2].

    Note: From the legal point of view, this patch is supposed to be only
    a change to the textual representation of the license information,
    but in no way any change to the actual license terms. With this patch
    applied, all files will still be licensed under the same terms they
    were before.

    Note 2: The apparent difference between the old "COPYING" and the new
    "Licenses/gpl-2.0.txt" only results from switching to the upstream
    version of the license which is differently formatted; there are not
    any actual changes to the content.

    Note 3: There are some recurring questions about linense issues, such
    as:
    - Is a "All Rights Reserved" clause a problem in GPL code?
    - Are files without any license header a problem?
    - Do we need license headers at all?

    The following excerpt from an e-mail by Daniel B. Ravicher should help
    with these:

    | Message-ID:
    | Date: Wed, 21 Oct 2009 18:35:22 -0400
    | From: "Daniel B. Ravicher"
    | To: Wolfgang Denk
    | Subject: Re: GPL and license cleanup questions
    |
    | Mr. Denk,
    |
    | Wolfgang Denk wrote:
    | > - There are a number of files which do not include any specific
    | > license information at all. Is it correct to assume that these files
    | > are automatically covered by the "GPL v2 or later" clause as
    | > specified by the COPYING file in the top level directory of the
    | > U-Boot source tree?
    |
    | That is a very fact specific analysis and could be different across the
    | various files. However, if the contributor could reasonably be expected
    | to have known that the project was licensed GPLv2 or later at the time
    | she made her contribution, then a reasonably implication is that she
    | consented to her contributions being distributed under those terms.
    |
    | > - Do such files need any clean up, for example should we add GPL
    | > headers to them, or is this not needed?
    |
    | If the project as a whole is licensed under clear terms, you need not
    | identify those same terms in each file, although there is no harm in
    | doing so.
    |
    | > - There are other files, which include both a GPL license header
    | > _plus_ some copyright note with an "All Rights Reserved" clause. It
    | > has been my understanding that this is a conflict, and me must ask
    | > the copyright holders to remove such "All Rights Reserved" clauses.
    | > But then, some people claim that "All Rights Reserved" is a no-op
    | > nowadays. License checking tools (like OSLC) seem to indicate this is
    | > a problem, but then we see quite a lot of "All rights reserved" in
    | > BSD-licensed files in gcc and glibc. So what is the correct way to
    | > deal with such files?
    |
    | It is not a conflict to grant a license and also reserve all rights, as
    | implicit in that language is that you are reserving all "other" rights
    | not granted in the license. Thus, a file with "Licensed under GPL, All
    | Rights Reserved" would mean that it is licensed under the GPL, but no
    | other rights are given to copy, modify or redistribute it.
    |
    | Warm regards,
    | --Dan
    |
    | Daniel B. Ravicher, Legal Director
    | Software Freedom Law Center (SFLC) and Moglen Ravicher LLC
    | 1995 Broadway, 17th Fl., New York, NY 10023
    | (212) 461-1902 direct (212) 580-0800 main (212) 580-0898 fax
    | ravicher@softwarefreedom.org www.softwarefreedom.org

    [1] http://spdx.org/
    [2] http://spdx.org/licenses/

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

23 Jul, 2013

1 commit


13 Jul, 2013

1 commit


03 Jul, 2013

1 commit

  • Some OS (like OS X) do not provide a generic readelf. We should enforce to use
    the toochain provided readelf instead, to do so use $(CROSS_COMPILE)readelf.

    Signed-off-by: Andreas Bießmann
    Acked-by: Jeroen Hofstee
    Tested-by: Lubomir Popov

    Andreas Bießmann
     

29 Jun, 2013

1 commit


26 Jun, 2013

2 commits

  • RSA provides a public key encryption facility which is ideal for image
    signing and verification.

    Images are signed using a private key by mkimage. Then at run-time, the
    images are verified using a private key.

    This implementation uses openssl for the host part (mkimage). To avoid
    bringing large libraries into the U-Boot binary, the RSA public key
    is encoded using a simple numeric representation in the device tree.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This tool provides the facility to decode U-Boot trace data and write out
    a text file in Linux ftrace format for use with pytimechart.

    Signed-off-by: Simon Glass

    Simon Glass
     

22 Jun, 2013

2 commits


14 Jun, 2013

1 commit


08 Jun, 2013

1 commit


03 Jun, 2013

1 commit

  • This patch adds generic codes to support Freescale's Vybrid VF610 CPU.

    It aligns Vybrid VF610 platform with i.MX platform. As there are
    some differences between VF610 and i.MX platforms, the specific
    codes are in the arch/arm/cpu/armv7/vf610 directory.

    Signed-off-by: Alison Wang
    Reviewed-by: Benoît Thébaudeau

    Alison Wang
     

29 May, 2013

1 commit

  • Even when eventually building u-boot-dtb-tegra.bin, separately building
    u-boot-nodtb-tegra.bin can be useful, since building it encapsulates the
    SPL padding step. If you want to tweak u-boot.dtb and regenerate
    u-boot-dtb-tegra.bin, it is then a simple cat operation.

    Signed-off-by: Stephen Warren
    Signed-off-by: Tom Warren

    Stephen Warren
     

11 May, 2013

1 commit


06 May, 2013

1 commit

  • The u-boot-imx23.bd and u-boot-imx28.bd need to be preprocessed, otherwise
    they have issues with out-of-tree build where elftosb tool couldn't sometimes
    find the u-boot.bin and spl/u-boot-spl.bin .

    Preprocess these .bd files with sed and insert full path to u-boot.bin and
    spl/u-boot-spl.bin to prevent this issue. Moreover, to avoid adding more
    churn into main Makefile, move all this preprocessing and u-boot.sb generation
    into CPU directory instead.

    Signed-off-by: Marek Vasut
    Cc: Fabio Estevam
    Cc: Stefano Babic
    Acked-by: Otavio Salvador

    Marek Vasut
     

01 May, 2013

1 commit

  • At present the generic board error can occur when configuring U-Boot, or
    during distclean, but this is incorrect. The existing autoconf.mk may come
    from an earlier U-Boot configuration which is about to be overwritten.

    Make the error conditional so that it will only be triggered when we are
    actually building U-Boot.

    This avoids a problem where the system is being reconfigured to remove
    CONFIG_SYS_GENERIC_BOARD on an architecture that does not support it.
    Currently this will print an error and require the manual removal of
    include/autoconf.mk.

    Signed-off-by: Simon Glass

    Simon Glass
     

22 Apr, 2013

2 commits

  • This patch moves the following functions into the imx-common
    directory:

    - mxs_wait_mask_set()
    - mxs_wait_mask_clr()
    - mxs_reset_block()

    These are currently used by i.MX28. But the upcoming GPMI NAND port
    for i.MX6 will also use these functions. So lets move them to a
    common location to re-use them.

    Signed-off-by: Stefan Roese
    Cc: Stefano Babic
    Cc: Marek Vasut
    Cc: Fabio Estevam

    Stefan Roese
     
  • This new make target "u-boot-img-spl-at-end.bin" consists of the
    the real, full-blown U-Boot image and the U-Boot SPL binary
    directly attached to it. The full-blown U-Boot image has the
    mkimage header included, with its load-address and entry-point.

    This will be used by the upcoming lwmon5 PPC440EPx derivate board
    port.

    Signed-off-by: Stefan Roese

    Stefan Roese
     

19 Apr, 2013

1 commit


15 Apr, 2013

2 commits


13 Apr, 2013

2 commits


12 Apr, 2013

5 commits

  • The migration of boards from Makefile to boards.cfg was due for v2012.03, but
    smdk6400 did not follow, and it does not build, so move it to scrapyard. It will
    still be possible to restore it from the Git history before fixing it.

    Signed-off-by: Benoît Thébaudeau

    Benoît Thébaudeau
     
  • This image combines the SPL with the i.MX header, the FCB and U-Boot.

    For i.MX25/35/51, the FCB is ignored by the boot ROM, so this image is just
    useful because it can be programmed on a NAND Flash page boundary.

    For i.MX53, the FCB is required by the boot ROM.

    This does not support i.MX6 so far because its FCB is more complicated.

    Signed-off-by: Benoît Thébaudeau

    Benoît Thébaudeau
     
  • This image combines the SPL with the i.MX header and U-Boot. This is a
    convenient way of having a single image to program on some boot devices.

    The i.MX header has to be added to the SPL before appending U-Boot, so that the
    boot ROM loads only the SPL.

    Signed-off-by: Benoît Thébaudeau

    Benoît Thébaudeau
     
  • make never uses the SHELL variable from the environment. Instead, it
    uses /bin/sh, or the value assigned to the SHELL variable by the Makefile. This
    makes the export of the SHELL variable useless for sub-makes (but still useful
    for the environment of recipes). However, we want all makes to use the same
    shell.

    This patch fixes this issue by moving the SHELL variable setup and export to the
    top config.mk, so that all Makefile-s including it use the same shell.

    Since BASH is used by default, this makes it possible to use things
    like 'echo -e ...' in sub-makes, which would otherwise fail e.g. with /bin/sh
    symlinked to /bin/dash on Ubuntu.

    Signed-off-by: Benoît Thébaudeau
    Reviewed-by: Tom Rini

    Benoît Thébaudeau
     
  • Change CONFIG_SPL_PAD_TO from a link address to an image offset since this is
    more handy and closer to the purpose of this config.

    Automatically define CONFIG_SPL_PAD_TO to CONFIG_SPL_MAX_SIZE (or 0 without
    CONFIG_SPL_MAX_SIZE).

    Test that CONFIG_SPL_PAD_TO >= CONFIG_SPL_MAX_SIZE if CONFIG_SPL_PAD_TO is
    non-zero.

    Signed-off-by: Benoît Thébaudeau

    Benoît Thébaudeau
     

04 Apr, 2013

1 commit


03 Apr, 2013

1 commit

  • It was noticed that when `make distclean' is run, the make process
    terminates with error reporting something like:

    rm: cannot remove '/tmp/foobar/': Is a directory
    make: *** [clobber] Error 1

    The problem is that the list of files targeted for removal includes a
    directory in case CONFIG_SPL_TARGET is not set.

    The fix has been tested as follows:

    Ran several times the following sequence of commands:

    CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- make O=/tmp/foobar smdk5250_config
    CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- make O=/tmp/foobar distclean

    it did not cause an error, it used to before this change.

    Signed-off-by: Vadim Bendebury
    Acked-by: Simon Glass

    Vadim Bendebury
     

29 Mar, 2013

1 commit


25 Mar, 2013

1 commit