1. 26 May, 2014 2 commits
  2. 10 May, 2014 1 commit
    • Stefan Tauner's avatar
      Refine messages related to erase/write recovery · a58f6e9b
      Stefan Tauner authored
      
      We are more verbose inside erase_and_write_flash() although it does not
      matter as much as at the end of the whole process in doit().
      
      New output for the non-fatal (i.e. read-protected + successful recovery read) case:
      
      Reading old flash chip contents... done.
      Erasing and writing flash chip... spi_block_erase_d8 failed during command execution at address 0x8000
      Reading current flash chip contents... done. spi_chip_erase_c7 failed during command execution
      FAILED!
      Uh oh. Erase/write failed. Checking if anything has changed.
      Reading current flash chip contents... done.
      Good, writing to the flash chip apparently didn't do anything.
      Please check the connections (especially those to write protection pins) between
      the programmer and the flash chip. If you think the error is caused by flashrom
      please report this on IRC at chat.freenode.net (channel #flashrom) or
      mail flashrom@flashrom.org, thanks!
      
      Corresponding to flashrom svn r1790.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      a58f6e9b
  3. 09 May, 2014 1 commit
  4. 07 May, 2014 1 commit
  5. 02 May, 2014 1 commit
  6. 21 Oct, 2013 1 commit
  7. 23 Sep, 2013 1 commit
  8. 13 Sep, 2013 1 commit
  9. 30 Aug, 2013 1 commit
  10. 13 Aug, 2013 1 commit
  11. 12 Aug, 2013 1 commit
    • Stefan Tauner's avatar
      Fix verification operation · c4f44df5
      Stefan Tauner authored
      
      I broke this in r1702 where I enabled avoidance of the verification step if
      we did not modify anything in the erase/write step. The problem is that
      all_skipped is initialized to true and hence it would only ever verify if
      there have been changes noted in the erase/write step. This obviously
      breaks the verification operation (-v/--verify) because there we never
      enter the erase/write loop.
      
      The better alternative would be to enable (the implicit) verification
      in the write loop and not in cli_classic.c. This would require a bigger
      change due to the existance of dont_verify_it. Eventually this is the
      right thing to do but not so shortly before a release.
      
      Corresponding to flashrom svn r1707.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      c4f44df5
  12. 25 Jul, 2013 1 commit
  13. 17 Jul, 2013 1 commit
    • Stefan Tauner's avatar
      Uintptr_t-ify map_flash_region functions · 305e0b99
      Stefan Tauner authored
      
      Unsigned long is not the right type for manipulating pointer values.
      Since C99 there are suitable unsigned and signed types available, namely
      uintptr_t and intptr_t respectively.
      
      Use them in functions assigned to programmers' map_flash_region fields and
      their callers where applicable.
      
      This patch also changes the display width of all associated address values in
      physmap.c to 16/8 hex characters depending on the actual size by
      introducing a macro PRIxPTR_WIDTH and exploiting printf's * field width
      specifier.
      
      Corresponding to flashrom svn r1701.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      305e0b99
  14. 15 Jul, 2013 1 commit
    • Stefan Tauner's avatar
      Differentiate ultimate error messages depending on programmer used · 136388ff
      Stefan Tauner authored
      
      With every newly supported programmer the information regarding reboots
      on failures becomes more ridiculous. With this patch it is only shown when
      the internal programmer module was selected.
      
      Example outputs for external programmers:
      1) non-fatal:
      […]
      Reading current flash chip contents... done. FAILED at 0x00000000! Expected=0xff, Found=0x28, failed byte count from 0x00000000-0x0001ffff: 0x1fde7
      ERASE FAILED!
      FAILED!
      Uh oh. Erase/write failed. Checking if anything changed.
      Good. It seems nothing was changed.
      Writing to the flash chip apparently didn't do anything.
      Please check the connections (especially those to write protection pins) between
      the programmer and the flash chip. If you think the error is caused by flashrom
      please report this on IRC at chat.freenode.net (channel #flashrom) or
      mail flashrom@flashrom.org, thanks!
      
      2) fatal:
      […]
      Verifying flash... FAILED at 0x00000000! Expected=0x0f, Found=0xff, failed byte count from 0x00000000-0x0001ffff: 0x1fde6
      Your flash chip is in an unknown state.
      Please report this on IRC at chat.freenode.net (channel #flashrom) or
      mail flashrom@flashrom.org, thanks!
      
      Corresponding to flashrom svn r1699.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarDavid Hendricks <dhendrix@google.com>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      136388ff
  15. 13 Jul, 2013 1 commit
  16. 23 Jun, 2013 1 commit
  17. 07 Apr, 2013 1 commit
  18. 01 Apr, 2013 1 commit
  19. 27 Mar, 2013 1 commit
  20. 03 Mar, 2013 1 commit
  21. 04 Feb, 2013 1 commit
    • Stefan Tauner's avatar
      Fix building for MacOSX · e038e908
      Stefan Tauner authored
      
      - Add a new macro named IS_MACOSX to hwaccess.c and use it to enable iopl().
        This was broken since r1638. This fix does *not* restore the very permissive
        concept where iopl() was activated in an #else branch that was inplace before
        r1638.
      - Make printing the image file's size in flashrom.c platform independent.
      
      Bonus: remove definitions of off64_t and lseek64 which are not necessary
      anymore for about 1000 commits.
      
      Thanks to SJ for reporting the issue and testing the solution.
      
      Corresponding to flashrom svn r1648.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      e038e908
  22. 01 Jan, 2013 1 commit
  23. 30 Dec, 2012 1 commit
  24. 27 Dec, 2012 2 commits
  25. 26 Dec, 2012 2 commits
  26. 24 Nov, 2012 1 commit
  27. 27 Oct, 2012 1 commit
    • Stefan Tauner's avatar
      Do not read the flash chip twice in verification mode · 78ffbeaa
      Stefan Tauner authored
      
      Kyösti Mälkki noticed that we unnecessarily read the flash chip twice when
      called with --verify. The first one is the mandatory read before everything
      (to be able to detect the seriousness of errors), but the second one is not
      necessary because we can just use the former for the comparison.
      
      This introduces a small output change: previously we printed ERASE or
      VERIFY depending on the callee. This special case has been dropped
      because it is unnecessary to print it (and wrong for the verification
      function to need to know why it is verifying exactly).
      If an erase fails we mention that fact explicitly already, similar for verify.
      
      Corresponding to flashrom svn r1619.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      78ffbeaa
  28. 20 Oct, 2012 1 commit
  29. 21 Sep, 2012 1 commit
  30. 27 Aug, 2012 2 commits
  31. 25 Aug, 2012 1 commit
  32. 20 Aug, 2012 1 commit
  33. 11 Aug, 2012 1 commit
  34. 09 Aug, 2012 1 commit
    • Carl-Daniel Hailfinger's avatar
      Portability fixes and cleanups · 60d9bd26
      Carl-Daniel Hailfinger authored
      
      Move Mac OS X IOKit/DirectHW availability checks in the Makefile from
      compiler check to pciutils check.
      
      Print the compiler error messages for feature detection.
      
      Add DOS libpci in the Makefile includes only if a PCI-based programmer
      was requested.
      
      Restrict mmap usage in ich_descriptors_tool to Unix style systems.
      
      Build ich_descriptors_tool with the correct .exe extension on
      DOS/Windows.
      
      Build ich_descriptors_tool by default on x86. (Patch by Stefan Tauner)
      
      Print the Windows version instead of "unknown machine" on Windows.
      
      Don't #define our own __DARWIN__, use the standard OS X detection
      method.
      
      Update the README.
      
      Add more generated files to svn:ignore
      
      Corresponding to flashrom svn r1567.
      Signed-off-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
      60d9bd26
  35. 07 Aug, 2012 1 commit
  36. 22 Jul, 2012 1 commit