summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-16puzzles: change default optimization to -O2Franklin Wei
Change-Id: I606df468f92f8d550827c122a9cfd5248866afdb
2017-01-16puzzles: fix copyright yearFranklin Wei
Change-Id: Iaa02e7a1fe4c17be7c4decbd5eb71206469710e9
2017-01-16puzzles: fix overlay loader (monolithic builds only)Franklin Wei
Change-Id: I7f27e96036b5d22e946cc72146cd0f5a791deaf7
2017-01-16puzzles: disable unplayable puzzles (Solo and Loopy)Franklin Wei
- accidentally enabled in c200v2 fix Change-Id: I252191fc47da9fe1a664a260cb53f6a5a1eea437
2017-01-16zen/zenxfi: remove obsolete commentAmaury Pouly
Change-Id: I1e4a726c85a9d87216412162fd0815747eb32cf6
2017-01-16Fix typo in configureAmaury Pouly
Change-Id: I142822983bf1144ab265caf5e9a488c5e423da4f
2017-01-16zen/zenxfi: add remark about pinAmaury Pouly
Clearly this pin does not control power so don't call it lcd_power. Change-Id: I9a6794e2606de99cb44dd3e7288b5cce5beb8d0d
2017-01-16regtools: convert all reg dumps to v2. keep v1 for referenceAmaury Pouly
Change-Id: Ib496eb5d47adb75479ce94a203d4a93524700843
2017-01-16imx233: add small framework for LEDAmaury Pouly
It handles GPIO and PWM based LEDs, possibly with several channels (red-green LED for example). The debug allows one to play with the setting. Currently the code supports the ZEN, ZEN X-Fi, and ZEN Mozaic. Change-Id: I8c3b66e6ba21778acdb123daabb724280a7d1a4f
2017-01-16imxtools/sbtools: switch SHA1 implementation to Crypto++Amaury Pouly
The current implementation was custom and super slow. Since we use Crypto++ anyway, we might as well get use a good implementation. Change-Id: I761ad7401653471e54000e1c2bc3d9882378112f
2017-01-16imxtools/sbtools: switch AES implementation to Crypto++Amaury Pouly
Instead of having our own copy of the AES code, use a good library to do that. Crypto++ is well-maintained, supports a lot of ciphers, works on many OSes, and is optimized for many architectures. Change-Id: I7d7d24b47993206d7338c5f9bac8bbdd3915a667
2017-01-16imxtools/sbtools: various fixesAmaury Pouly
Change bug() macro, fix memory leaks, always use -h for help, fix usage(), fix comment, remove useless macro Change-Id: I30554b5e07e6f2845560a570808603cf8c4da5ad
2017-01-16imxtools/sbtools: rework cryptographyAmaury Pouly
It was a mess, a mix of crypto_* and cbc_mac calls. I made everything call crypto functions, and also separate key setup from cryptographic operations, this will be useful to speed up the code in the upcoming commits. Drop support for "usbotp" key, since the crypto code for that was never mainlined and we can always get the keys from a device as long as we have code execution (using the DCP debug registers). Change-Id: I7aa24d12207ffb744225d1b9cc7cb1dc7281dd22
2017-01-16imxtools: correctly read unencrypted images in raw modeAmaury Pouly
Change-Id: I87830b81a017f36d2887d9c289d09812f227b157
2017-01-16imxtools: rework key/IV overriding logicAmaury Pouly
The overriding of the IV and real key should be the exception, there is no need to manually set them to false. Change-Id: Id66754f20a79aa5c1a991839345d1242e0aa587d
2017-01-16imxtools: rework sb file productionAmaury Pouly
The old code had some annoying way of dealing with padding by adding explicit instructions to the stream, which is 1) ugly 2) not in par with freescale tools. The trick, which this new version implements, is to put the useful length of the section in the section header, and the actual (with padding) length in the boot tag. This way the tools can just ignore padding instruction by reading the section header, and the bootloader can still load the image because it uses the boot tags. Also correctly handle the case where the first section does not start right after the header (there is a bug in freescale tools for this case by the way). There is an ambiguity in the way the padding instructions should be encrypted: the bootloader should logically treat them as regular instruction of the section stream, but it appears the freescale tools do not generate them as part of the stream and instead encrypt them like boot tags, which is stupid because there is no way the bootloader could decrypt them, and anyway we don't care because the bootloader doesn't decrypt them at all. Change-Id: Iabdc1d1f9f82d374779bf03efb75c2c3998f5b5d
2017-01-16Fix path handling snafu for CheckWPS toolMichael Sevakis
Somehow it got hooked to simulator file functions when it should be (and was) using raw OS functions. Credit: Frank Gevaerts Change-Id: Iac02fed1067830a432183632a047e00dfd03d3c2
2017-01-15Fix codecs in simulator builds on WindowsAmaury Pouly
The mingw linker uses strlen() in some cases, and codeclib.c redefines it, that leads to mingw runtime init to call into our strlen() and then ci->strlen() which of course crashes. Apply the same fix as for malloc and friends: rename the symbol. The codeclib.h include is necessary for normal builds. Change-Id: Ifa85901a3e4a31cc0e10b4b905df348a239d5c99
2017-01-15Renamed defines UNALIGNED to ROCKBOX_UNALIGNED - UNALIGNED is alreadyMatthias Mohr
defined in mingw environments. Renamed defines of UNALIGNED to ROCKBOX_UNALIGNED so that they don't conflict with definitions in mingw32 cross-compiling environments (defined in _mingw.h). Change-Id: I369848c0f507e6bf5ff9ab4a60663bbbda6edc52
2017-01-15Fix configure for windows simulator builds in cygwin / mingw cross-compiling ↵Matthias Mohr
environments. Fixes and Changes to configure the Windows simulator builds mostly for cygwin / mingw cross-compiling environments: - fix CROSS_COMPILE values including detection for old and newer mingw environments - fix detection of sdl-config by searching inside CROSS_COMPILE sys-root - fix call of sdl-config and use correct (found) version - add possibility to build a 64-bit simulator - added several -Wno- options to GCCOPTS to prevent annoying compiler warnings - use cross-compiler as HOST_CC if no "native" HOST_CC is available Change-Id: Ib5dd288c3f9a11be9b66e53e3406eadfa65f7604
2017-01-15fix whitespaceFranklin Wei
Change-Id: I9b0659c218f92051a4de99ec03b97a2b1d067e29
2017-01-15puzzles: fix building on c200v2Franklin Wei
- disables Solo and Loopy Change-Id: I3de15c0ad001683a4303950972af2f5988d438d0
2017-01-15puzzles: antialiased line drawing via Wu's algorithm and optional ↵Franklin Wei
"shortcuts" for undo/redo - line drawing should eventually be moved to xlcd, but for now it's very unportable code - also fixes a minor issue with the configuration screens Change-Id: I897f01b7210cbbec32665c2bc67920c965ea0bec
2017-01-15imx233: workaround hardware dma bugAmaury Pouly
This bug mostly affects the ZEN and ZEN X-Fi and hangs the lcdif dma randomly on boot. Change-Id: I4255db90d87737b7a70d1d53e3ef84e4e14c8c13
2017-01-15Support using swapxx() and bswap_xx() for byteswaps in rbendian.hFranklin Wei
- patch suggested by Massa in http://forums.rockbox.org/index.php/topic,51618.msg238760.html#msg238760 Change-Id: Iba93ff53119db00a18d944d52bc8b1c5fe593fc9
2017-01-15Fix compilation of puzzles on WindowsAmaury Pouly
mingw exports vsscanf and that clashes with rbwrappers' definition. Change-Id: I87481ff4e93547059b2e1fa8083bedcf8633343a
2017-01-14nwztools/upgtools: add real KAS for NW-ZX100 and fix typoAmaury Pouly
Change-Id: I4e4679d6e92c1c0fc8a03db5201aee39d82b24b2
2017-01-14Dircache: Fix a tiny-block reclaim bugMichael Sevakis
Logic left over from before switching from NULL-terminated to counted strings would prevent a single-byte tiny free block gap from being properly reclaimed into free string bytes. Due to rarity, not as disasterous to functionality so much as wrong. Change-Id: I68e0875b04bb0ab6cdead0fdf535144b9c1bc13e
2017-01-13Revert "puzzles: antialiased line drawing and optional "shortcuts" for ↵Franklin Wei
undo/redo" This reverts commit 8e4429853d1ac024ac2b8069636cc210cf5bab1b. Change-Id: Id622d58ad4b3b9dd3313811c8a2f83202d21f5ee
2017-01-13puzzles: fix configuration menu (again!)Franklin Wei
Change-Id: I440f3cea1bbeb3e7bda4aebefaaece3e8f3d44fd
2017-01-13puzzles: antialiased line drawing and optional "shortcuts" for undo/redoFranklin Wei
- line drawing should eventually be moved to xlcd, but for now it's very nonportable code - fixes a minor issue with the configuration screens Change-Id: I897f01b7210cbbec32665c2bc67920c965ea0bec
2017-01-14imx233: fix audio debug screen on stmp3700Amaury Pouly
On STMP3700 there is no dedicated speaker amplifier but speaker is always on lineout so it makes sense to report volume and power down of lineout. Change-Id: If666bccf36d3a5ecc6d892823522d023f3206184
2017-01-14imx233: add note about power down bits in audiooutAmaury Pouly
Change-Id: I204acff8ee697d70fd16f9828010646b10a8f11b
2017-01-14imx233: fix speaker enable/disable codeAmaury Pouly
Change-Id: I6540f2f8ba09bc79b80d71e5f3b0adebd9fce727
2017-01-13puzzles: enable fallback to audiobuf when smalloc() failsFranklin Wei
- upon a failed smalloc(), the audio buffer will be used for further allocations - should fix things on low-memory targets (c100 and c200v2), but breaks playback - playback should still be intact on other targets Change-Id: Ic239f1316efadc957050afacf5c614dbbca3f805
2017-01-13iPod Classic: fix small bug on PCM recordCástor Muñoz
On PCM record initialization, an unknown clockgate is enabled instead of the I2S clockgate. This bug does not produce incorrect functionallity because the right clockgate is already enabled on PCM playback initialization. Change-Id: I97a3a4a6f12131e492c1431359a0a976b68014be
2017-01-09nwztools: add a "reset all settings" message in dest_toolAmaury Pouly
Users can't read the wiki instructions, hopefully they can read this... Change-Id: I3840879fdc663fb6e7f9234f352eea04a556256a
2017-01-09nwztools: fix typo (nwz-zx100 -> nw-zx100)Amaury Pouly
Also now gen_db.py can check for such mismatch Change-Id: I4d91aae0dde08c866eda2ed5da3c11431c46e06a
2017-01-08nwztools: add various info about S740, S750, S640, E050Amaury Pouly
Change-Id: I2cc887ce2824a2d0b9aeb2a89df662c621c28750
2017-01-08nwztools: forgot fileAmaury Pouly
Change-Id: I4341f2af71675cb795987ecc5ce12104445a9d97
2017-01-08nwztools/upgtools: add real NW-A20 kasAmaury Pouly
Change-Id: I88fb2aefafbc7820a49847fbf0888de9cf81bd3f
2017-01-08Makefile cleanupsAmaury Pouly
Change-Id: I69b8b81d357553c979682d42097eba864c951512
2017-01-08nwztools/scitool: rework node size, remove relaxed modeAmaury Pouly
The cool now takes the database as a hint and will not complain if the device returns less data. The tool also supports user provided size and raw node numbers that are not in the database (advanced usage). Change-Id: I8cec536718d7eff01c7803bea648d6122b82377a
2017-01-08nwztools: add NW-WM1 kasAmaury Pouly
Like the NW-A30, we don't know how to use it, but record it anyway. Change-Id: Iebd26637253613625a4885afe88695ad3ffb0605
2017-01-08nwztools: add A35 model and KASAmaury Pouly
We don't know the encryption method, the KAS is completely different but it might be useful to record it anyway for future purposes. MID extracted from device, Japanese NW-A35. Change-Id: I4c4bb5b063da99003b5c316061d8c490b77428a4
2017-01-08nwztool/upgtools: replace NWZ-A10 kas by the real oneAmaury Pouly
Extracted from a target. Change-Id: Ieb4aff15f332a681142a7079c1adf3b1da31de24
2017-01-08nwztools: rename nwz-a20 to nw-a20, that was a typoAmaury Pouly
Change-Id: I88ae7391732c6f41c3c4adccce2ddf0a92142067
2017-01-07Improve the implementation of a couple linked list routines.Michael Sevakis
ll_insert_next() and ll_remove_next() can be done more elegantly by adding a level of indirection to reference the 'next' pointer. Change-Id: If3ab2bc2a659b517c793749cfa9088938ae08d0d
2017-01-07Fix track formatting problems in playlist.cMichael Sevakis
Some changes in behavior were made with filesystem code commit for the sake of compatibility that changed expected behavior. * Restore substitution of drive spec in fully-qualified DOS paths with the playlists's volume spec (or root on univolume targets). Drive-relative paths of the form "c:foo" (no separator after ':') will be treated as purely relative. * Restore old behavior of preserving leading whitespace in the source path and trimming only trailing tabs and spaces. * Multivolume: Volume substition on fully-qualified UNIX/RB paths has NOT been reintroduced (and perhaps wasn't intended in the first place). They will not be modified because there is no ambiguity to resolve. Doing so would prevent a playlist on external storage from referencing a file on main storage without qualifying it with "/<0>...". * Plain relative paths are and always have been interpreted as relative to the location of the playlist. Change-Id: Ic0800cea79c59563b7bac20f8b08abb5051906c7
2017-01-07nwztools: remove NW-ZX2Amaury Pouly
It is Android based and despite the fact that Sony wrote an NVP driver for it, experiments suggest it is unused because it returns ff all the time... Change-Id: I37750b659e341b21bed5ebaccf60f9f5fe569f64