08 Oct, 2013

2 commits


02 Oct, 2013

1 commit


24 Sep, 2013

2 commits

  • DFU spec mentions it as a method to upgrade firmware (software stored
    in writable non-volatile memory). It also says other potential uses of
    DFU is beyond scope of the spec.

    Here such a beyond the scope use is being attempted - directly pumping
    binary images from host via USB to RAM. This facility is a developer
    centric one in that it gives advantage over upgrading non-volatile
    memory for testing new images every time during development and/or
    testing.

    Directly putting image onto RAM would speed up upgrade process. This and
    convenience was the initial thoughts that led to doing this, speed
    improvement over MMC was only 1 second though - 6 sec on RAM as opposed
    to 7 sec on MMC in beagle bone, perhaps enabling cache and/or optimizing
    DFU framework to avoid multiple copy for ram (if worth) may help, and
    on other platforms and other boot media like NAND maybe improvement
    would be higher.

    And for a platform that doesn't yet have proper DFU suppport for
    non-volatile media's, DFU to RAM can be used.

    Another minor advantage would be to increase life of mmc/nand as it
    would be less used during development/testing.

    usage: ram
    eg. kernel ram 0x81000000 0x1000000

    Downloading images to RAM using DFU is not something new, this is
    acheived in openmoko also.

    DFU on RAM can be used for extracting RAM contents to host using dfu
    upload. Perhaps this can be extended to io for squeezing out register
    dump through usb, if it is worth.

    Signed-off-by: Afzal Mohammed
    Cc: Heiko Schocher
    Cc: Marek Vasut
    Cc: Lukasz Majewski
    Cc: Pantelis Antoniou
    Cc: Gerhard Sittig
    Acked-by: Marek Vasut
    Acked-by: Lukasz Majewski
    Acked-by: Heiko Schocher

    Afzal Mohammed
     
  • Besides the change of this patchset it also updates the
    README to reflect that GOT-generated relocations are no
    longer supported on ARM.

    cc: Albert ARIBAUD
    Signed-off-by: Jeroen Hofstee

    Jeroen Hofstee
     

20 Sep, 2013

2 commits


19 Sep, 2013

1 commit


12 Sep, 2013

1 commit


04 Sep, 2013

1 commit


21 Aug, 2013

3 commits

  • 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
     
  • Enable p1022ds to start from eSDHC with SPL.

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

    Ying Zhang
     
  • The code from the internal on-chip ROM. It loads the final uboot image
    into DDR, then jump to it to begin execution.

    The SPL's size is sizeable, the maximum size must not exceed the size of L2
    SRAM. It initializes the DDR through SPD code, and copys final uboot image
    to DDR. So there are two stage uboot images:
    * spl_boot, 96KB size. The env variables are copied to L2 SRAM, so that
    ddr spd code can get the interleaving mode setting in env. It loads
    final uboot image from offset 96KB.
    * final uboot image, size is variable depends on the functions enabled.

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

    Ying Zhang
     

19 Aug, 2013

1 commit


17 Aug, 2013

1 commit

  • At present the console for linux is silent if the U-Boot console is silent,
    unless CONFIG_SILENT_U_BOOT_ONLY is set. I wonder if a better way would be
    to have an environment variable to control this? Then we can control the
    verbosity from scripts, and set the variable to 'no' for those boards that
    want Linux to boot with console output.

    Signed-off-by: Simon Glass

    Simon Glass
     

10 Aug, 2013

2 commits

  • BSC9132QDS is a Freescale Reference Design Board for BSC9132 SoC which is a
    integrated device that contains two powerpc e500v2 cores and two DSP
    starcores.

    To support DSP starcore
    -Creating LAW and TLB for DSP-CCSR space.
    -Creating LAW for DSP-core subsystem M2 and M3 memory
    -Creating LAW for 1GB DDR which is connected exclusively to DSP-cores

    Signed-off-by: Manish Jaggi
    Signed-off-by: Priyanka Jain
    Acked-by: York Sun

    Priyanka Jain
     
  • Prepare for emulator support for mpc85xx parts.
    Disable DDR training and skip wrlvl_cntl_2 and wrlvl_cntl_3 registers.
    These two registers improve stability but not supported by emulator.
    Add CONFIG_FSL_TBCLK_EXTRA_DIV for possible adjustment to time base.

    Signed-off-by: York Sun

    York Sun
     

