1. 11 Sep, 2013 2 commits
    • Sean Nelson's avatar
      Add an internal DMI decoder · 4c6d3a4b
      Sean Nelson authored
      
      Previously we had to rely on dmidecode to decode the DMI/SMBIOS table.
      This patch integrates a DMI decoder into flashrom. The old behavior of calling
      dmidecode can be brought back by using CONFIG_INTERNAL_DMI=no.
      
      Significant portions of this patch were taken from dmidecode, hence add its
      authors to the copyright notice (dmidecode is also GPL2+). We do a few things
      differently though. First of all we do more bounds checking to prevent accessing
      unmapped memory. We do not support disovery via EFI (yet), but memory
      scanning only. We handle the chassis-type lock bit correctly which dmidecode
      did not for a long while.
      
      The API to the rest of flashrom remains stable, but the output changes slightly.
      To share as much code as possible (which actually is not much), i have added
      dmi_fill methods that get called in dmi_init. They are reponsible to fill the
      dmi_strings array and setting the is_laptop variable. After it is called, dmi_init
      prints all dmi_strings. Previously the strings were printed in the order they were
      discovered, followed by the chassis-type, which is now output earlier (in dmi_fill).
      
      Because DJGPP does not support strnlen a simple implementation was added
      for it.
      
      This is still only available on x86; actually it is not even compiled in for other
      architectures at all anymore.
      
      Corresponding to flashrom svn r1735.
      Signed-off-by: default avatarSean Nelson <audiohacked@gmail.com>
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Tested-by: default avatarMaciej Pijanka <maciej.pijanka@gmail.com>
      Tested-by: default avatarIdwer Vollering <vidwer@gmail.com>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      4c6d3a4b
    • Stefan Tauner's avatar
      DOS refinements · 449abe28
      Stefan Tauner authored
      
      This allows to use the DOS library trees stored in a user-specified directory.
      
      I have mirrored the needed patches, sources and binaries (the latter
      are properly licensed to allow that) in the flashrom wiki, so use those
      URLs instead of the original sources.
      
      Corresponding to flashrom svn r1734.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      449abe28
  2. 10 Sep, 2013 1 commit
  3. 30 Aug, 2013 3 commits
  4. 29 Aug, 2013 3 commits
  5. 28 Aug, 2013 1 commit
  6. 27 Aug, 2013 3 commits
  7. 25 Aug, 2013 2 commits
  8. 24 Aug, 2013 2 commits
  9. 23 Aug, 2013 2 commits
  10. 17 Aug, 2013 1 commit
  11. 14 Aug, 2013 3 commits
  12. 13 Aug, 2013 3 commits
  13. 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
  14. 08 Aug, 2013 1 commit
  15. 30 Jul, 2013 1 commit
  16. 25 Jul, 2013 3 commits
  17. 17 Jul, 2013 2 commits
  18. 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
  19. 13 Jul, 2013 4 commits
  20. 11 Jul, 2013 1 commit
    • Stefan Tauner's avatar
      print_wiki: Fixes, explanation re · 1c356bb6
      Stefan Tauner authored
      
      Flash chips, links to footnotes.
      
       - Escape mainboard notes in the wiki output with <nowiki> (this became
      necessary because MediaWiki started to convert <mark@zl2tod.net> to
      <mark>). - Add explanations at the top of the flash chip table in the
      wiki. - Add links to the footnotes of mainboards and laptops similarly
      to what MediaWiki does: link from the reference to the footnote and
      vice versa too. Also, check for truncations of the footnotes due to the
      limited buffer. - Fix a typo introduced in r1555.
      
      Corresponding to flashrom svn r1694.
      Signed-off-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      Acked-by: default avatarStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
      1c356bb6