summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2014-09-19regtools: reg-rk27xx.xml description file rework and cleanupMarcin Bukat1-97/+381
Change-Id: I0a2e45eb1b4aa03122382cc93bbc0c292b3249be
2014-09-19qeditor: Implement clock analyzer for rk27xxMarcin Bukat3-5/+200
Change-Id: Ib8f53d32120893b6c1054299ed434a6650a0d7c2 Reviewed-on: http://gerrit.rockbox.org/971 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2014-09-19qeditor: rework modified indicator, register tab names depend on contentAmaury Pouly7-48/+129
Because Qt doesn't support QObject multiple inherance, it is a bit tricky to have a base class which interact with the UI. The register tab name now display: - file dump name (for dumps) - hwstub device path (for hwstub) And the register editor display the filename Change-Id: If2579992098c02627c67d560c824f1668e73bc45 Reviewed-on: http://gerrit.rockbox.org/979 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: implement usb device list refresh (if supported)Amaury Pouly2-0/+10
Change-Id: Iaf05cad0e057f767dcde963d194027b2e290dbea Reviewed-on: http://gerrit.rockbox.org/978 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: fix UI to update register/analyser view on each tree/list clickAmaury Pouly2-19/+5
Change-Id: Idaceb7ffaf33c2184a43353dd9d7dee20ac807a9 Reviewed-on: http://gerrit.rockbox.org/972 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: fix horrible out of bound bugAmaury Pouly1-1/+1
Change-Id: I1b34b1cd7be83d90e38559e386d0c6c64797b707 Reviewed-on: http://gerrit.rockbox.org/977 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: when switching type tab, automagically switch view, implement reloadAmaury Pouly2-0/+19
Change-Id: I7360af3b5dd7380151732687d6d8de3dbd503f20 Reviewed-on: http://gerrit.rockbox.org/976 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: avoid memory leak in RegTabAmaury Pouly1-1/+1
Change-Id: Ib7cd87b66c0ceb3d3ff93714709a43e2a97ce79a Reviewed-on: http://gerrit.rockbox.org/975 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: move backend selector to its own class, that's cleanerAmaury Pouly4-163/+196
Change-Id: I7f3fa66a8f67639b4b64cf9f6acc5fb10e227653 Reviewed-on: http://gerrit.rockbox.org/974 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-19qeditor: initialise libusb once in a static ctorAmaury Pouly1-5/+18
Change-Id: Ic93def2b3633c498c9863b0dada3281853be8c6c Reviewed-on: http://gerrit.rockbox.org/973 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-18regtoools: Enhance rk27xx description fileMarcin Bukat1-1928/+2416
Change-Id: If37551757188d98bcb27f7f469c11cf89bf64f62
2014-09-16regtools/soc_desc: fix libxml2 misinitAmaury Pouly1-1/+17
The code did not call xmlInitParser() and would call xmlCleanupParser() each time which is doubly wrong because 1) it's not init 2) all init/cleanup must be done from the main thread. To ensure 2), call it from a static ctor. Change-Id: I3d191bf3b8c0cfc51da78157e88c786636fd3ebf Reviewed-on: http://gerrit.rockbox.org/966 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-09-15rk27xx: Fill UDC block description in regs-rk27xx.xmlMarcin Bukat1-84/+740
Change-Id: Ia44169bda8f1558c1cbd4c8c0d2d3aaee262c991
2014-09-11hwstub: small fixup in rk27xx usb driverMarcin Bukat1-1/+1
Change-Id: Ibf3b91af11041834ce650f663b213bac0113f721
2014-09-08hwstub: add support for jump/call in libraryAmaury Pouly2-20/+16
Change-Id: Ia57ca613609a5e89e41ff927d7fc137c6841046a
2014-09-08hwstub: implement jump/call in stubAmaury Pouly1-6/+25
Change-Id: I876fa012c5ae1509e57f5816a8ed31dc69d62ca0
2014-09-08hwstub: trivial changesAmaury Pouly2-2/+3
Change-Id: Iacb1721db1ae59d5f359d244fd68234915e611cf
2014-09-07sbtools: add option to ignore sha1 errorsAmaury Pouly3-14/+30
Change-Id: I6bf9e4671e57f8ff3f436660e8ecb561027a036c
2014-09-07hwstub: fix compile issueAmaury Pouly1-1/+1
Change-Id: I939c05d3c1319b122fe64bff0f0ea300ecbd1180
2014-09-07qeditor: add soc panel, to display soc informationAmaury Pouly4-6/+92
Change-Id: Ie442b82d96fb150c7466f1a274240f9b111fd91e
2014-09-07qeditor: use hwstub library function to identify devicesAmaury Pouly1-15/+8
The new protocol is interface based, so matching PID:VID is not sufficient Change-Id: I27983a9c3b7db01b8e63b41e885f86d09c362f60
2014-09-07hwstub: library now check version on openAmaury Pouly2-3/+14
Change-Id: I672a882ad06780da93c1d811af2b28ff60d07469
2014-09-07hwstub: add string versionAmaury Pouly1-0/+4
Change-Id: I919c27eb7ea69fdac7b3a65785a5a6eb3723a80e
2014-09-07hwstub_shell: add support for set/clr/tog without SCT using read and writeAmaury Pouly1-1/+41
Change-Id: Ib0a5123e5cc51ee193ef761c36af63467740c670
2014-09-07hwstub: fix missing \nAmaury Pouly1-3/+3
Change-Id: I077a38d8a8905b7ad686d0d00b2a8a48bd206ade
2014-09-07hwstub: fix horrible bugAmaury Pouly1-2/+1
Change-Id: I8042f692045a23dbb545d840e5169ce4b99fe5d2
2014-09-07hwstub: don't put revision in the protocol, it's specific to the implementationAmaury Pouly4-13/+8
Change-Id: I1311a22da41fe977f1613f1e313a864baa03027c
2014-09-07hwstub: fix library to actually work and compile, still miss some functionsAmaury Pouly2-6/+53
Change-Id: I968dafb4dca7d674165a43e3a435762fe38ed37f
2014-09-07hwstub: remove protocol to make it use its own interfaceAmaury Pouly5-135/+347
This way, hwstub can be implemented along with other usb features/interfaces. Change-Id: I7148cab845049cc0a8b8e740fa0d52d3a385eaed
2014-09-07sbtools: use default transfer size if it cannot be probedAmaury Pouly1-9/+14
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
2014-09-02hwpatcher: add generic RKW file patching scriptMarcin Bukat1-0/+126
This script is handy hacking tool to patch RKW file with arbitrary binary and put jump into implanted code. It also shows how to use hwstub crc routine. Change-Id: I89b5086dc1ddaca3dbc03df26a85472d8a20d51e
2014-08-26hwpatcher: add framework for CRC computationAmaury Pouly2-11/+106
Change-Id: Ib78f0fe58db5cec86f043d3e9e1ca14e69297ba0 Reviewed-on: http://gerrit.rockbox.org/911 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2014-08-13hwpatcher: fix horrible typo in the makefileAmaury Pouly1-1/+1
Change-Id: I6e8d8ae3a5f6e1111a6b7d910a1a6b94e2733ca6
2014-08-07rkwtool: The tool to inspect and extract update RKW filesMarcin Bukat5-0/+812
Change-Id: Ie32d0a597b93d23a7d5946a3d9409572b41b45bc
2014-07-23rk27load: stage1 dram config fix #2Marcin Bukat1-7/+5
Change-Id: I5c4cf3dedab26e4cae05496bcae3a2d235d12e2f
2014-07-23rk27load: fix stage1 dram config bugMarcin Bukat1-9/+9
Change-Id: I03d44dbd05fcd5dfc0e508020fae7006d8a97505
2014-06-25Remove empty filesAmaury Pouly2-2/+0
Change-Id: I44a4a90cddba7d0aed4d5f06934848690d0d32f4
2014-06-24Introduce hwpatcher, a tool to patch binariesAmaury Pouly17-0/+2228
This tool is a scriptable (lua) tool to patch binaries, it supports: - raw binary - ELF - SB(v1/v2) It also contains some basic routines to parse and generate useful arm/thumb code like jump or register load/store. This is very useful to take a firmware and patch an interrupt vector or some code to jump to an extra payload added to the binary. Examples are provided for several STMP based target which the payload is expected to be hwstub, and also for the Sansa View. A typical patcher usually requires three elements: - the lua patcher itself - the payload (hwstub for example) - (optional) a small stub either to jump properly to the payload or determine under which circumstance to do the jump (hold a key for example) Change-Id: I6d36020a3bc9e636615ac8221b7591ade5f251e3
2014-06-15hwstub: load rk27xx specific bitsMarcin Bukat1-0/+2
Change-Id: Ie0c68925f933aebeb9b3497800a29de2d69fead2
2014-06-15hwstub: Add support for rk27xx lradc blockMarcin Bukat2-0/+20
Change-Id: I8fe15ad8207ac7098944bb85d6b66b91b9858e8f
2014-06-15Rework reg description file for rk27xxMarcin Bukat1-649/+601
Change-Id: I3fc1c6c70c828dca285479eaa168328a2a8fdf2c
2014-06-15Add RKW build target in rk27xx hwstubMarcin Bukat1-0/+3
Change-Id: I5ad44916bc1ac5e8a9384db2369f07b137a1a715
2014-06-15hwstub: fix usb driver for rk27xxMarcin Bukat1-28/+50
Change-Id: I299e76837715c320987177eaea8459f8f199cb96
2014-05-25regtools: add new reg dumps from various targetsAmaury Pouly6-0/+4342
Change-Id: I289f03a8404c6aa8ec2ff94a8a0a3118fd3c7456
2014-05-12qeditor: on Windows it’s not impossible to create a file with AUXDmitry Gamza5-5/+5
Change-Id: Ic7ef01328eccbed4afddb0a09d2afbb6c1f6a28f Reviewed-on: http://gerrit.rockbox.org/811 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-05-11qeditor: many enhancementAmaury Pouly8-40/+261
Qeditor has been improved in many ways: - it can now dump all registers, just like the lua DUMPER.dump_all() command - several crash were fixed - when connected to a hwstub command, one can correctly edit individual fields - the code was simplified in several places Change-Id: I092b99ce3a12ff6417552de61d62c65f706bcff0
2014-05-11regtools: headergen can now output the description in the headersAmaury Pouly2-4/+108
This is useful to provide some documentation in the code. Change-Id: Ib440363d82c47c36fffb9567a2e7f374eaaa5cbc
2014-05-11regtools: make qeditor aware of PPAmaury Pouly2-0/+16
Change-Id: I3b4fa625499aa66bb5617971445fa3c1c209134e
2014-05-11hwstub: add some PP and Sansa View codeAmaury Pouly3-0/+235
Change-Id: If188a01adee2a0e1c7a46c424a0a9cde9f666831
2014-05-11hwstub: hwstub_shell can now run files/cmd provides on command lineAmaury Pouly1-4/+31
Change-Id: Id5cb3bee52b39e2ddec95c646ca9b4a3334bdf92