31 Jul, 2013

1 commit


27 Jul, 2013

1 commit


24 Jul, 2013

2 commits

  • The sandburst-specific i2c drivers have been deleted, conflict was just
    over the SPDX conversion.

    Conflicts:
    board/sandburst/common/ppc440gx_i2c.c
    board/sandburst/common/ppc440gx_i2c.h

    Signed-off-by: Tom Rini

    Tom Rini
     
  • 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

6 commits


17 Jul, 2013

2 commits

  • Add support for Atmel TPM devices with two wire interface.

    Signed-off-by: Dirk Eibach
    Signed-off-by: Reinhard Pfau
    Reviewed-by: Simon Glass
    Signed-off-by: Andy Fleming

    Dirk Eibach
     
  • Extend the tpm library with support for single authorized (AUTH1) commands
    as specified in the TCG Main Specification 1.2. (The internally used helper
    functions are implemented in a way that they could also be used for double
    authorized commands if someone needs it.)

    Provide enums with the return codes from the TCG Main specification.

    For now only a single OIAP session is supported.

    OIAP authorized version of the commands TPM_LoadKey2 and TPM_GetPubKey are
    provided. Both features are available using the 'tpm' command, too.

    Authorized commands are enabled with CONFIG_TPM_AUTH_SESSIONS. (Note that
    this also requires CONFIG_SHA1 to be enabled.)

    Signed-off-by: Reinhard Pfau
    Signed-off-by: Dirk Eibach
    Acked-by: Che-Liang Chiou
    Signed-off-by: Andy Fleming

    Reinhard Pfau
     

10 Jul, 2013

1 commit


02 Jul, 2013

1 commit


01 Jul, 2013

1 commit

  • Dfu transfer uses a buffer before writing data to the
    raw storage device. Make the size (in bytes) of this buffer
    configurable through environment variable "dfu_bufsiz".
    Defaut value is configurable through CONFIG_SYS_DFU_DATA_BUF_SIZE

    Signed-off-by: Heiko Schocher
    Cc: Pantelis Antoniou
    Cc: Tom Rini
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Cc: Marek Vasut
    Cc: Wolfgang Denk
    Acked-by: Tom Rini

    Heiko Schocher
     

26 Jun, 2013

4 commits

  • Align the list of default commands mentioned in the configuration options
    paragraph of the README with the actual definitions found in
    include/config_cmd_default.h

    Signed-off-by: Vincent Stehlé

    Vincent Stehlé
     
  • 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
     
  • Add a structure to describe an algorithm which can sign and (later) verify
    images.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This patch adds the driver for keyboard that's controlled by ChromeOS EC.

    Signed-off-by: Randall Spangler
    Signed-off-by: Simon Glass
    Signed-off-by: Vincent Palatin
    Signed-off-by: Hung-ying Tyan
    Acked-by: Simon Glass

    Hung-ying Tyan
     

25 Jun, 2013

1 commit


24 Jun, 2013

1 commit


21 Jun, 2013

2 commits

  • There will need the environment in SPL for reasons other than network
    support (in particular, hwconfig contains info for how to set up DDR).

    Add a new symbol CONFIG_SPL_ENV_SUPPORT to replace CONFIG_SPL_NET_SUPPORT
    for environment in common/Makefile.

    Signed-off-by: Ying Zhang
    Reviewed-by: Tom Rini
    Signed-off-by: Andy Fleming

    Ying Zhang
     
  • For SD/SPI 2-stage bootloader, the On-Chip Rom code loads the SPL into L2 SRAM,
    then jump to it to begin execution. After that, the SPL loads the final uboot
    image into DDR, then jump to it to begin execution. The segment .resetvec in
    the SPL and in final U-boot is useless.

    So, add new symbols CONFIG_SYS_MPC85XX_NO_RESETVEC for this application.
    If CONFIG_SYS_MPC85XX_NO_RESETVEC is set, the segment .resetvec is excluded
    and the segment .bootpg is placed in the previous 4K of the segment .text.

    Signed-off-by: Ying Zhang
    Signed-off-by: Andy Fleming

    Ying Zhang