Skip to content
Snippets Groups Projects
  1. Apr 19, 2013
    • 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. Mar 01, 2013
    • 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. Apr 13, 2010
  4. Mar 21, 2010
  5. Dec 02, 2009
    • 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. Jul 17, 2009
    • 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. Apr 04, 2009
  8. Aug 12, 2008
  9. May 09, 2008
    • 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. Apr 25, 2008
  11. Apr 24, 2008
  12. Jul 10, 2007
  13. Jul 09, 2007
  14. Jul 03, 2007
  15. Oct 12, 2006
  16. Oct 11, 2006
  17. Oct 10, 2006
    • 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. Aug 17, 2003
  19. Jul 26, 2003
    • Wolfgang Denk's avatar
      * Allow crc32 to be used at address 0x000 · 77846748
      Wolfgang Denk 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. Aug 17, 2002
Loading