summaryrefslogtreecommitdiff
path: root/utils (follow)
Commit message (Collapse)AuthorAge
* 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
* upgtools: allow creation of a UPG archive + improvementsAmaury Pouly2012-11-13
| | | | Change-Id: I9c3e2eb95f7eb6d41591b006328fd720dfcf93a5
* scsitools: add nwz firmware upgrade scsi commandAmaury Pouly2012-11-13
| | | | Change-Id: Iaebb442611c64fe4d47a07ce3b3d12c3230cafe5
* emmctools: add debug statementsAmaury Pouly2012-11-13
| | | | Change-Id: I9a15c347cfaab821b0cfc01744c5b6b8267c40ea
* nwztools: various fix and enhancementsAmaury Pouly2012-11-03
| | | | Change-Id: Iaa89df27b7a0c4eb9fc6603c431de3d1fe791fa1
* scsi_tools: add support for nvp readingAmaury Pouly2012-11-03
| | | | | | | | | | There is a vendor specific command to read the NVP of the device, including the KAS. The trick is that the data is randomly scrambled using a so-called para_noise array of random values. There seems to be a problem when retrieving large entries (>1000 bytes typically) which causes sg_pt do behave strangely. Change-Id: Iefa6140df78ab9c7dcf7ac34cb1170979123ecd7
* Introduce scsitool for sony nwz playersAmaury Pouly2012-11-03
| | | | | | | | | | This tool can send vendor specific scsi commands to sony nwz players such as getting serial number, model id, device info, and others. It can potentially be used to get some private keys stored on the device but probably not the KAS used to encrypt firmware upgrades images(UPG). Change-Id: Ia49c1edf8d421b20c4e9afeb1192e00e06eb6047
* Introduce upgtools for sony nwz playersAmaury Pouly2012-11-03
| | | | | | This tool can unpack UPG archives for firmware updates. Change-Id: I32f5f1a84759198c7af4a4ecfd7aa65eaeda567a
* Introduce emmctools for the sony nwz players.Amaury Pouly2012-11-03
| | | | | | | | | This tool is specific to the em1/mp200 sony based players. In deals with raw emmc images (which is possible but hard to get). This tool is also useful as a documentation of the underlying emmc format used for a future port. Change-Id: I66c9b0e47351e5d89f6a404aa62038e00fdc1093
* atjboottool: add missing copyright headersAmaury Pouly2012-10-30
| | | | Change-Id: Idb2f5e4b0bd6a84bc3eaff088fb4706f46ed1535
* rknanoutils: add raw encode mode, add header fieldsAmaury Pouly2012-10-18
| | | | | | | | | The raw encode mode allows to use the raw encode_page routine on any file which proved to be useful. The guessed fields of the headers are based on some rk2918 headers which leaked. They are mainly informative though (date, version, chip). Change-Id: I139ea0c40f76b6dde041c448bbf3e7ecf9cab24a
* atj: provide default output prefix/filenames on unpackingAmaury Pouly2012-10-04
| | | | | | | | | If no output prefix is specified, a default is picked: - filename with extension replaced by .afi for FWU files - filename with extension replaced by .fw/ for AFI files - filename without extension and with / for FW files Change-Id: I6497b8f4a49f1238e5db738429f687cad3ae8a5a
* Introduce atjboottool for ATJ213x firmwaresAmaury Pouly2012-10-03
| | | | Change-Id: Ie857b82e25de235c8549defab7e75995efefb3f6
* zenutils/update_extract: make sure the archive is validAmaury Pouly2012-06-27
| | | | | | | | | | | | The update_extract tool works by finding the compressed size and the compressed data in the updater. This is problematic since without the uncompressed size, inflate can produce extra bytes at end. This is not a problem for our tools but the device will plain reject it if sent by MTP/sendfirm for example. Workaround this issue by reading and rewriting the archive after decompression so that only the meaningfull data is written. Change-Id: I117f434b92a56d93d269af49c3e426cd8cc0c7e4
* 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
* rknanoutils: fix crash with no prefix, remove debug codeAmaury Pouly2012-06-19
| | | | Change-Id: I73e277a8dc2fbd5790b1d7173e449d883710f27a
* rknanoutils: much more sensible format guessAmaury Pouly2012-06-19
| | | | | | | | | | I finally found a sensible format for the executable files. The tool now can output the loading entry to elf files. Some disassembly and analysis suggest the phys/virt addresses are correct. However the entries are somehow linked and it is still unclear how (are there "calls" to the code ? when ?). Change-Id: Ied38b5bb297176c5755b5ecb3309f4a259c18cd4
* rknanoutils: more reverse engineering of the BOOT format.Amaury Pouly2012-06-19
| | | | | | | | | | | I found out that the file has a number of "entries", in 3 categories. The third category seem to contain bootable files. In the RKnano firmware file I have, these entries are named "NandBoot1" and "NandBoot2". They seem to use the same format as the stage3 of the RKnanoFW format but we do not understand this format precisely for now anyway. Change-Id: I72d77e609cdeeb802af793c010d6788bf36cd7e2
* Update the rknano utils.Amaury Pouly2012-06-10
| | | | | | | This is mostly based on reverse engineer of the _RKUpgrade.dll from the SAM3xx upgrader. Change-Id: I37f4503899c7198ce463130b2ff994da9ca7dc4b
* Initial commit from rknano utils. This is very preliminary work.Amaury Pouly2012-06-07
| | | | Change-Id: Iddc4b39a4611f12b9eefc3a96d7eeb7229777ebb
* Fix findaddr.pl tool for codecsAmaury Pouly2012-05-31
| | | | Change-Id: I19dff8c9f3e8195d1e8d652e6365375a87debddf
* imxtools: move tools to a new sbtools/ subdirectoryAmaury Pouly2012-05-31
| | | | Change-Id: I0d8d6831b35037725486f61fc363de87bc8ba92e
* ypr0: Add kernel module to required support fm radio.Thomas Martitz2012-05-28
| | | | | | | | | | | | | | To support fm radio a kernel module was written. This module is added to the patched firmware that loads Rockbox. It's pre-compiled but its source archive provided. The kernel module provides raw-access to the built-in si4709 radio chip. Our existing si 47xx drivers can be re-used this way. The module itself was written Lorenzo Miori, I only integrated it into the tree. Change-Id: I6205d28a505d57791eaeb627e6856b9a1eaeaeaa
* 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
* Fix a typo.Dominik Riebeling2012-05-14
| | | | Change-Id: I358add5df8971bc3eab4c4cf71d2e792e51979d1
* Fix rkusbtool compilation (FS#12664) by Teemu NätkinniemiMarcin Bukat2012-05-13
| | | | Change-Id: Id18eca4ade80cce2ab68317af6b7b9751d04b1cd
* gitscraper: Provide way to get timestamps for files.Dominik Riebeling2012-04-29
| | | | | | | | | When scraping files from the repository allow passing an additional list of files for which the timestamp of the last change is retrieved. Since this is slow (the log needs to be traversed, since a blob doesn't know about commits its referenced by) only specified files get this retrieved. Change-Id: I61a2ef812ac18ffb5898c01ce070046d4ca00a15
* Add codecs to librbcodec.Sean Bartell2012-04-25
| | | | | | | Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
* imxtools: fix missing '\n'Amaury Pouly2012-04-25
| | | | Change-Id: I93630f5c303064deb5880421202425046aa3074f
* imxtools: fix missing '\n'Amaury Pouly2012-04-25
| | | | Change-Id: I8d6a70e644225211b35e7b160bdf06e12c611198
* gitscraper: support Python3.Dominik Riebeling2012-04-22
| | | | | | | Make gitscraper and tarball script work with both Python 2 and Python 3. Tested with 2.7 and 3.2. Change-Id: I31b2580660d764d013bca6fe59d5663ae9f7f5aa
* Add new tarball generation script.Dominik Riebeling2012-04-12
| | | | | | | The old script depended on svn. An earlier version of this script has already been used in the 3.11. branch. Change-Id: Id03abb8f7bd005ede343243194c4453f0b2e8943
* gitscraper: support compressing the sources as 7z.Dominik Riebeling2012-04-12
| | | | | | | | The Rockbox source code uses 7z for its archive for size reasons. Add support for compressing as 7z (by calling the 7z command line utility) so it can be used for generating Rockbox source archives. Change-Id: I26097ff61ff183e5ddc07b2c4473f90dc0700178
* Correctly insert build ID.Dominik Riebeling2012-03-06
| | | | Change-Id: I35a85ffd78bd0a56a31d6ba0abbd6102727155d4
* Rockbox Utility: add "revision" information back.Dominik Riebeling2012-03-06
| | | | | | | Add a revision-like information and make deploy.py replace it with the git hash. Change-Id: Ic88ad0b2af255e76a7129a6a5cf52663b868fd32
* rk27load: fix linking with newer toolchainsMarcin Bukat2012-03-04
| | | | Change-Id: Id8f86e9f5ca78f41ef4e6c6a9244031afe83389d
* Append "64bit" only on 64bit binary.Dominik Riebeling2012-02-26
| | | | | | | | Don't rely on the build host having the same bitsize as the created binary. Fixes building a 32bit binary getting a "64bit" postfix when built on a 64bit Linux. Change-Id: I2aa61dee82beddd60ebfc8e227551ea49d769664
* 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
* When writing data from repository open file as binary.Dominik Riebeling2012-02-06
| | | | | | | | Windows requires files to be explicitly opened as binaries, otherwise it will perform line ending translations. We really don't want the OS to mess with that. Change-Id: Id56de354b7ad0e5b056540755f7108456f3263ed
* Update deployment script for git.Dominik Riebeling2012-02-05
| | | | | | | | First and rather rough adjustment for git. There are still a lot of places referring to svn, and various functionality might be broken which needs fixing later. Change-Id: Ia628f06e99f527e01f131ce674746fba77d97d23
* Python module to get (some) files from the repository.Dominik Riebeling2012-02-05
| | | | | | | | | | | With git it's not possible to simply export a set of paths from the server directly. This module offers a similar functionality, but requires a local clone of the repository. It calls git directly for maximum portability. This is a prerequisite to making the deployment script used for Rockbox Utility work again. Change-Id: I1aca8ddd40d16b6268c1d6a2fc23ac59e964c3c6
* 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
* Rockbox Utility: add missing folder to deployment script.Dominik Riebeling2012-01-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31584 a1c6a512-1295-4272-9138-f99709370657
* zenutils: remove unused empty fileRafaël Carré2012-01-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31574 a1c6a512-1295-4272-9138-f99709370657
* ypr0: Add variables to provide a argv and stdout/err redirection for running ↵Thomas Martitz2011-12-24
| | | | | | Rockbox to the loader script. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31426 a1c6a512-1295-4272-9138-f99709370657
* Initial commit of the Samsung YP-R0 port.Thomas Martitz2011-12-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This port is a hybrid native/RaaA port. It runs on a embedded linux system, but is the only application. It therefore can implement lots of stuff that native targets also implement, while leveraging the underlying linux kernel. The port is quite advanced. User interface, audio playback, plugins work mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page). Included in utils/ypr0tools are scripts and programs required to generate a patched firmware. The patched firmware has the rootfs modified to load Rockbox. It includes a early/safe USB mode. This port needs a new toolchain, one that includes glibc headers and libraries. rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may also work. Most of the initial effort is done by Lorenzo Miori and others (on ABI), including reverse engineering and patching of the original firmware, initial drivers, and more. Big thanks to you. Flyspray: FS#12348 Author: Lorenzo Miori, myself Merry christmas to ypr0 owners! :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657