summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools/sbtoelf.c (follow)
Commit message (Collapse)AuthorAge
* imxtools/sbtools: various fixesAmaury Pouly2017-01-16
| | | | | | | Change bug() macro, fix memory leaks, always use -h for help, fix usage(), fix comment, remove useless macro Change-Id: I30554b5e07e6f2845560a570808603cf8c4da5ad
* imxtools: rework key/IV overriding logicAmaury Pouly2017-01-16
| | | | | | | The overriding of the IV and real key should be the exception, there is no need to manually set them to false. Change-Id: Id66754f20a79aa5c1a991839345d1242e0aa587d
* sbtools: add option to ignore sha1 errorsAmaury Pouly2014-09-07
| | | | Change-Id: I6bf9e4671e57f8ff3f436660e8ecb561027a036c
* sbtools: fix elf section namingAmaury Pouly2013-08-22
| | | | Change-Id: I4500bf70028af26cc4b8136f111f527e1396d16e
* sbtools: more work on sbtoelf and elftosb, support more attributesAmaury Pouly2013-08-22
| | | | | | | Now handle timestamp, sb minor version, component/product versions, section flags. Change-Id: I35313efe60c28f04ea3732b36e5e01be3213cf9e
* sbtools: now generate a db file along with with elf/rsrc filesAmaury Pouly2013-08-22
| | | | | | | | | | Now always generate a "make.db" file which aims at being the exact representation of the file, ie running sbtoelf and elftosb using the generated command file should produce the exact same file (except for the random paddings). We still miss the support for some option parsing to achieve that though. Change-Id: Ib7d6b241f7855fd35225df8ab8e0711f69d9ee5a
* sbtools: fix redAmaury Pouly2013-08-21
| | | | Change-Id: I28b7d4d59d8f14abbba2a70e2bdea6987b6a3a98
* sbtools: more code refactoringAmaury Pouly2013-08-21
| | | | | | Factor all printf method with a unique one defined in misc.h Change-Id: I58fbf8916b76e873a2e6678506d2c8aece7834ec
* sbtools: make code aware of elf section namesAmaury Pouly2013-08-06
| | | | Change-Id: I7ab657959e38d2fcb2c7e6d9858facfb83101423
* sbtools: refactor and cleanupAmaury Pouly2013-07-18
| | | | | | | Factor common elf/sb read/write/printf routines. Factor sb zero key, move sb version guess. Change-Id: I5ae1885587456736e782e623610281bbee545039
* sbtools: various little fixes, mostly cosmeticsAmaury Pouly2013-06-17
| | | | Change-Id: Ic53ef0283bdaee8d3272f648b71eff567b25059b
* sbtools,mkximboot: fix whitespaceAmaury Pouly2013-06-15
| | | | Change-Id: I8d8adb783707172d1aaef302366c240310350ed8
* sbtools: add brute force option for sb1 in sbtoelfAmaury Pouly2013-02-16
| | | | | | | | | | After some reverse engineering, it appears that the keys of the sb1 format are very weak: the 128 bytes are generated from the laserfuse words 4,5 and 6 but in a weird manner: 4 and 5 are simply ORed and 6 is only half used (somehow), making it "only" a 48 bit word to find. Change-Id: I40702e19d0924ef51c01894efce3cb65bd664456
* imxtools/sbtoelf: add more robust version guessAmaury Pouly2013-01-29
| | | | Change-Id: I41ce1005d997cf35153e085b19294bb7d418e968
* imxtools/sbtools: fix file type detectionAmaury Pouly2013-01-26
| | | | Change-Id: I872e98f5810df3ecc975e025385f9c5ca7b47a44
* imxtools/sbtoelf: use new method to get default xor keyAmaury Pouly2012-12-16
| | | | Change-Id: Ie00306a3c78e7490afe9964bd55ce53019e603ed
* sbtoelf: add switch to prevent elf simplificationAmaury Pouly2012-11-28
| | | | | | | | While elf simplification is a powerful tool it can be useful to prevent it from happening for debug purposes. Also add a missing switch description in usage() and missing static. Change-Id: I80a1904dc4340c412bd3de1c124a2e38d6ac11a2
* sbtoelf: also simplify elf files for sb2Amaury Pouly2012-11-28
| | | | | | | | | This is less useful is most cases because sb2 doesn't have the size restritions but some elf are produced with one section per file and still yield dozens or hundreds of sections. And this free anyway so we can do it. Change-Id: Ia5ca83a8375063ecc7052d1ea73b2b21c00be730
* sbtoelf: implement sb extraction for sb1Amaury Pouly2012-11-27
| | | | | | | | | | Load, fill and call/jump instructions are extracted as elf files like for sb2. Because of the size limitations of the sb1 instructions, the resulting elf files can easily have hundreds of sections. The (currently) implemented elf simplification method will hopefully reduce this to a few sections only Change-Id: I8fd6ed935ac3128f244bbd71c782e2a0a1c6d44a
* sbtoelf: implement sb1 loading and dumpingAmaury Pouly2012-11-27
| | | | | | | Implement actual loading of a sb1 file to a structure in full generality. Also implement dumping for debug purpose Change-Id: I320035ea628719480a79aaccb05dce9a83256927
* sbtools: add support for the stmp36xx formatAmaury Pouly2012-11-26
| | | | | | | | | | | The STMP36xx series also uses .sb files but with a different format. The main differences are the encryption and the lack of sections, making it basically a list of commands: fill, load, call, jump, switch mode, set sdram settings. Currently only the sbtoelf has support for the sb1 and can only dump the list of commands. Actual support for elf creation will come later. Change-Id: I1f2e0230c91ac64efd0e8430e0c5212098c599fd
* sbtools: add option to force sb dumpAmaury Pouly2012-06-27
| | | | | | | | | In the case of encrypted SB files without any key match, it is still possible to dump the section headers. The force option allows one to do so. It also allows to dump unencrypted sections of encrypted files if there are some. Change-Id: I36280230679ac5903f9c451c68c276f5c6959536
* imxtools: move tools to a new sbtools/ subdirectoryAmaury Pouly2012-05-31
Change-Id: I0d8d6831b35037725486f61fc363de87bc8ba92e