1. 10 Nov, 2016 1 commit
    • Bernhard Nortmann's avatar
      fexc: Convert version[0] header field to filesize · 2a4af4f5
      Bernhard Nortmann authored
      
      
      Vendor-provided .bin files have repeatedly demonstrated that our
      previous interpretation of this field as version[0] is likely
      wrong. Instead, it seems to represent the file size (in bytes)
      of the .bin file.
      
      This commit fixes both decompilation (and header checks) and
      generation of .bin files, where it will now store the size to
      this field.
      
      TODO: It's unclear whether the 'filesize' needs some specific
      alignment (and the .bin corresponding padding). A value of
      34864 (0x8830) has already been observed, so any possible
      alignment is expected not to exceed 16 bytes (0x10). (Currently
      our .bin generator doesn't care about any specific alignment.)
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      2a4af4f5
  2. 26 May, 2016 2 commits
  3. 24 May, 2016 1 commit
    • Bernhard Nortmann's avatar
      fexc: Fix thinko in script decompiler · 6271d370
      Bernhard Nortmann authored
      
      
      Both the error output in function decompile_section() and the
      definition of GPIO_BANK_MAX in script.h suffered from an "off
      by one" logic. The bank numbering in the .bin is based on 1,
      so it should be added to ('A' - 1) for human-readable output,
      and the maximum number corresponding to 'N' is 14.
      
      This became apparent when trying to translate a fex2bin-compiled
      a80_optimus_board.bin back to its original .fex equivalent.
      Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
      6271d370
  4. 20 Apr, 2016 2 commits
  5. 28 Oct, 2014 1 commit
  6. 27 Sep, 2014 1 commit
  7. 14 Aug, 2014 1 commit
  8. 19 Jan, 2013 1 commit
  9. 23 Jul, 2012 1 commit
  10. 15 Jun, 2012 1 commit
  11. 14 Jun, 2012 1 commit
  12. 11 May, 2012 3 commits
  13. 10 May, 2012 1 commit
  14. 07 May, 2012 4 commits