summaryrefslogtreecommitdiff
path: root/utils/sbtools (follow)
Commit message (Collapse)AuthorAge
* sbtools: rename to imxtools, move imx_hid_recovery to imxtools/sbloader, fix ↵Amaury Pouly2011-11-06
| | | | | | tools to correctly handle/free memory, properly return error codes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30907 a1c6a512-1295-4272-9138-f99709370657
* sbtoos: restore elf extraction functionality of sbtoelfAmaury Pouly2011-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30882 a1c6a512-1295-4272-9138-f99709370657
* sbtools: move sb reading from sbtoelf.c to sb.c with a proper interface, fix ↵Amaury Pouly2011-11-01
| | | | | | sb production bug, fix ugly code, add sb dump code and sbtoelf loopback facility git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30881 a1c6a512-1295-4272-9138-f99709370657
* sbtools: rework the color hack and add switch to disable color outputAmaury Pouly2011-11-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30880 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fix handling of raw mode, have elf_write looks like elf_read, fix ↵Amaury Pouly2011-10-29
| | | | | | uninitiliazed offset of bss sections, add real key override on decrypt git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30858 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fix compilation when linker expects correctly ordered filesAmaury Pouly2011-10-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30854 a1c6a512-1295-4272-9138-f99709370657
* sbtools: add options to override real key and IV, fix output prefix in ↵Amaury Pouly2011-10-29
| | | | | | sbtoelf, unify command line to add keys git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30852 a1c6a512-1295-4272-9138-f99709370657
* sbtools: move sb file production to its own file with a clean api, factor ↵Amaury Pouly2011-10-29
| | | | | | key reading even more git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30851 a1c6a512-1295-4272-9138-f99709370657
* sbtools: factor key code, introduce crypto layer, move from open/read/... to ↵Amaury Pouly2011-10-29
| | | | | | fopen/fread/..., add support for encryption/decryption using a device when the key is not known, move sbtoelf to use getopt for command line git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30849 a1c6a512-1295-4272-9138-f99709370657
* sbtools: be more verbose on real key and iv; add very advanced code to craft ↵Amaury Pouly2011-10-23
| | | | | | images git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30835 a1c6a512-1295-4272-9138-f99709370657
* sbtoelf: don't cross check if key is not validAmaury Pouly2011-10-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30834 a1c6a512-1295-4272-9138-f99709370657
* sbtoelf: handle the case where only one valid key is knownAmaury Pouly2011-10-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30833 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fix sbtoelf to support NOP, add alignment support to elftosbAmaury Pouly2011-10-23
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30832 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fix sbtoelf to handle files with more than one hundred commandsAmaury Pouly2011-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30810 a1c6a512-1295-4272-9138-f99709370657
* sbtools: implement more complicated integer expression in db files, ↵Amaury Pouly2011-09-16
| | | | | | implement data sections, section attributes, file options, rework command line attributes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30562 a1c6a512-1295-4272-9138-f99709370657
* sbtools: move the db parse to its own file and improve error messagesAmaury Pouly2011-09-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30557 a1c6a512-1295-4272-9138-f99709370657
* sbtools: implement virtual to physical address translation for elf filesAmaury Pouly2011-09-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30556 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fix code to work with file larger than header indicated sizeAmaury Pouly2011-09-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30544 a1c6a512-1295-4272-9138-f99709370657
* sbtools: relax file size condition (easier to work with)Amaury Pouly2011-09-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30543 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fix version output, add support for options section and ↵Amaury Pouly2011-07-24
| | | | | | product/component versions in command files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30205 a1c6a512-1295-4272-9138-f99709370657
* sbtools: add missing cariage return, implement boot mode command, add C++ ↵Amaury Pouly2011-07-22
| | | | | | style comments support git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30192 a1c6a512-1295-4272-9138-f99709370657
* elftosb: remove duplicate code, merge two redundant fieldsAmaury Pouly2011-07-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30123 a1c6a512-1295-4272-9138-f99709370657
* elftosb: support 'strings' in section id, support load binary at address, ↵Amaury Pouly2011-07-02
| | | | | | support call/jump at address git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30110 a1c6a512-1295-4272-9138-f99709370657
* elftosb: add support for jumps/calls with one argumentAmaury Pouly2011-06-30
| | | | | | | sbtoelf: remove sb version check and print it in the basic info Thanks TheLemonMan ! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30106 a1c6a512-1295-4272-9138-f99709370657
* sbtools: add support for the mode command (rarely used) and explicit env ↵Amaury Pouly2011-06-13
| | | | | | variable to skip version check git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30003 a1c6a512-1295-4272-9138-f99709370657
* sbtools: always check the result of getenv against NULL, use strcasecmp ↵Amaury Pouly2011-06-09
| | | | | | | | instead of strcmp more greater flexibility Thanks TheLemonMan for spotting that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29989 a1c6a512-1295-4272-9138-f99709370657
* sbtoelf: add environment command to ignore format version checks (some files ↵Amaury Pouly2011-06-09
| | | | | | do not match it seems) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29988 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fix a few memcpy with overlapping src/dst, fix a parsing bug (would ↵Amaury Pouly2011-05-13
| | | | | | access one byte paste the end of the buffer) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29868 a1c6a512-1295-4272-9138-f99709370657
* sbtools: be more verbose on debug and fix a bug (uninitialized structure)Amaury Pouly2011-05-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29867 a1c6a512-1295-4272-9138-f99709370657
* sbtools: generate a unique name for each sectionAmaury Pouly2011-05-02
| | | | | | This allows to manipulate the elf file more easily with objcopy for example. Executable sections are named .text0, .text1, ..., bss sections are named .bss0, .bss1, ... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29817 a1c6a512-1295-4272-9138-f99709370657
* sbtools: do not rely on the ELF flags and always assume the entry point is validAmaury Pouly2011-05-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29806 a1c6a512-1295-4272-9138-f99709370657
* sbtools: fortify code against weird elf files with no string table and/or no ↵Amaury Pouly2011-04-18
| | | | | | sections/programs headers ! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29747 a1c6a512-1295-4272-9138-f99709370657
* sbtools: document a bit the command file formatAmaury Pouly2011-04-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29744 a1c6a512-1295-4272-9138-f99709370657
* elftosb: implement encryption support; now fully workingAmaury Pouly2011-04-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29743 a1c6a512-1295-4272-9138-f99709370657
* sbtoelf: fix to handle unencrypted files (minor tweak)Amaury Pouly2011-04-17
| | | | | | elftosb: properly generate sb file (encryption not implemented yet) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29742 a1c6a512-1295-4272-9138-f99709370657
* elftosb: more code toward sb productionAmaury Pouly2011-04-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29741 a1c6a512-1295-4272-9138-f99709370657
* sbtoslf: command size doesn't include itself, but section can be padded with ↵Amaury Pouly2011-04-17
| | | | | | random data git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29740 a1c6a512-1295-4272-9138-f99709370657
* sbtoelf: include a raw command mode to see hidden command used by the ↵Amaury Pouly2011-04-17
| | | | | | bootrom (tag and nop) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29739 a1c6a512-1295-4272-9138-f99709370657
* sbtools: move internal elf definition to elf.c, implement elf readingAmaury Pouly2011-04-17
| | | | | | | sbtoelf: generate a correct section name for undef and string table sections elftosb: static'ify functions, add cmd file to sb file conversion git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29738 a1c6a512-1295-4272-9138-f99709370657
* sbtools: add elftosb tool, yet to be finished (parsing of keys and command ↵Amaury Pouly2011-04-17
| | | | | | files done) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29735 a1c6a512-1295-4272-9138-f99709370657
* sbtools: update Makefile; fix whitespacesAmaury Pouly2011-04-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29734 a1c6a512-1295-4272-9138-f99709370657
* Rename sbinfo to sbtools and sbinfo.c to sbtoelf.c; preparing for future elftosbAmaury Pouly2011-04-17
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29733 a1c6a512-1295-4272-9138-f99709370657