1. 05 Jun, 2014 1 commit
  2. 30 May, 2014 1 commit
  3. 23 May, 2014 1 commit
    • Pierre Aubert's avatar
      eMMC: cmd_mmc.c adds the 'rpmb' sub-command for the 'mmc' command · 1fd93c6e
      Pierre Aubert authored
      
      This sub-command adds support for the RPMB partition of an eMMC:
      * mmc rpmb key <address of the authentication key>
        Programs the authentication key in the eMMC This key can not
        be overwritten.
      * mmc rpmb read <address> <block> <#count> [address of key]
        Reads <#count> blocks of 256 bytes in the RPMB partition
        beginning at block number <block>. If the optionnal
        address of the authentication key is provided, the
        Message Authentication Code (MAC) is verified on each
        block.
      * mmc rpmb write <address> <block> <#count> <address of key>
        Writes <#count> blocks of 256 bytes in the RPMB partition
        beginning at block number <block>. The datas are signed
        with the key provided.
      * mmc rpmb counter
        Returns the 'Write counter' of the RPMB partition.
      
      The sub-command is conditional on compilation flag CONFIG_SUPPORT_EMMC_RPMB
      Acked-by: default avatarPantelis Antoniou <panto@antoniou-consulting.com>
      Signed-off-by: default avatarPierre Aubert <p.aubert@staubli.com>
      CC: Wolfgang Denk <wd@denx.de>
      1fd93c6e
  4. 20 May, 2014 2 commits
  5. 12 May, 2014 2 commits
  6. 09 May, 2014 1 commit
  7. 08 May, 2014 1 commit
    • Sebastian Siewior's avatar
      usb/gadget: add the fastboot gadget · 3aab70af
      Sebastian Siewior authored
      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: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: default avatarRob Herring <robh@kernel.org>
      3aab70af
  8. 05 May, 2014 1 commit
    • Mateusz Zalega's avatar
      usb: dfu: fix boards wo USB cable detection · 75504e95
      Mateusz Zalega authored
      
      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: default avatarMateusz Zalega <m.zalega@samsung.com>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      Acked-by: default avatarLukasz Majewski <l.majewski@samsung.com>
      75504e95
  9. 23 Apr, 2014 6 commits
  10. 20 Apr, 2014 2 commits
  11. 17 Apr, 2014 3 commits
  12. 07 Apr, 2014 2 commits
  13. 02 Apr, 2014 1 commit
    • Przemyslaw Marczak's avatar
      new commands: uuid and guid - generate random unique identifier · 89c8230d
      Przemyslaw Marczak authored
      
      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 [<varname>]
      - guid [<varname>]
      
      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: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
      Cc: Stephen Warren <swarren@nvidia.com>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: trini@ti.com
      89c8230d
  14. 23 Mar, 2014 1 commit
    • Heiko Schocher's avatar
      usb: dfu: introduce dfuMANIFEST state · 001a8319
      Heiko Schocher authored
      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: default avatarHeiko Schocher <hs@denx.de>
      Cc: Lukasz Majewski <l.majewski@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      001a8319
  15. 21 Mar, 2014 1 commit
  16. 04 Mar, 2014 1 commit
  17. 26 Feb, 2014 2 commits
    • Tom Rini's avatar
      arm: Switch to -mno-unaligned-access when supported by the compiler · 1551df35
      Tom Rini authored
      
      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 <albert.u.boot@aribaud.net>
      Cc: Mans Rullgard <mans@mansr.com>
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      1551df35
    • Albert ARIBAUD's avatar
      arm: remove unneeded symbol offsets and _TEXT_BASE · b60eff31
      Albert ARIBAUD authored
      
      Remove the last uses of symbol offsets in ARM U-Boot.
      Remove some needless uses of _TEXT_BASE.
      Remove all _TEXT_BASE definitions.
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      b60eff31
  18. 21 Feb, 2014 4 commits
  19. 20 Feb, 2014 1 commit
  20. 19 Feb, 2014 2 commits
  21. 06 Feb, 2014 1 commit
  22. 04 Feb, 2014 1 commit
  23. 03 Feb, 2014 1 commit
  24. 21 Jan, 2014 1 commit