summaryrefslogtreecommitdiff
path: root/utils/imxtools/sbtools (follow)
Commit message (Collapse)AuthorAge
* sb1: fix buggy comparisonAmaury Pouly2014-12-20
| | | | | | | | | cppcheck reported: [rockbox/utils/imxtools/sbtools/sb1.c:440]: (warning) Comparison of a boolean expression with an integer other than 0 or 1. Thanks to Thomas Jarosch Change-Id: I0078232706d4014a1f2acea310a7a0d0edf7788b
* sbtools: add option to ignore sha1 errorsAmaury Pouly2014-09-07
| | | | Change-Id: I6bf9e4671e57f8ff3f436660e8ecb561027a036c
* sbtools: use default transfer size if it cannot be probedAmaury Pouly2014-09-07
| | | | | | | | A older commit removed this ability but it tends to be a problem since the HID driver can prevent probing of transfer size which then needs to be entered by hand on the command line. Change-Id: Ie5a556ffdcc2adec0e1c984810983e19136b6473
* imxtools/sbtools/sb1: fix parsing/debug bug about jump/call argumentsAmaury Pouly2013-12-06
| | | | Change-Id: Ib406cfc03ced6c8689ed467c154d6a7447a34e5c
* imxtools/sbtools/elf: fix debug codeAmaury Pouly2013-12-06
| | | | Change-Id: If043eb214417a41f71e6c05fc6a725eb8f983373
* elftosb: fix crash on invalid command fileAmaury Pouly2013-12-06
| | | | Change-Id: Ifef61b7ca6a391960d1d696ba455e0d14462c967
* imxtools/sbloader: rewrite hid codeAmaury Pouly2013-10-09
| | | | | | | Rewrite code with proper documentation: it uses a UMS like CBW/CSW to wrap commands and status. Change-Id: I10476c87aaea96d4b9e54f8c1c266835c8e89721
* imxtools/sbtools: always probe report size for HID recovery modeAmaury Pouly2013-10-09
| | | | | | | Some older versions of the ROM (TA3 for example), use a 64 byte report size instead of 1024, so hardcoding 1024 is just a bad idea. Change-Id: I720c4465cfe2f519bffa307175614bba58766dce
* imxtools/efltosb: fix extern() in db filesAmaury Pouly2013-09-10
| | | | Change-Id: I5f1acd619b2f280e709d2bd06a28a3e88cc05e27
* 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: factor code in command parserAmaury Pouly2013-08-22
| | | | Change-Id: I790c373b8a0319cdb00650d3c59919bd4b0b96f6
* 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 buffer overflowAmaury Pouly2013-08-22
| | | | Change-Id: I7b1c963e58eec88da215722ec219569a0a5a9cea
* 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: more printf fixingAmaury Pouly2013-08-10
| | | | Change-Id: Id617297c196b381fd1c381da3eff4345e3157529
* sbtools: fix output printingAmaury Pouly2013-08-06
| | | | | | | The code used printf instead of the provided printf functions, resulting in strange output. Change-Id: I2c7c2531d8d54ecdea97e8c189d18d351320ca7d
* sbtools: fix handling of NOP instructionsAmaury Pouly2013-08-06
| | | | Change-Id: I05ab8176f368a6e2d075dfb2059692871e0c00b3
* elf: fix handling of virtual/physical addressesAmaury Pouly2013-08-06
| | | | | | | | | | Remove the hackish elf_translate_addresses which should not have existed in the first place, on write always compute the physical address of a section using elf_translate_virtual_address which makes it possible to specify any virtual to physical mapping and fail nicely if there is none. Change-Id: I4f436945e90280a6fd9430de6c642dbeb8e23d40
* sbtools: various fixesAmaury Pouly2013-08-06
| | | | Change-Id: I82c4642aea325cf22d66e9b49fc2d47319cd70eb
* sbtools: standard sb print function is now standardAmaury Pouly2013-08-06
| | | | Change-Id: I2746bfff9a360ef4fc823853859609ffed5d2b67
* sbtools: elf library can now load global symbolsAmaury Pouly2013-08-06
| | | | Change-Id: I4d9f38ce31e65542d6ab192158bff52b6fad8f09
* sbtools: add helper to determine if a file is a valid ELF imageAmaury Pouly2013-08-06
| | | | Change-Id: Ie0e9c05569ca9b02fd36f31fd7323f02b14e1b60
* 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: fix sbloader (allow transfer size override)Amaury Pouly2013-06-18
| | | | Change-Id: Id6d3188b7f837726c29845f01b0b1588acf40407
* sbtools: various little fixes, mostly cosmeticsAmaury Pouly2013-06-17
| | | | Change-Id: Ic53ef0283bdaee8d3272f648b71eff567b25059b
* sbtools: add Sansa Express bootloader keyAmaury Pouly2013-06-17
| | | | Change-Id: I167a6410e40478173e5ce496ace4f705c3e26a1b
* sbtools,mkximboot: fix whitespaceAmaury Pouly2013-06-15
| | | | Change-Id: I8d8adb783707172d1aaef302366c240310350ed8
* imxtools: add Zen, Zen Mozaic and Zen X-Fi bootloader keysAmaury Pouly2013-06-13
| | | | Change-Id: I856e5b91c8e9a1c02b367960052c36f9b527046b
* imxtools: rewrite sbloader to handle both versions + user friendlyAmaury Pouly2013-06-13
| | | | | | | | | The tool can now load sb1 and sb files to devices. Detection has been improved and the tool can infer the packet size for the HID description as well. The command line interface has been vastly improved too, this breaks the old one. Change-Id: I01a0ff8f8a007514aa81c56f114c0f0a86e3303c
* sbtools: fix encryption and cosmeticsAmaury Pouly2013-06-13
| | | | Change-Id: Id302f236ad3ec13a5166de4e22a3fc85b2a6c64f
* imxtools/sbtools: silence warningAmaury Pouly2013-02-18
| | | | Change-Id: I423e760bbc8e418bcce3afe01c5831b5a3e655f3
* imxtools/sbtools: add -jump command, fix helpAmaury Pouly2013-02-18
| | | | Change-Id: I0d5d61c1dc137333bda5e403d06a43d16f2750bf
* sbtools/elftosb1: implement key file loadingAmaury Pouly2013-02-18
| | | | Change-Id: I2273b8d6314250620611ec50d159237edc6d76c2
* 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
* sbtools: increase performance by compiling with O3, add zenv keyAmaury Pouly2013-02-16
| | | | Change-Id: I2301f695e49d306d21bb9efa9c44acf1d3296a08
* 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/sbtools: improve sb1 key handlingAmaury Pouly2012-12-26
| | | | Change-Id: Ib014a102fe44a67dd256e45e804bca9b5812eb61
* imxtools/sbtools: add crypto code for documentation purposeAmaury Pouly2012-12-26
| | | | Change-Id: I4f3c659d65c1453b192cbce4bf6c85d882761929
* elftosb1: fix usage()Amaury Pouly2012-12-26
| | | | Change-Id: I9ce73b907fa6276b9cd1f285156623bdafa6d548
* imxtools/sbtools: implement rom/product/component version switchAmaury Pouly2012-12-16
| | | | Change-Id: If3ebae2e60f324c93f85a4f1a6f30257cccb735d
* imxtools/sbtools: fix sb1 product/component version writingAmaury Pouly2012-12-16
| | | | Change-Id: I0153192f41ccc5fb98e7e9f6f110d97bd76dbc47
* imxtools/sbtools: "fix" address handling in ELFAmaury Pouly2012-12-16
| | | | | | | | | | | | | | This is a common problem that proprietary tools don't handle ELF files correctly. ELF sections use a virtual address and the virtual -> physical translation is done though segments. This allows to have a load (physical) address different from the virtual one. Here is the trick: proprietary tools usually don't take the pain to do the translation and just grab the virtual address. This commit implements proper translation in elftosb1 knowing that this introduce a deviation from the behaviour of the proprietary tool. Change-Id: I91721a3a8dead382a0603f84ae3b35c5eb9704eb
* imxtools/sbtools: introduce elftosb1 for stmp36xxAmaury Pouly2012-12-16
| | | | | | | The tool still lacks some feature of the proprietary one but can create files with all the basic features. Change-Id: Ib0c91210940ca829291ce70945f88dc510a49974
* imxtools/sbtools: fix some instruction handling & cryptoAmaury Pouly2012-12-16
| | | | Change-Id: I6530bdf27896d8325dec4e2ba31c7e6a0131a286
* imxtools/sbtools: add elf function (sort by address)Amaury Pouly2012-12-16
| | | | Change-Id: Ib68746e11b43eadbbe0443626d4dc65d998348fa
* imxtools/sbtools: update misc with MINAmaury Pouly2012-12-16
| | | | Change-Id: I17daaff068fcd3a8c70c52db5fa209082461173f