1. 28 3月, 2014 1 次提交
  2. 23 3月, 2014 7 次提交
    • Ł
      dfu: mmc: Replace calls to u-boot commands with native mmc API · 7d0b605a
      Łukasz Majewski 提交于
      For some time we have been using the run_command() with properly crafted
      string. Such approach turned to be unreliable and error prone.
      
      Switch to "native" mmc subsystem API would allow better type checking and
      shall improve speed.
      
      Also, it seems that this API is changing less often than u-boot commands.
      The approach similar to env operations on the eMMC has been reused.
      Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
      7d0b605a
    • H
      am335x, dfu: add DFU_MANIFEST_POLL_TIMEOUT to the siemens boards · 401341d6
      Heiko Schocher 提交于
      as the siemens boards use dfu for updating a nand ubi partition
      add DFU_MANIFEST_POLL_TIMEOUT to them, so dfu host waits after
      complete transfer of the new image for DFU_MANIFEST_POLL_TIMEOUT
      ms before sending again an usb request. So the board have enough
      time to erase rest of the nand sectors.
      Signed-off-by: NHeiko Schocher <hs@denx.de>
      Reviewed-by: NLukasz Majewski <l.majewski@samsung.com>
      Cc: Kyungmin Park <kyungmin.park@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
      401341d6
    • H
      usb: dfu: introduce dfuMANIFEST state · 001a8319
      Heiko Schocher 提交于
      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: NHeiko 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
    • H
      usb, dfu: extract flush code into seperate function · a2199afe
      Heiko Schocher 提交于
      move the flushing code into an extra function dfu_flush(),
      so it can be used from other code.
      Signed-off-by: NHeiko 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>
      a2199afe
    • S
      patman: Use Patch-cc: instead of Cc: · 659c89da
      Simon Glass 提交于
      Add a new Patch-cc: tag which performs the service now provided by
      the Cc: tag. The Cc: tag is interpreted by git send-email but
      ignored by patman.
      
      So now:
      
        Cc: patman does nothing. (git send-email can cc patches)
        Patch-cc: patman Cc's patch and removes this tag from the patch
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      659c89da
    • P
      sandbox: Enable CONFIG_CMD_LZMADEC in sandbox.h · def23217
      Patrice Bouchand 提交于
      As Simon Glass requested it, here's a patch that enables
      CONFIG_CMD_LZMADEC in sandbox.
      Signed-off-by: NPatrice Bouchand <pbfwdlist@gmail.com>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      def23217
    • P
      Add lzmadec command · 5527f832
      Patrice Bouchand 提交于
      I needed to be able to uncompress lzma files. I did this command
      based on unzip command and propose it if it could help.
      Signed-off-by: NPatrice Bouchand <pbfwdlist@gmail.com>
      Changed to work with sandbox
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      5527f832
  3. 18 3月, 2014 32 次提交