AgeCommit message (Collapse)AuthorFilesLines
2016-11-06hwstub_shell: fix a horrible bugAmaury Pouly1-1/+1
Change-Id: I4ac259e6cd7b707ca725c6ba1c526f5aeed56b71
2016-11-06SVG image of the Creative Zen Vision, plus other formats for the manual.Szymon Dziok3-0/+4979
Change-Id: Ib6fa4a71014f718dd05cb754b80156c2e74ca1ea
2016-11-06forgot fileAmaury Pouly1-0/+152
Change-Id: I32e23035a608ee04a69690975ab4bf629a902388
2016-11-06nwztools/plattools: fix black screen issue in dualboot, rework dualbootAmaury Pouly7-76/+180
Sony added extensions to the frambuffer interface. It is important to take them into account since the OF uses them and might leave the framebuffer in an unusual state which would make the dualboot not display anything. Also rework the dualboot code so that it can boot rockbox (not doing anything at the moment), display all tools or boot the OF. Change-Id: Ia0f589c9ec8558f375270841503c0964aff07f0b
2016-11-01nwztools: add preliminary dualboot and dualboot install scriptAmaury Pouly7-6/+363
At the moment, the script install_duaboot does the following: - rename SpiderApp to SpiderApp.of (unless it already exists) - install payload as SpiderApp - fixes permissions Since SpiderApp is the main app, it will execute instead of the OF. The current dualboot code (dualboot.c) is still a preliminary but the current version displays an "all tools" menu to choose for. When exitting the menu using BACK, it will run the OF. With the modifications made by the install script, it should not be possible to break the device. In the worst case scenario, the dualboot code crashes and it restarted by the sysmgrd, or hangs. A safe way to recover is to plug the USB cable and reset the device: the system manager will then start the USB app and one can reflash the device if necessary. Change-Id: Id9edab0347538ad2a8651a28aea7fd083feaa626
2016-10-31nwztools/upgtools: sanitize series name and add keysAmaury Pouly1-5/+8
Unify series names: e46x -> e460 to be consistent with Sony' name. Add keys for various players that were cracked using upgtools. The real KAS would need to be extracted from a target but at least we can open/create firmware upgrades. Change-Id: Id23a10e10170d7f6330c6699bf205c4df5ddebfe
2016-10-31nwztools/plattools: rework/clean and add an all-in-one toolAmaury Pouly13-27/+325
This new tool (all_tools) embeds all the other tools and provides a menu to choose which one to run. Change-Id: I0e07864dd46559a7079b0f942c25155e6fa07112
2016-10-28nwztools/plattools: add a tool to change destination and sound pressureAmaury Pouly1-0/+218
Since the nwz_lib does not have any nvp code yet, it's quite of ugly hack with hardcoded nvp node (11) for shipment information (shp). Thus I whitelisted two series (NWZ-E460 and NWZ-A860) which I know for sure use this node ID. Change-Id: I94c9b0db1f9d7ad764d2aa50576a911e710f25e1
2016-10-28nwztools/plattools: add device listAmaury Pouly4-1/+211
This list can map from model id to device name. It was automatically extracted from Sony's tools. In the future, we will probably generate it from a clean database containing more useful information. Change-Id: Ibe580edf25b60bf0bf4aef4a06f40dddd19c5404
2016-10-28nwztools/scripts: export model id in an environment variableAmaury Pouly1-0/+2
This is useful because there is no easy way to get it except from Sony's tool, unless one knows the npv node, but that requires to know the model already... Change-Id: I202f7cdb2f7cf924cc5bdb53c17e34600d4bf153
2016-10-27nwztools/upgtools: rewrite keysig brute force searchAmaury Pouly7-106/+299
The new search has two new features: - it takes advantage of the fact that DES keys are only 56-bit long (and not 64) - it is now multithreaded As a proof of concept, I ran it on the A10 series firmware upgrade and was able to find the key in a few seconds using 4 threads. The search is still limited to ascii hex passwords (seems to work on all devices I have tried thus far). Change-Id: Ied080286d2bbdc493a6ceaecaaadba802b429666
2016-10-26nwztools/plattools: switch to BACK key to quitAmaury Pouly5-22/+22
The power off/option does not exist on some models. Change-Id: Ifb45293b3b3faa96d9fece2340cbd98299a4a0b7
2016-10-26nwztools/plattools: add test_power, rework input, add test_ts (touchscreen)Amaury Pouly8-17/+685
Change-Id: I55ca29627801b5e760d1dbe407d96cd055f659ab
2016-10-22hwstub: fix compile and linking orderingAmaury Pouly2-5/+5
Change-Id: I0acd3db2f644f4521da715d4931315bdb7548eae
2016-10-19nwztools/plattools: add adc testAmaury Pouly6-2/+213
Change-Id: Ic3ef964e8b5cc7b8ca3f02f141e9e4436a4d41db
2016-10-19nwztools/plattools: add backlight testAmaury Pouly3-0/+146
Change-Id: I4bef0824eeed54238578d8b24a9845e8602d61af
2016-10-19nwztools: add a new plattools directory with code to run on the deviceAmaury Pouly7-0/+426
This is code is intended to development into a library of code for the NWZ that will be useful to write the "bootloader" on those device. At the same time, it comes with test programs that are easy to run in firmware upgrade mode and also provide a great test bench for the library. At the moment, two test programs are available: - test_display: simply prints two messages using /usr/bin/lcdmsg - test_keys: displays input key event Change-Id: I9d214894ffc9127b528fcdd3eb5d6b61f4e657a7
2016-10-19nwztools: update makefile and add scriptAmaury Pouly3-2/+76
The new script allows the upgrade to execute a file found on the user partition. Change-Id: I564941d01bcdbae050002e77cb119f3d95ecdc21
2016-10-19fix typoAmaury Pouly1-1/+1
Change-Id: Ia69e5ff941549ca98b23b40927137bb29876b8f9
2016-10-19nwztools: rework upg scriptsAmaury Pouly3-18/+117
The exec_file allows to embed a script/executable and run it on target. It takes of unpacking, remounting contents rw and redirect output to exec.txt at the root of the drive. More generally, rework how the makefile works. Change-Id: Iec719227be96e80701ad8f5398d2d34389f4da9e
2016-10-12pdbox: fix bug shown by new gcc warningFrank Gevaerts1-0/+2
Change-Id: Ife308a3090f9bc62f2e98d2d979fdf393c22054d
2016-10-03Rockboy: revert FS#11745 patchSebastian Leonhardt1-1/+1
William Shipley sent this patch via mailing list. Original Message: "There was a patch to rockboy in 2010 that fixed a problem where the bottom tile row would be rendered at the top. Here's the relevant issue from that time: Note that Stummi openly admits it was a hack, not a true fix. Sometime in the 6 years since, the root cause was fixed. Currently, rockboy on the Clip+ and other 64px models shows the top of the gb screen along the bottom of the display. I confirmed that reversing this patch fixes the issue on my own Clip+" I don't have any of the mentioned targets, so someone else has to test. Change-Id: Id29b78c4ece0af53ba1280029c18b76808a21da2
2016-10-02SA9200: Remove duplicated and misleading define.Szymon Dziok1-4/+0
Change-Id: I51f61349de8c32eeb70ca1812e7b34823f482f18
2016-10-02HDD16X0/HDD63X0: Enable power status of charging from USB.Szymon Dziok1-2/+0
Change-Id: I7b1e5e87921ae0770f7783680c3dbcdbf6f257f3
2016-09-25HDD6330: Implement ATA power on/off.Szymon Dziok1-0/+17
This should fix some errors, panics in some individual cases. Change-Id: I27ce41f0563378e03371724f8b044404c6e69b76
2016-09-23Fix makefile not rebuilding rbversion.h in some casesAmaury Pouly2-4/+8
For example when running make VERSION="bla" Change-Id: I8f8833f0fb200828346ed0a6842a9340e3653932
2016-09-22Mark Philips GoGear players as stable.Szymon Dziok1-3/+3
Change-Id: Id1f22488724d3ada5fa6efffc87e444add86400d
2016-09-22imx233: fix dualboot, forgot a fileAmaury Pouly1-0/+22
Change-Id: I8d5817d75f76a201c3a8b76db0d1e11f71548179
2016-09-22fix red on stmp<3780Amaury Pouly1-0/+2
Change-Id: I74f0450e8f42032265b980b95f17b0b05d9dffa5
2016-09-22imx233: fix dualboot stubsAmaury Pouly1-21/+21
They did not compile anymore after the register hearder rework. This change only fixes the syntax, the generated binaries are exactly identical. Change-Id: Iec2347aa3deb1ddfe2ca36f0db1e481c4e2d329c
2016-09-22imx233: add power-up source to the debug menuAmaury Pouly1-0/+1
Change-Id: Ib67385354b1d6529d41198bfdcb1ecd092e9b98b
2016-09-22Mark Samsung YH players as stable.Szymon Dziok1-3/+3
Change-Id: I4a0e8b7042ca54bf653ff2ce46a93f87000b0b2d
2016-09-21Move ZEN X-Fi/X-Fi3/X-Fi Style/Mozaic, NWZ-E360/E370/E380 and Fuze+ to stable.Amaury Pouly1-9/+13
Move ZEN and ZEN X-Fi2 to unstable. Change-Id: I432d99b4fa976d93e2db883869995802a41186b6
2016-09-21imx233: make microphone bias, bias pin and resistor configurableAmaury Pouly6-5/+43
This clearly fixes recording on targets where the bias pin was wrong. It may also improve recording on targets where the bias voltage was wrong. I was unable to find those parameters on the ZEN Mozaic, which fallback to default values. Change-Id: Ifb5f823c9cbd01f0d9a80fa5d49d93972c8b7cfe
2016-09-21regtools: fix library bug when checking if a reference is valid or notAmaury Pouly1-1/+1
Change-Id: I8adea40d2fa7c1a26f1975d987233249f61af8ef
2016-09-21regtools: rename error_t to err_t to avoid name clashAmaury Pouly5-39/+38
Change-Id: Ib8d34e4f58f3225b1dafc533ce7e1b7867ad053b
2016-09-21headergen_v1: remove warnings with newer GCCsAmaury Pouly1-15/+15
Change-Id: I90ed3a0c911014eee013cbea0e98a85f4310471d
2016-09-21zenxfi3: fix recording keymap and simulator keymapAmaury Pouly2-8/+9
Change-Id: I246834b5244d4e0f672633d2960db45278e12ec4
2016-09-21imx233: fix recording gainAmaury Pouly2-4/+4
For some reason, there was a mismatch between the setting (decibel) and the audiohw code (centicel). This resulted in a gain divided by 10. This may explain why some people experienced low volume with the mic on the fuze+. Change-Id: I138ac18dd93c36f43a7dfce735efc826405c598c
2016-09-07Opus: update resume offset correctly while playing.Adam Sampson2-0/+2
The codec wasn't calling ci->set_offset() while decoding; as a result, the saved offset in ci.id3->offset was only updated at the start of the file and when seeking. To reproduce the problem in the simulator or on a real device: - Start playing an Opus file. - Let it play until 15s, then turn the player off. - Turn back on and resume playback. This'll resume correctly from 15s (using time-based resume, I think, as the offset was 0?). - Let it play until 30s, then turn the player off again. - Turn back on and resume playback. This'll resume from 15s, based on the initial position from last time, when it should resume from 30s. I believe this will also fix FS#12799 ("Resuming opus file from bookmark is not working correctly"). Change-Id: Iba67368e0029c968ef802693767e0722719bc38b
2016-08-30nwztools: cleanup the codeAmaury Pouly6-274/+267
There was a lot of copy and paste, and the code was just crap. This commit tries to clarify the code and also document the encryption procedure. Hopefully I didn't break anything. Change-Id: I257793010e7cf94f2b090b30bb8608359d3886e3
2016-08-30upgtools: add NWZ-E45x Series key and signatureAmaury Pouly2-1/+2
Also fix a typo in the script makefile Change-Id: Ie747d8b99ca0f6a98bbcaf1c82e66c7788f00e6e
2016-08-30upgtools: small cleanupsAmaury Pouly1-32/+26
KAS was in its own structure for historical reasons, but it's stupid now. Change-Id: Ie8d69ac6d489337cd857ace1abe5b1e4b1177172
2016-08-29as3543: fix audio gap when switching from dac to line-in/recordingAmaury Pouly1-30/+51
Also clarity parts of the code. The old code suffered from two defects: - it was very unclear because it made changes to whole registers (using as3514_write) instead of fields (using as3514_set/clear/write_masked). Also the routing code was spread accross several functions which made it hard to follow. - it did not properly reroute audio on monitor changes. In particular, the following could happen: when switching from DAC to radio, the code would fail to clear SUM_off, resulting in a weird situation where the main mixer was off (SUM_off) but the headphone where using the main mixer as input. Incredibly this worked anyway (at least on AMSv2 and YP-R0) but resulted in strange volume gaps between DAC and radio mode. Change-Id: I7826835fdb59c21f6483b223883ca9289e85caca
2016-08-26iAP: fix USB storage mount after using an iAP accessoryCástor Muñoz1-0/+8
Change-Id: Ieb10da5850e9a2fa751142c2cf29447dccec0a17
2016-08-24Samsung YP-R0: Fix settings keymap (apply FS#13073 by lebellium)Sebastian Leonhardt1-2/+18
Change-Id: Id251900c510bddb15cdf7fe9a43cf7df46645923
2016-08-22Fix two typos in commentsAmaury Pouly1-2/+2
Change-Id: I39e42c5e4505e78711e30f8826b6760419434ca0
2016-08-22imx233: add alarm value to debug menuAmaury Pouly1-1/+2
Hopefully this can help debugging alarm problems. Change-Id: Id8c5603a6372744dfc62890443a37de2dd92a7c0
2016-08-22Fuze+: fix manual (alarm keymap)Sebastian Leonhardt1-3/+3
Change-Id: I5d685b7e102bbde8af0b33143feea07a8513f788
2016-08-22Fuze+: fix CONTEXT_SETTINGS keymap (unable to cancel)Sebastian Leonhardt1-0/+2
Change-Id: Ia1f13f54de77c65ba07d2aeb3f77122ee09e5275