summaryrefslogtreecommitdiff
path: root/utils (follow)
Commit message (Collapse)AuthorAge
...
* regtools: normalise description files, and remove obsolete file. No logical ↵Amaury Pouly2014-05-01
| | | | | | | | change. Files were generated using utils/regtools/tester in "write" mode. Change-Id: Ib391b8dbb5ec84eb821e0d0a3699d306414f2aa1
* regtools: fix makefilesAmaury Pouly2014-05-01
| | | | Change-Id: Ib69aac4e7510c99398130467b7fe0f10fc4897f7
* regtools: completely rework qeditor, improve soc desc library and toolsAmaury Pouly2014-05-01
| | | | | | | | | | The graphical editor can now display and editor description files. The library has been improved to provide more useful function. The XML format has been slightly changed: only one soc is allowed per file (this is was already de facto the case since <soc> was the root tag). Also introduce a DTD to validate the files. Change-Id: If70ba35b6dc0242bdb87411cf4baee9597798aac
* regtools: update soc desc parser/header to include desc fieldsAmaury Pouly2014-05-01
| | | | Change-Id: I32374784d17f4352905f15e404df23b01338235b
* hwstub: add proper PP supportAmaury Pouly2014-04-12
| | | | | | | | | | | - drop support for PP500x: it's very different from other PP and although it would be possible to support them, I don't have one to test the code - make sure only the CPU is started - add PP descriptor to report chip ID and revision - add code in shell and lua to support pp (no register description yet) - compile for ARMv4 because PP502x is an ARM7TDMI Change-Id: I36c4e465dfc2cfdfe7433b2f65cc8f6f0720fe62
* hwstub: fix error in config descriptor, cleanup some codeAmaury Pouly2014-04-12
| | | | Change-Id: I853340ed2c187a044726ca03ec52aed655707e27
* Add hwstub support for portal player (manufacturer mode)Amaury Pouly2014-04-07
| | | | | | | | It is very similar to how e200tool from MrH works but uses the framework of hwstub which is makes it completely trivial since we already have the USB driver written. Change-Id: I61cdc245d3f828c2682bcd6ecfed5a1cc0094139
* Add new tool to upload code on e200/c200/view in manufacturer modeAmaury Pouly2014-04-07
| | | | | | | This is actually the trivial part of e200tool from MrH: it simply writes the code on the bulk endpoint. Code was mostly copied from imxtools/sbloader. Change-Id: I6c208840d23553aaf3bd8b9374e6b0337e54f3b0
* ypr1: Add some commands to rockbox.sh which are needed for playbackThomas Martitz2014-03-09
| | | | Change-Id: I2772e218174b5d1fbc7c066fee41d6fb06c01900
* atj213x: various fixes in sample code snippetsMarcin Bukat2014-03-04
| | | | Change-Id: I78781e1a56cb6705d011ee2296f1789b497a566a
* imxtools/scsitools: increase SCSI delay to 10 secondsAmaury Pouly2014-02-22
| | | | | | | On some OSes like Windows or if running in a virtual machine, the one second timeout might be too short. Change-Id: I717f7a2aaed1cb3d40e8fbe6f9b1081b43ceea95
* imxtools/scsitool: add progress indicatorAmaury Pouly2014-02-22
| | | | Change-Id: I061ddac4f882156139e38fa6d495fee86271a6aa
* imxtools/scsitool: improve output formattingAmaury Pouly2014-02-22
| | | | Change-Id: Ifc5b5252e1342f381356f7bd5c2fed5ad8beddfe
* regtools: fix headergen variadic macro generationAmaury Pouly2014-02-18
| | | | Change-Id: I5e2439e5dcbeaaafda75c6ea457e53ee1ba26463
* atj213x: rework crt0.S in test codeMarcin Bukat2014-02-14
| | | | | | | Rework init code so relocation is safe for binaries linked into cached unmapped KSEG0 region. Change-Id: I705ee3f0334f8998237f249a2c3059d6dbe78a43
* regtools: Add rk27xx register description fileMarcin Bukat2014-02-13
| | | | Change-Id: I27101876d031cbcbb00e741ea742a6f64a7baad7
* regtools/qeditor: fix crash when hwstub device fails to openAmaury Pouly2014-02-13
| | | | Change-Id: Ica2fd201f2ae8ee63b1ae81f27433c841d2f22cd
* Fix redAmaury Pouly2014-02-12
| | | | Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
* regtools/qeditor: implement UI code to write registersAmaury Pouly2014-02-10
| | | | | | | | | | The UI now has a "read-only" check box to prevent accidently changes: once unchecked, the UI can do write to register (only full register writes are supported for now). If the register supports it, the UI provides SCT writes as well. The display register panel was moved to its own class to cleanup things a bit. Change-Id: I0fc6aab3b351f9080076102ee6fad0037ab5353b
* regtools/qeditor: enhance backend write with write mode (SCT)Amaury Pouly2014-02-10
| | | | Change-Id: I723bce7a60fb08c1d1d5f894a225c36bc1ba4394
* regtools/qeditor: clean-upAmaury Pouly2014-02-10
| | | | | | | Free the backend when closing a tab to release some memory. Implement about dialogs. Change-Id: Ic8c500a23d38e6c3dd4de6a4ba862012925968be
* regtools/qeditor: prepare support for register writingAmaury Pouly2014-02-10
| | | | Change-Id: Ifef36a3ddb1604db63ec974da2d6a77a5540ff42
* regtools/qeditor: rewrite soc handlingAmaury Pouly2014-02-10
| | | | | | | | | The code was a mess with respect to soc handling: some code just plain copied the SoC descriptor which are big objects, some was using indexes. The new soc factor out everything in a few classes which hide these ugly details so that descriptors are never copied. Change-Id: I17af8b47f997a528b58221621389d42d24fded93
* hwstub/regtools/qeditor: put soc descriptors in a list instead of a vectorAmaury Pouly2014-02-10
| | | | | | | A SoC descriptor is not a small object: it can be as large as ~100KiB so it's better to avoid copying things over. Change-Id: I1ef862e1260299cdaa0c4d2822ac45968713498a
* utils/regtools: slight rework of tab management in qeditorAmaury Pouly2014-02-10
| | | | Change-Id: Iaf41defb79bb76010f3ff5269c28e4bad991ebc3
* utils/regtools: make qeditor able to poke directly at a hwstub deviceAmaury Pouly2014-02-10
| | | | | | | | | | | | | | | This commit add the very handy feature of being able to read registers directly from a device using hwstub. This is mostly trivial using the hwstub library and the biggest change here is actually: - being able to read registers by name and/or addresses - being able to enumerate devives The UI code currently doesn't handle hotplug but the backend does so it should be trivial to add in the future. It also opens up the possibility the write registers from hwstub or save the register values to a file. Since it relies on both hwstub and libusb, a switch has been introduced in qmake to disable it (use -config nohwstub). Change-Id: I5d7d7a2a7c97ecd7407227357c8553c2773ea6cc
* utils/hwstub: make stmp stub able to load in a MMU'ed environementAmaury Pouly2014-02-10
| | | | | | | | | In might be useful to load hwstub in an environment with the MMU active, in which case care must be taken on the order in which things are done. Mostly, one should not disable the MMU before moving stuff around. The code assumes the linking address (0 currently) is identity mapped. Change-Id: I8d54ce9e8cadcde2e08990353ca7a46803731ca7
* utils/hwstub: completely rework the protocol, drop unused featuresAmaury Pouly2014-02-10
| | | | | | | | | | | | | | | | | The protocol has evolved a lot during the 2.x.y lifetime, bringing more features which later got unused. This commit removes all the unused stuff and simplifies everything: - drop the feature mask: everything is mandatory or stalled on error - remove the info request and put all static information in standard USB descriptors which are part of the configuration descriptor (and can be retrieved using the standard GetDescriptor request). - remove the USB interface, we had only one anyway - remove all endpoint descriptors - remove the exit/atexit stuff, it never worked as intended anyway - update the hwstub library and make it able to handle any device - update the tools (mostly renaming and removing of code) Change-Id: I1872bba7f4177fc3891180e8f944aab88f5bde31
* atj213x: Simple test exploring irq handlingMarcin Bukat2014-02-09
| | | | | | | | | This test software setups timer T0 periodic interrupt. In ISR it changes backlight level. The interrupt handler does not support nesting and the whole ISR is run in interrupt context. Exceptions are not handled yet. Change-Id: Idc5d622991c7257b4577448d8be08ddd1c24c745
* Samsung YP-R1 target portLorenzo Miori2014-02-05
| | | | | | | | | This is the basic port to the new target Samsung YP-R1, which runs on a similar platform as YP-R0. Port is usable, although there are still some optimizations that have to be done. Change-Id: If83a8e386369e413581753780c159026d9e41f04
* samsung ypr0: Include getty service in the patched firmware for usb serial ↵Thomas Martitz2014-02-04
| | | | | | | | | | | | | | shell access. The getty service mointors /dev/ttyGS0 (also created by the patched firmware). When the g_serial.ko module is loaded this automatically enables shell access via usb. It exposes a cdc-acm device to the host which is compatible to linux (usb_serial.ko) and windows. The g_serial.ko is not included module can be build from the YP-R0 open source package provided by samsung. It can be loaded via rc.user on the internal memory. Change-Id: I4903a635fd2e2f0ce6f5e91589a31d72bba2776b
* rk27utils: improve command line parsing, allow arbitrary USB ids in rkusbtoolAmaury Pouly2014-01-30
| | | | | | Change-Id: I884fe29c10dede7823721c2cac5dc627d6ab25c6 Reviewed-on: http://gerrit.rockbox.org/731 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* adfuload: add atj213x timer0 test programMarcin Bukat2014-01-08
| | | | | | | | | | | This simple program shows how to setup timer for periodic operation. Interrupts are not used yet and simply pending irq bit is polled and cleared when set. This program supports my understanding of disassm of ADEC_N63.BIN that P_CLK is configured for 7.5MHz and timer clock source is P_CLK directly. Change-Id: Idd6461bf847c763b78b8c324012ec2515f65dd41
* bloat-o-meter.py: Now compatible to python 3.Thomas Martitz2014-01-07
| | | | Change-Id: Id617aa6304a5a9263ef6ceed7d9c3010b47e73a8
* atj213x: obtain PC value in more elegant wayMarcin Bukat2014-01-03
| | | | Change-Id: I2e6ffb3b58ddda0ea62ce5d4cd71ac5475b34495
* regtools/qeditor: always open a register tab at initAmaury Pouly2013-12-24
| | | | Change-Id: I47a1413ca648c7166571e6b0ba88c7ebb5ce86a8
* hwstub: update zenxfistyle codeAmaury Pouly2013-12-24
| | | | Change-Id: I7e85101eca7dfc0f68c215936be4aa19749923ad
* hwstub: use delay in zenxfistyle codeAmaury Pouly2013-12-24
| | | | Change-Id: Ia9576162b3b28d3778fe479cc321c879d73247c6
* hwstub: fix lcdif pin setup for 18-bit busAmaury Pouly2013-12-24
| | | | Change-Id: I30a2cedb1170abbee5a80c33206c147eb4207ca5
* hwstub: add delay functionAmaury Pouly2013-12-24
| | | | Change-Id: Iab208ed59a9a2540a64b190357411d3de28f288e
* hwstub: add ZEN X-Fi Style code (preliminary)Amaury Pouly2013-12-24
| | | | Change-Id: I535d54bc3fb2263c174b7ae983ea4f5ed68e6390
* imxtools/scsitools: tool can now write a firmware using SCSIAmaury Pouly2013-12-24
| | | | Change-Id: Iac803d4b2d48319a1a32d1101f5041d20174c7a1
* hwstub: fix lcdif code for 18-bit word lengthAmaury Pouly2013-12-24
| | | | Change-Id: I38cf0b5808443d5c19ebddb329c2a1636bcc4b28
* adfuload: add test programMarcin Bukat2013-12-13
| | | | | | | | | This test program. I add it mainly to document somehow my work: 1) atj213x.h lists registers addresses 2) crt0.S exploits self relocation of the binary 3) test_bl.c documents how to control backlight on e150 Change-Id: I055e0fe065d926a5c3805b73cea3f537cb64bf52
* hwstub/stmp: disable watchdogAmaury Pouly2013-12-13
| | | | | | | Some targets like Sony NWZ use a watchdog, so we must disable it to prevent spurious reboot when we take over Change-Id: I138a8d7f9a1b089acb2d08d7f6c4a58e8b088b3a
* hwstub/stmp: cleanupAmaury Pouly2013-12-13
| | | | | | | Conditional no longer needed since ctr0.S is private to target, also setup stack just before jumping to C code only Change-Id: I74116239be9e87bbe53e8fa814c45f04f242f1c1
* adfuload: utility to upload and exec binary using brom adfu mode of atj213x SoCMarcin Bukat2013-12-11
| | | | Change-Id: If52aa34124be2801c2ac316641ff9aa0bbd837c6
* 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
* hwstub: Prepare for multi arch supportMarcin Bukat2013-12-06
| | | | | | Change-Id: Id38411ff95660e60ee23f99350b275b92b3e4578 Reviewed-on: http://gerrit.rockbox.org/690 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>