11 Jun, 2014

1 commit


06 Jun, 2014

2 commits

  • make the use of legacy image format configurable through
    the config define CONFIG_IMAGE_FORMAT_LEGACY.

    When relying on signed FIT images with required signature check
    the legacy image format should be disabled. Therefore introduce
    this new define and enable legacy image format if CONFIG_FIT_SIGNATURE
    is not set. If CONFIG_FIT_SIGNATURE is set disable per default
    the legacy image format.

    Signed-off-by: Heiko Schocher
    Cc: Simon Glass
    Cc: Lars Steubesand
    Cc: Mike Pearce
    Cc: Wolfgang Denk
    Cc: Tom Rini
    Cc: Michal Simek
    Acked-by: Simon Glass

    Heiko Schocher
     
  • Define the MAX_CLUSTSIZE to default of 65536 only if
    CONFIG_FS_FAT_MAX_CLUSTSIZE is not defined.
    This option has been provided to save memory in some
    memory constrained cases.

    Signed-off-by: Siva Durga Prasad Paladugu
    Acked-by: Michal Simek

    Siva Durga Prasad Paladugu
     

02 Jun, 2014

1 commit

  • Now that we wait the correct specification-mandated time at the end of
    usb_hub_power_on(), I suspect that CONFIG_USB_HUB_MIN_POWER_ON_DELAY has
    no purpose.

    For cm_t35.h, we already wait longer than the original MIN_POWER_ON_DELAY,
    so this change is safe.

    For gw_ventana.h, we will wait as long as the original MIN_POWER_ON_DELAY
    iff pgood_delay was at least 200ms. I'm not sure if this is the case or
    not, hence I've CC'd relevant people to test this change.

    Cc: Igor Grinberg
    Cc: Tim Harvey
    Signed-off-by: Stephen Warren

    Stephen Warren
     

31 May, 2014

1 commit


23 May, 2014

4 commits


20 May, 2014

2 commits


13 May, 2014

2 commits


10 May, 2014

2 commits


09 May, 2014

1 commit


08 May, 2014

1 commit

  • This patch contains an implementation of the fastboot protocol on the
    device side and documentation. This is based on USB download gadget
    infrastructure. The fastboot function implements the getvar, reboot,
    download and reboot commands. What is missing is the flash handling i.e.
    writting the image to media.

    v3 (Rob Herring):
    This is based on http://patchwork.ozlabs.org/patch/126798/ with the
    following changes:
    - Rebase to current mainline and updates for current gadget API
    - Use SPDX identifiers for licenses
    - Traced the history and added missing copyright to cmd_fastboot.c
    - Use load_addr/load_size for transfer buffer
    - Allow vendor strings to be optional
    - Set vendor/product ID from config defines
    - Allow Ctrl-C to exit fastboot mode
    v4:
    - Major re-write to use the USB download gadget. Consolidated function
    code to a single file.
    - Moved globals into single struct.
    - Use puts and putc as appropriate.
    - Added CONFIG_USB_FASTBOOT_BUF_ADDR and CONFIG_USB_FASTBOOT_BUF_SIZE to
    set the fastboot transfer buffer.
    v5:
    - Add CONFIG option documentation to README
    - Rebase using new downloader registration

    Signed-off-by: Sebastian Andrzej Siewior
    Signed-off-by: Rob Herring

    Sebastian Siewior
     

05 May, 2014

1 commit

  • Former usb_cable_connected() patch broke compilation of boards which do
    not support this feature.

    I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
    its default implementation to gadget downloader driver code. There's
    only one driver of this kind and it's unlikely there'll be another, so
    there's no point in keeping it in /common.

    Previously this function was declared in usb.h. I've moved it, since
    it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
    for USB host implementation.

    Existing code, confronted with default -EOPNOTSUPP return value,
    continues as if the cable was connected.

    CONFIG_USB_CABLE_CHECK was removed.

    Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
    Signed-off-by: Mateusz Zalega
    Acked-by: Marek Vasut
    Acked-by: Lukasz Majewski

    Mateusz Zalega
     

26 Apr, 2014

1 commit


23 Apr, 2014

6 commits


20 Apr, 2014

2 commits


18 Apr, 2014

4 commits


08 Apr, 2014

3 commits


03 Apr, 2014

1 commit

  • Those commands basis on implementation of random UUID generator version 4
    which is described in RFC4122. The same algorithm is used for generation
    both ids but string representation is different as below.

    char: 0 9 14 19 24 36
    xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
    UUID: be be be be be
    GUID: le le le be be

    Commands usage:
    - uuid []
    - guid []

    The result is saved in environment as a "varname" variable if argument is given,
    if not then it is printed.

    New config:
    - CONFIG_CMD_UUID

    Signed-off-by: Przemyslaw Marczak
    Cc: Stephen Warren
    Cc: Lukasz Majewski
    Cc: trini@ti.com

    Przemyslaw Marczak
     

23 Mar, 2014

1 commit

  • on nand flash using ubi, after the download of the new image into
    the flash, the "rest" of the nand sectors get erased while flushing
    the medium. With current u-boot version dfu-util may show:

    Starting download: [##################################################] finished!
    state(7) = dfuMANIFEST, status(0) = No error condition is present
    unable to read DFU status

    as get_status is not answered while erasing sectors, if erasing
    needs some time.

    So do the following changes to prevent this:

    - introduce dfuManifest state
    According to dfu specification
    ( http://www.usb.org/developers/devclass_docs/usbdfu10.pdf ) section 7:
    "the device enters the dfuMANIFEST-SYNC state and awaits the solicitation
    of the status report by the host. Upon receipt of the anticipated
    DFU_GETSTATUS, the device enters the dfuMANIFEST state, where it
    completes its reprogramming operations."

    - when stepping into dfuManifest state, sending a PollTimeout
    DFU_MANIFEST_POLL_TIMEOUT in ms, to the host, so the host
    (dfu-util) waits the PollTimeout before sending a get_status again.

    Signed-off-by: Heiko Schocher
    Cc: Lukasz Majewski
    Cc: Kyungmin Park
    Cc: Marek Vasut
    Cc: Pantelis Antoniou

    Heiko Schocher
     

22 Mar, 2014

1 commit


05 Mar, 2014

1 commit

  • Add 64-bit data for memory commands, such as md, mw, mm, cmp. The new
    size ".q " is introduced.

    For 64-bit architecture, 64-bit data is enabled by default, by detecting
    compiler __LP64__. It is optional for other architectures.

    Signed-off-by: York Sun

    York Sun
     

27 Feb, 2014

2 commits

  • Conflicts:
    arch/arm/cpu/armv7/config.mk
    board/ti/am43xx/mux.c
    include/configs/am43xx_evm.h

    Signed-off-by: Tom Rini

    Tom Rini
     
  • When we tell the compiler to optimize for ARMv7 (and ARMv6 for that
    matter) it assumes a default of SCTRL.A being cleared and unaligned
    accesses being allowed and fast at the hardware level. We set this bit
    and must pass along -mno-unaligned-access so that the compiler will
    still breakdown accesses and not trigger a data abort.

    To better help understand the requirements of the project with respect
    to unaligned memory access, the
    Documentation/unaligned-memory-access.txt file has been added as
    doc/README.unaligned-memory-access.txt and is taken from the v3.14-rc1
    tag of the kernel.

    Cc: Albert ARIBAUD
    Cc: Mans Rullgard
    Signed-off-by: Tom Rini

    Tom Rini