summaryrefslogtreecommitdiffstats
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2016-02-06regtoosl/qeditor: port to the new description formatAmaury Pouly18-1908/+2912
This big commit port qeditor from v1 to v2 register file format. Although the display code was much simplified, the edit code had to be rewritten. The new code also brings many improvement to the register display widget. The new code also compiles with both Qt4 and Qt5, although it is recommended to use Qt5 to get some improvements, especially in the layout of editor. Change-Id: I24633ac37a144f25d9e705b565654269ec9cfbd3
2016-02-06regtools: update v2 specification, library and toolsAmaury Pouly9-211/+1491
A v2 register description file can now include register variants and instances addresses can now be a list (previously it could only be a stride or a formula). Update the library to deal with that. The convert option of swiss_knife was updated and one incompatible change was introduce: if a v1 device has several addresses, those are converted to a single v2 instance with list (instead of several single instances). This should have been the behaviour from the start. Swiss_knife can now also convert regdumps, in which case it needs to be given both the dump and register description file. Also introduce two register descriptions files (vsoc1000 and vsoc2000) which give more complicated examples of v2 register description files. Change-Id: Id9415b8363269ffaf9216abfc6dd1bd1adbfcf8d
2016-01-17update deploy.py to recognize and use Qt5Cástor Muñoz1-1/+1
Change-Id: Ied8c9d153a34bd8b689a34e45708262cede5348d
2015-11-17hwstub: fix atj213x dsp lua codeMarcin Bukat1-9/+9
Change-Id: I5fbd1799b958bedbe74f91bdcdd8a544e15d2a78
2015-11-17hwstub: Add ajt213x lua interface for DSP blockMarcin Bukat2-0/+159
With this you can upload and run code on DSP core in atj213x. The files can be produced using as2181. You can download this assembler from https://github.com/wodz/as2181 You should use extended mode (-x switch) since DSP core in atj is non standard and uses 24bit operands. PX register has different meaning as well and is used as MSB when loading other registers with immediates (immediate field is 16bit in instruction so to set register to 24bit value you need to store MSB in PX prior to this). MAC MR is 56bit accordingly. HIP interface seems to be mapped at standard addresses (except that regular 218x doesn't have HIP). Have a fun! Change-Id: I9a80ca0dd3718ba8435ae8579bfffa66e067e022
2015-10-03qeditor: fix uninitialised variableAmaury Pouly2-1/+7
Change-Id: I12a785e554b7d598b91e526af1b7ebc1fc44f610
2015-09-29hwstub: make it possible to override toolchainAmaury Pouly4-16/+20
Default toolchain can be overriden using PREFIX, for example: PREFIX=arm-none-eabi- make Change-Id: I06f5ad0ad492b9f648ccba853a851918644f0500
2015-09-11soc_desc: new version of the desc file formatAmaury Pouly22-861/+3959
Fix qeditor to use the old soc_desc_v1. Port hwstub_shell to the new description format. Change-Id: I9fefbff534bfaa5c3603bb3dd8307a2b76e88cfc
2015-09-11qeditor: introduce new "sexy register display"Amaury Pouly7-134/+286
Change-Id: Ib938b4be71d2c7623851dbc3c211f96105077d7d
2015-09-10qeditor: use delegate to show bit range informationAmaury Pouly2-8/+25
Change-Id: I314365c3a2cb9d230c412f24d2a8034a12c43444
2015-07-17utils/parse_testcodec.rb: add support for Opus filesCástor Muñoz1-0/+2
Change-Id: I19e59cfe86598c2e5a7b070ef72b5a12e88b7242
2015-06-28hwstub: Add completion and some pretty printing to the shellMarcin Bukat5-18/+1724
This uses slightly hacked luaprompt to provide all the goodis. See https://github.com/dpapavas/luaprompt for original. Change-Id: Iedddb79abae5809299322bc215722dd928c35cca
2015-06-07Append build date when building dev version from local foler.Dominik Riebeling1-1/+2
Change-Id: I1172cb0c4910f1d49b6a5d1125a809491a5aba9c
2015-05-30Make revision handling work when building from local folder.Dominik Riebeling1-3/+2
Change-Id: I8e6cc0eb8a5bff722bf5278ffa7685436c3d846a
2015-05-30Fix path creation for zip file names in current folder.Dominik Riebeling1-5/+1
When building in the current tree (i.e. buildfolder ending up as '.') creating the filename to use in the zip file stripped all '.' characters. Use a different way to create the filename to avoid this. Change-Id: I139c404d5e83a8bcb028a9a22b125f238911e405
2015-05-30Update findversion for change version.h format.Dominik Riebeling1-7/+6
version.h doesn't store the version number as string anymore. Update findversion to use the individual values instead. Change-Id: I6bf0fdd4420d41279b44cffd22b42febbfc778ce
2015-03-29Add jz4760 toolAmaury Pouly2-0/+584
This tool can pack/unpack a jz4760 archive (like the one used for the fiio x1/x3/x5), and can descramble/scramble (it's the same operation) a firmware file (the sys.bin file in the archive). I did my best to keep the compatibility with the leaked Fiio/Ingenic tool which has the same name. I wrote the tools from scratch, but here are some remarks: - the format used is a slightly modified IHFS used in the older JZ4640 series, I used the information on the wiki about the IHFS format - the CRC computation done was already reversed engineered by someone on the forums but I realised this later - There are a few unknown fields in the headers, see comments in the source code - The firmware scrambling was discovered by pure guess, I realised there were some repetitve sequences, some I guessed it was a rotative XOR and ran some analysis to find the most probable sequence Change-Id: Ib83735b3db8475be5de9c94231714e88668a0340
2015-03-04qeditor: Add external static libraries to build dependeciesMarcin Bukat1-0/+10
The solution is a bit hacky as it simply call make in libs directory as pre-dependency. Clean doesn't touch libs. Change-Id: Ib447a48fd87cc41228944f17444474a55d393543
2015-02-16Introduce a new analysis tool to detect which macros are defined in each build.Amaury Pouly1-0/+196
See the usage() for more information. Change-Id: I712ef4d6bd21eccefa18cec144e35b8161ca5b3a
2015-01-23atj213x: Fix DMAC block in description fileMarcin Bukat1-49/+55
Change-Id: I4afc17b06f85d552248c0248e6b4b921ffc1e7a7
2015-01-22atj213x: fix desc file errorsMarcin Bukat1-6/+6
Catched by swiss_knife check there are some overlaping fields and invalid characters in some names. Change-Id: Ia26ffd2e29452f4ddd9f8229f78bb2a2cc325ab4
2015-01-13hwstub: implement read/write data abort recoveryAmaury Pouly11-39/+304
Change-Id: I1625873b6864584c40984723d82548ad242ee08e
2015-01-13Fix crash on uninitialized variableThomas Jarosch1-1/+1
The WRITE() macro checks if the "fw" pointer is open upon fwrite() error. Since fw was not initialized before use, it might crash for non-zero fw. cppcheck reported. [utils/jz4740_tools/HXFreplace.c:187]: (error) Uninitialized variable: fw Change-Id: I558170f9f17828c9fd515a5da36ad8b5cb30a9ad
2015-01-12Clean up bogus 'make compiler happy' codeThomas Jarosch2-7/+8
Less code makes the compiler even happier. Change-Id: I24cf586ba44f432b541fd17079f93dbd52314828
2015-01-12regtools/headergen: Make generator more flexibleMarcin Bukat1-83/+126
Change-Id: I2328ec021ed990a40257d4ce6f4fc5b3db2ba998
2015-01-04jz4740 usbtool: Fix undefined behavior in set_reg()Thomas Jarosch1-7/+7
The variable 'i' should actually be 'size'. See the read_reg() function above it. Confirmed via private email from Maurus Cuelenaere. Thanks! (who also remembered having trouble reading/setting registers over USB back then ;)) cppcheck reported: [rockbox/utils/jz4740_tools/jz4740_usbtool.c:281]: (error) Uninitialized variable: i Change-Id: I0f34834335e89d2504e7597e8db22cf69b5ca7e7
2015-01-04Fix uninitialized variable (should fix libusb retry handling)Thomas Jarosch2-0/+2
Reported by cppcheck Change-Id: I5ac7b73f2e3eaee3d5427d118944613e572f684d
2015-01-04Remove unneeded std::string .c_str() callThomas Jarosch1-1/+1
cppcheck reported: [utils/zenutils/source/update_patch/main.cpp:105]: (performance) Passing the result of c_str() to a function that takes std::string as argument no. 1 is slow and redundant. Change-Id: Ied9de135e693af22e1fdc3aa3b67d14b7d2c21e6
2014-12-20Remove useless assignment of 'len'Thomas Jarosch1-1/+0
The variable 'len' is not used after this statement. Probably a copy'n'paste leftover from the similar looking block above. cppcheck reported: [rockbox/utils/zenutils/source/shared/cenc.cpp:212]: (style) Same expression on both sides of '-'. Change-Id: Ia8357187ed39d3fab10d97df75a1146c4f733790
2014-12-20sb1: fix buggy comparisonAmaury Pouly1-1/+1
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
2014-12-15regtools/qeditor: use the new model, drop unused codeAmaury Pouly4-111/+67
Change-Id: Ic4e2e201f6d055c85d52b7fe15d25980386df5b8 Reviewed-on: http://gerrit.rockbox.org/1023 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/qeditor: introduce custom table model for reg fieldsAmaury Pouly2-0/+289
This one is much more efficient than using a generic table widget. Change-Id: I3578964eead746e656f6b0a8dcec0f8442deb13d Reviewed-on: http://gerrit.rockbox.org/1022 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtoosl/qeditor: remove unused codeAmaury Pouly2-118/+0
Change-Id: I79ad3151d6a500903786b3467c271b43741f8fee Reviewed-on: http://gerrit.rockbox.org/1021 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/qeditor: fix field editor not updating the validator on changeAmaury Pouly3-4/+26
Change-Id: Ib8df47c8b7cfe0beb486e45542e3fcc9187bcc54 Reviewed-on: http://gerrit.rockbox.org/1020 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/qeditor: fix backend dump bug, be more correct on readAmaury Pouly2-4/+5
Change-Id: I581c033435f553f092b61144c4b68b05ab931dd8 Reviewed-on: http://gerrit.rockbox.org/1019 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15regtools/socdesc: update library with a field useful functionsAmaury Pouly1-1/+23
Change-Id: Ib2891fe36b0594e8554bb354a29bc8b3485de20d Reviewed-on: http://gerrit.rockbox.org/1018 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: message widget now supports IDs, useful to clear messagesAmaury Pouly4-6/+37
Change-Id: Ibe0a8909128469a71a25415761860e06fc9f1e67 Reviewed-on: http://gerrit.rockbox.org/1006 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: change setting names, they were inconsistentAmaury Pouly3-6/+6
Change-Id: I47c94520749d0cef1e602c7c62c685a8a3703258 Reviewed-on: http://gerrit.rockbox.org/1000 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: rework register dump to be more general and flexibleAmaury Pouly2-6/+25
Change-Id: I2fb7a2813c93f0804ed1ca6223625706d0dff9a5 Reviewed-on: http://gerrit.rockbox.org/998 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: introduce a new "RAM" backend, and refactor file backendAmaury Pouly2-31/+69
Change-Id: Icfbbc01b83d3592041803387e35f5aa6fb0fa813 Reviewed-on: http://gerrit.rockbox.org/997 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: display message on "Nothing" backend selectionAmaury Pouly3-4/+19
Change-Id: I071c79500f55afe0b6342cbb5a26a9fddba35d94 Reviewed-on: http://gerrit.rockbox.org/996 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: backends can now report validity statusAmaury Pouly2-0/+9
Change-Id: Iefedc9cee10a8c7457d972e5a60d151a6cb38aa8 Reviewed-on: http://gerrit.rockbox.org/995 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: introduce a message widget to display non-interactive messagesAmaury Pouly4-0/+120
Change-Id: Iad43efa1f09428389fbd09403c1ae20d2805f1c5 Reviewed-on: http://gerrit.rockbox.org/987 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: rework mainwindow tab names handlingAmaury Pouly4-7/+20
With the previous code, tab names would be ignored if tab is detached which can happen early on. Change-Id: I9eac4202850f3e79a04590a4ba1444850ec6a583 Reviewed-on: http://gerrit.rockbox.org/986 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15qeditor: add copyrightAmaury Pouly19-1/+380
Change-Id: I7834bc09b21f2a2d84b1c9edbbe1188372809c63 Reviewed-on: http://gerrit.rockbox.org/983 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-15Revert "regtools/qeditor: use the new model, drop unused code"Amaury Pouly4-67/+111
This reverts commit 3b3d9bf725a5b04e4cd9bc4254fbd2594b518e89. Gerrit did crap on this one.
2014-12-15regtools/qeditor: use the new model, drop unused codeAmaury Pouly4-111/+67
Change-Id: Ic4e2e201f6d055c85d52b7fe15d25980386df5b8 Reviewed-on: http://gerrit.rockbox.org/1023 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-12-13MTP: put libs after files in the Makefile, to please old gcc versionsAmaury Pouly1-1/+1
Change-Id: I6de6771bd8888e40fb9dafa3c84653c8c680bbef
2014-11-28hwstub/atj213x: add clock setup to crt0.SMarcin Bukat1-1/+29
Change-Id: I3b6e1b8ee1fa76396f7abe7df69af26e9599cfe9 Reviewed-on: http://gerrit.rockbox.org/1055 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
2014-11-28qeditor: add clock analyser for ATJ213xMarcin Bukat3-16/+377
Change-Id: I5f5a3537d1ddf6b02684dd4c1dd13be862d3a918 Reviewed-on: http://gerrit.rockbox.org/1054 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>