Commit graph

21 commits

Author SHA1 Message Date
Amaury Pouly
a8cde851fb sbtools: add options to override real key and IV, fix output prefix in sbtoelf, unify command line to add keys
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30852 a1c6a512-1295-4272-9138-f99709370657
2011-10-29 17:04:20 +00:00
Amaury Pouly
d2a58f3aad sbtools: move sb file production to its own file with a clean api, factor key reading even more
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30851 a1c6a512-1295-4272-9138-f99709370657
2011-10-29 17:01:47 +00:00
Amaury Pouly
9fe029b12a sbtools: factor key code, introduce crypto layer, move from open/read/... to 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
2011-10-29 14:22:17 +00:00
Amaury Pouly
4ef4830f0b sbtools: be more verbose on real key and iv; add very advanced code to craft images
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30835 a1c6a512-1295-4272-9138-f99709370657
2011-10-23 22:31:48 +00:00
Amaury Pouly
f45fb77664 sbtoelf: don't cross check if key is not valid
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30834 a1c6a512-1295-4272-9138-f99709370657
2011-10-23 18:19:21 +00:00
Amaury Pouly
cab5dbded9 sbtoelf: handle the case where only one valid key is known
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30833 a1c6a512-1295-4272-9138-f99709370657
2011-10-23 18:14:38 +00:00
Amaury Pouly
b93e15c404 sbtools: fix sbtoelf to support NOP, add alignment support to elftosb
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30832 a1c6a512-1295-4272-9138-f99709370657
2011-10-23 17:43:52 +00:00
Amaury Pouly
da44fd6f99 sbtools: fix code to work with file larger than header indicated size
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30544 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 12:19:30 +00:00
Amaury Pouly
781d59ec62 sbtools: relax file size condition (easier to work with)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30543 a1c6a512-1295-4272-9138-f99709370657
2011-09-14 12:14:24 +00:00
Amaury Pouly
de13803352 sbtools: fix version output, add support for options section and product/component versions in command files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30205 a1c6a512-1295-4272-9138-f99709370657
2011-07-24 19:12:18 +00:00
Amaury Pouly
56bc02c7a2 sbtools: add missing cariage return, implement boot mode command, add C++ style comments support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30192 a1c6a512-1295-4272-9138-f99709370657
2011-07-22 15:45:08 +00:00
Amaury Pouly
143d451403 elftosb: add support for jumps/calls with one argument
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
2011-06-30 21:30:06 +00:00
Amaury Pouly
50be1a8c4c sbtools: add support for the mode command (rarely used) and explicit env variable to skip version check
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30003 a1c6a512-1295-4272-9138-f99709370657
2011-06-13 21:46:29 +00:00
Amaury Pouly
4cfb5da35b sbtools: always check the result of getenv against NULL, use strcasecmp 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
2011-06-09 09:39:21 +00:00
Amaury Pouly
2d2246ed7d sbtoelf: add environment command to ignore format version checks (some files do not match it seems)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29988 a1c6a512-1295-4272-9138-f99709370657
2011-06-09 09:21:32 +00:00
Amaury Pouly
b2c59541b4 sbtoelf: fix to handle unencrypted files (minor tweak)
elftosb: properly generate sb file (encryption not implemented yet)

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29742 a1c6a512-1295-4272-9138-f99709370657
2011-04-17 22:30:09 +00:00
Amaury Pouly
8bff25945b sbtoslf: command size doesn't include itself, but section can be padded with random data
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29740 a1c6a512-1295-4272-9138-f99709370657
2011-04-17 18:37:27 +00:00
Amaury Pouly
8a8d77b8e5 sbtoelf: include a raw command mode to see hidden command used by the bootrom (tag and nop)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29739 a1c6a512-1295-4272-9138-f99709370657
2011-04-17 18:37:23 +00:00
Amaury Pouly
c4cb4cca47 sbtools: move internal elf definition to elf.c, implement elf reading
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
2011-04-17 15:49:58 +00:00
Amaury Pouly
e2f8fbfb16 sbtools: update Makefile; fix whitespaces
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29734 a1c6a512-1295-4272-9138-f99709370657
2011-04-17 01:43:48 +00:00
Amaury Pouly
f6208bde46 Rename sbinfo to sbtools and sbinfo.c to sbtoelf.c; preparing for future elftosb
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29733 a1c6a512-1295-4272-9138-f99709370657
2011-04-17 01:43:44 +00:00
Renamed from utils/sbinfo/sbinfo.c (Browse further)