summaryrefslogtreecommitdiff
path: root/utils/imxtools (follow)
Commit message (Collapse)AuthorAge
...
* 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
* imxtools: introduce hwemulAmaury Pouly2012-11-14
| | | | | | | | | | | | | | The hwemul tool is a small binary blob running on the device that can received commands over USB. It is mainly intended to be loaded using the recory mode and allows to read/write registers, memory, use the OTP device, ... The tool is split into three parts: dev/ contains the actual blob (which handles both imx233 and stmp3700), lib/ contains the communication library and can also use the register description produced by the regtools/ to ease register by name, tools/ contains an interactive tool to send commands to the device when running the blob. Change-Id: Ie8cb32e987f825d8ed750d48071e43415b4dacb3
* regtools: add the imx233/stmp3780 and the stmp3700 reg mapAmaury Pouly2012-11-14
| | | | | | | | | | | | These files were produced by parsing some linux and/or sigmatel provided headers and later tweaked by hand or by programs. Each file describes one or more soc. A soc has a list of devices. Each device can either be unique or have several copies at different addresses. Each device has a list of registers which can either be unique or indexed. Each register can further have a list of fields. Registers with a SCT variant are also handled. Change-Id: Ib50bb3fda268b6d5713f81bd8961de7978a5815e
* imxtools: add regtools to work with register descriptionsAmaury Pouly2012-11-14
| | | | | | | | | | | These tools allow one to read a register description in a XML file and to produce something useful out of it. Three example programs are written: - tester which simply prints the register tree - headergen which produces a set of headers with the #define - hwemulgen which produces something for the hwemul tool (to come) Change-Id: I52573688b29d5faeaf64ce7c5ffe08ee8db3d33c
* 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
* CosmeticsAmaury Pouly2012-05-20
| | | | Change-Id: I6ad5b6c2e4f8f57db2068fe372ab4ecadf4d03a9
* mkimxboot: fix warningsAmaury Pouly2012-05-19
| | | | Change-Id: If88b61566d8c81eda7cfc482fa82213657ae41b2
* imxtools: make sb api work with in-memory filesAmaury Pouly2012-05-19
| | | | Change-Id: I517244802efb118be214437bbaea2ef811e87aea
* imxtools: fix missing '\n'Amaury Pouly2012-04-25
| | | | Change-Id: I93630f5c303064deb5880421202425046aa3074f
* imxtools: fix missing '\n'Amaury Pouly2012-04-25
| | | | Change-Id: I8d6a70e644225211b35e7b160bdf06e12c611198
* imxtools: remove most calls to bug/bugp from core library.Amaury Pouly2012-02-19
| | | | | | | It should not exit() anymore on error except on malloc failure. Resource leaks on errors (especially I/O) are quite likely though. Change-Id: I6fcf72fb08fc683468b390d0b8745d31ca982b48
* imxtools: use rand() instead of /dev/random.Dominik Riebeling2012-02-08
| | | | | | | | | | | On Windows /dev/random does not exist, so trying to open it will fail. Replace it with rand() which is available on all supported platforms and sufficient. Fixes mkimxboot not working, as well as Rockbox Utility "crashing" (which is in fact its error handler calling exit(), thus terminating Rockbox Utility) on Windows. Change-Id: Ia164f937f329877e8f80f473f27be8c5df2a0a68
* sbloader: always send packets of size xfer_size (even the first). Also ↵Amaury Pouly2012-01-27
| | | | | | maintain a table of known transfer sizes. In particular stmp3770 uses 48 instead of 1024. Change-Id: I08dddc76c251aeeaaa3b46c9466f9be54c3d4a45
* imxtools: fix compilation when cross compiling for windows (tm doesn't have ↵Amaury Pouly2011-12-17
| | | | | | timezone fields) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31342 a1c6a512-1295-4272-9138-f99709370657
* imxtools: add function to free instructionAmaury Pouly2011-11-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30919 a1c6a512-1295-4272-9138-f99709370657
* imxtools: add const and set pointer to NULL on free to avoid double freeAmaury Pouly2011-11-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30918 a1c6a512-1295-4272-9138-f99709370657
* elftosb: add staticAmaury Pouly2011-11-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30915 a1c6a512-1295-4272-9138-f99709370657
* 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