1. 19 Apr, 2013 1 commit
    • Simon Glass's avatar
      crc32: Correct endianness of crc32 result · 74a18ee8
      Simon Glass authored
      When crc32 is handled by the hash library, it requires the data to be in
      big-endian format, since it reads it byte-wise. Thus at present the 'crc32'
      command reports incorrect data. For example, previously we might see:
      
      Peach # crc32 40000000 100
      CRC32 for 40000000 ... 400000ff ==> 0d968558
      
      but instead with the hash library we see:
      
      Peach # crc32 40000000 100
      CRC32 for 40000000 ... 400000ff ==> 5885960d
      
      Correct this.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      Reviewed-by: default avatarVadim Bendebury <vbendeb@google.com>
      74a18ee8
  2. 01 Mar, 2013 1 commit
    • Simon Glass's avatar
      Roll crc32 into hash infrastructure · d20a40de
      Simon Glass authored
      Add the CRC32 algorithm to the list of available hashes, and make
      the crc32 command use hash_command(). Add a new crc32_wd_buf() to
      make this possible, which puts its result in a buffer rather than
      returning it as a 32-bit value.
      
      Note: For some boards the hash command is not enabled, neither
      are sha1, sha256 or the verify option. In this case the full
      hash implementation adds about 500 bytes of overhead. So as a
      special case, we use #ifdef to select very simple bahaviour in
      that case. The justification for this is that it is currently
      a very common case (virtually all boards enable crc32 but only
      some enable more advanced features).
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      d20a40de
  3. 13 Apr, 2010 1 commit
  4. 21 Mar, 2010 1 commit
  5. 02 Dec, 2009 1 commit
    • Joakim Tjernlund's avatar
      crc32: Impl. linux optimized crc32() · 3ee8c120
      Joakim Tjernlund authored
      Ported over the more efficient linux crc32() function.
      A quick comparsion on ppc:
      After changing the old crc32 to do 4 bytes in the
      inner loop to be able to compare with new version one can note:
      - old inner loop has 61 insn, new has 19 insn.
      - new crc32 does one 32 bit load of data to crc while
        the old does four 8 bits loads.
      - size is bit bigger for the new crc32:
        1392(old) 1416(new) of text. The is because the new version
        shares code with crc32_no_comp() instead of duplicating code.
      - about 33% faster on ppc:
        New > crc 0 0xfffffff -> 39 secs
        Old > crc 0 0xfffffff -> 60 secs
      Signed-off-by: default avatarJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
      3ee8c120
  6. 17 Jul, 2009 1 commit
    • Scott Wood's avatar
      Remove legacy NAND and disk on chip code. · be33b046
      Scott Wood authored
      Legacy NAND had been scheduled for removal.  Any boards that use this
      were already not building in the previous release due to an #error.
      
      The disk on chip code in common/cmd_doc.c relies on legacy NAND,
      and it has also been removed.  There is newer disk on chip code
      in drivers/mtd/nand; someone with access to hardware and sufficient
      time and motivation can try to get that working, but for now disk
      on chip is not supported.
      Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
      be33b046
  7. 04 Apr, 2009 1 commit
  8. 12 Aug, 2008 1 commit
  9. 09 May, 2008 1 commit
    • Grant Erickson's avatar
      Fix Compilation Errors with 'tools/env/fw_printenv' · f3b6d528
      Grant Erickson authored
      In the current top-of-tree, 1.3.3.-rc2, the optional tool
      'tools/env/fw_printenv' fails to compile for two reasons:
      
      1) The header watchdog.h cannot be found.
      2) The header zlib.h is picked up from the tool chain rather than the
         project causing a prototype conflict for crc32.
      
      This patch addresses both of these issues.
      
      Platforms Tested On:
      - AMCC "Kilauea"
      Signed-off-by: default avatarGrant Erickson <gerickson@nuovations.com>
      f3b6d528
  10. 25 Apr, 2008 4 commits
  11. 24 Apr, 2008 2 commits
  12. 10 Jul, 2007 1 commit
  13. 09 Jul, 2007 1 commit
  14. 03 Jul, 2007 1 commit
  15. 12 Oct, 2006 1 commit
  16. 11 Oct, 2006 1 commit
  17. 10 Oct, 2006 1 commit
    • Stefan Roese's avatar
      * Several improvements to the new NAND subsystem: · 2255b2d2
      Stefan Roese authored
        - JFFS2 related commands implemented in mtd-utils style
        - Support for bad blocks
        - Bad block testing commands
        - NAND lock commands
        Please take a look at doc/README.nand for more details
        Patch by Guido Classen, 10 Oct 2006
      2255b2d2
  18. 17 Aug, 2003 1 commit
    • wdenk's avatar
      * Make Ethernet autonegotiation on INCA-IP work for all clock rates; · e0ac62d7
      wdenk authored
        allow selection of clock frequency as "make" target
      
      * Implement memory autosizing code for IceCube boards
      
      * Configure network port on INCA-IP for autonegotiation
      
      * Fix overflow problem in network timeout code
      
      * Patch by Richard Woodruff, 8 Aug 2003:
        Allow crc32 to be used at address 0x000 (crc32_no_comp, too).
      e0ac62d7
  19. 26 Jul, 2003 1 commit
    • wdenk's avatar
      * Allow crc32 to be used at address 0x000 · 77846748
      wdenk authored
      * Provide consistent interface to standalone applications to access
        the 'global_data' structure
        Provide a doc/README.standalone more useful to users/developers.
      
      * Make IceCube MGT5100 FEC driver work
      77846748
  20. 17 Aug, 2002 1 commit