summaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2015-01-03Don't build sims twiceThomas Jarosch1-3/+0
Some of those builds are already in the 'builds' list. Change-Id: I6985702d50ff00e166463384d78f823f6fad9873
2014-12-20mkzenboot: Fix double close of bootfd on errorThomas Jarosch1-1/+0
cppcheck reported: [rockbox/tools/mkzenboot.c:1176]: (error) Used file that is not opened. Change-Id: Ibbf7ab2910c7f43b547fef25c62e0b4d19ff9551
2014-09-18Introducing Targets iBasso DX50 & iBasso DX90Simon Rothen1-11/+69
The port to for this two targets has been entirely developped by Ilia Sergachev (alias Il or xzcc). His source can be found at https://bitbucket.org/isergachev/rockbox . The few necesary modifications for the DX90 port was done by headwhacker form head-fi.org. Unfortunately i could not try out the final state of the DX90 port. The port is hosted on android (without java) as standalone app. The official Firmware is required to run this port. Ilia did modify the source files for the "android" target in the rockbox source to make the DX port work. The work I did was to separate the code for DX50 (&DX90) from the android target. On this Target Ilia used source from tinyalsa from AOSP. I did not touch that part of the code because I do not understand it. What else I changed from Ilias sources besides the separation from the target "android": * removed a dirty hack to keep backlight off * changed value battery meter to voltage battery meter * made all plugins compile (named target as "standalone") and added keymaps * i added the graphics for the manual but did not do anything else for the manual yet * minor optimizations known bugs: * timers are slowed donw when playback is active (tinyalsa related?) * some minor bugs Things to do: * The main prolem will be how to install the app correctly. A guy called DOC2008 added a CWM (by androtab.info) to the official firmware and Ilia made a CWM installation script and a dualboot selector (rbutils/ibassoboot, build with ndk-build). We will have to find a way to install rockbox in a proper way without breaking any copyrights. Maybe ADB is an option but it is not enable with OF by default. Patching the OF is probably the way to go. * All the wiki and manual to build: needed: android ndk installed, android sdk installed with additional build-tools 19.1.0 installed ./tools/configure select iBasso DX50 or iBasso DX90 make -j apk the content of rockbox.zip/.rockbox needs to be copied to /system/rockbox/app_rockbox/rockbox/ (rockbox app not needed) the content of libs/armeabi to /system/rockbox/lib/ (rockbox app needed) The boot selector is needed as /system/bin/MangoPlayer and the iBasso app as /system/bin/MangoPlayer_original. There is also the "vold" file. The one from OF does not work with DX50 rockbox (DX90 works!?), the one from Ilia is necessary. Until we have found a proper way to install it, it can only be installed following the instructions of Ilia on his bitbucket page, using the CWM-OF and his installation script package. Change-Id: Ic4faaf84824c162aabcc08e492cee6e0068719d0 Reviewed-on: http://gerrit.rockbox.org/941 Tested: Chiwen Chang <rock1104.tw@yahoo.com.tw> Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
2014-08-30Rewrite filesystem code (WIP)Michael Sevakis5-27/+28
This patch redoes the filesystem code from the FAT driver up to the clipboard code in onplay.c. Not every aspect of this is finished therefore it is still "WIP". I don't wish to do too much at once (haha!). What is left to do is get dircache back in the sim and find an implementation for the dircache indicies in the tagcache and playlist code or do something else that has the same benefit. Leaving these out for now does not make anything unusable. All the basics are done. Phone app code should probably get vetted (and app path handling just plain rewritten as environment expansions); the SDL app and Android run well. Main things addressed: 1) Thread safety: There is none right now in the trunk code. Most of what currently works is luck when multiple threads are involved or multiple descriptors to the same file are open. 2) POSIX compliance: Many of the functions behave nothing like their counterparts on a host system. This leads to inconsistent code or very different behavior from native to hosted. One huge offender was rename(). Going point by point would fill a book. 3) Actual running RAM usage: Many targets will use less RAM and less stack space (some more RAM because I upped the number of cache buffers for large memory). There's very little memory lying fallow in rarely-used areas (see 'Key core changes' below). Also, all targets may open the same number of directory streams whereas before those with less than 8MB RAM were limited to 8, not 12 implying those targets will save slightly less. 4) Performance: The test_disk plugin shows markedly improved performance, particularly in the area of (uncached) directory scanning, due partly to more optimal directory reading and to a better sector cache algorithm. Uncached times tend to be better while there is a bit of a slowdown in dircache due to it being a bit heavier of an implementation. It's not noticeable by a human as far as I can say. Key core changes: 1) Files and directories share core code and data structures. 2) The filesystem code knows which descriptors refer to same file. This ensures that changes from one stream are appropriately reflected in every open descriptor for that file (fileobj_mgr.c). 3) File and directory cache buffers are borrowed from the main sector cache. This means that when they are not in use by a file, they are not wasted, but used for the cache. Most of the time, only a few of them are needed. It also means that adding more file and directory handles is less expensive. All one must do in ensure a large enough cache to borrow from. 4) Relative path components are supported and the namespace is unified. It does not support full relative paths to an implied current directory; what is does support is use of "." and "..". Adding the former would not be very difficult. The namespace is unified in the sense that volumes may be specified several times along with relative parts, e.g.: "/<0>/foo/../../<1>/bar" :<=> "/<1>/bar". 5) Stack usage is down due to sharing of data, static allocation and less duplication of strings on the stack. This requires more serialization than I would like but since the number of threads is limited to a low number, the tradoff in favor of the stack seems reasonable. 6) Separates and heirarchicalizes (sic) the SIM and APP filesystem code. SIM path and volume handling is just like the target. Some aspects of the APP file code get more straightforward (e.g. no path hashing is needed). Dircache: Deserves its own section. Dircache is new but pays homage to the old. The old one was not compatible and so it, since it got redone, does all the stuff it always should have done such as: 1) It may be update and used at any time during the build process. No longer has one to wait for it to finish building to do basic file management (create, remove, rename, etc.). 2) It does not need to be either fully scanned or completely disabled; it can be incomplete (i.e. overfilled, missing paths), still be of benefit and be correct. 3) Handles mounting and dismounting of individual volumes which means a full rebuild is not needed just because you pop a new SD card in the slot. Now, because it reuses its freed entry data, may rebuild only that volume. 4) Much more fundamental to the file code. When it is built, it is the keeper of the master file list whether enabled or not ("disabled" is just a state of the cache). Its must always to ready to be started and bind all streams opened prior to being enabled. 5) Maintains any short filenames in OEM format which means that it does not need to be rebuilt when changing the default codepage. Miscellaneous Compatibility: 1) Update any other code that would otherwise not work such as the hotswap mounting code in various card drivers. 2) File management: Clipboard needed updating because of the behavioral changes. Still needs a little more work on some finer points. 3) Remove now-obsolete functionality such as the mutex's "no preempt" flag (which was only for the prior FAT driver). 4) struct dirinfo uses time_t rather than raw FAT directory entry time fields. I plan to follow up on genericizing everything there (i.e. no FAT attributes). 5) unicode.c needed some redoing so that the file code does not try try to load codepages during a scan, which is actually a problem with the current code. The default codepage, if any is required, is now kept in RAM separarately (bufalloced) from codepages specified to iso_decode() (which must not be bufalloced because the conversion may be done by playback threads). Brings with it some additional reusable core code: 1) Revised file functions: Reusable code that does things such as safe path concatenation and parsing without buffer limitations or data duplication. Variants that copy or alter the input path may be based off these. To do: 1) Put dircache functionality back in the sim. Treating it internally as a different kind of file system seems the best approach at this time. 2) Restore use of dircache indexes in the playlist and database or something effectively the same. Since the cache doesn't have to be complete in order to be used, not getting a hit on the cache doesn't unambiguously say if the path exists or not. Change-Id: Ia30f3082a136253e3a0eae0784e3091d138915c8 Reviewed-on: http://gerrit.rockbox.org/566 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested: Michael Sevakis <jethead71@rockbox.org>
2014-08-28Prevent spurious recompiles on account of changed version.Michael Sevakis1-8/+7
After a local commit, any file that included version.h would have to be recompiled on account of the changed version string. This changes version.h in the build directory to rbversion.h and includes the preprocessor macro from rbversion.h in firmware/common/version.c so that only that one file needs to be recompiled after a local commit rather than a whole slew of them. Change-Id: I900d97e3a24a0610698283416d97b4fa3a3a2cf6 Reviewed-on: http://gerrit.rockbox.org/937 Reviewed-by: Michael Sevakis <jethead71@rockbox.org> Tested: Michael Sevakis <jethead71@rockbox.org>
2014-08-05Fix up some more redMichael Sevakis1-1/+1
find_first_set_bit() becomes a small inline on ARMv5+ and checkwps now gets made with -std=gnu99 (it eats all the GCCOPTS) like the rest of things. Change-Id: Ie6039b17fec057a3dcb0f453d8fd5efac984df89
2014-07-30Make crosstool-ng build with gnu make 4.0Frank Gevaerts1-3/+3
Change-Id: Id3a5a310e6fa53e690c92f420994875cb1bfff43
2014-07-17zen/zenxfi/zenxfistyle/zenmozaic: implement plugin keymaps and enable pluginsAmaury Pouly1-5/+5
Plugins on the ZEN/ZEN X-Fi require to increase the plugin buffer size. Change-Id: If4651c87b402060faa24530985c6e871379c8ea1
2014-06-30Introduce plugin keymaps for the Sony NWZ SeriesNils Stec1-2/+2
Change-Id: I46b8766bd44118bce4931b7ee71815ae5f51cb2e Reviewed-on: http://gerrit.rockbox.org/879 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-06-24zen/zenxfi: switch lcd driver to 24-bit modeAmaury Pouly1-1/+1
Change-Id: I2c42f0e422130bcdaf1aaf92c7b56776752f4f64
2014-06-23fix sdlapp and ypr0 buildsThomas Martitz1-1/+1
Change-Id: I3953350c04607691b427fc2a3b00e8ae08bcea45
2014-06-21lcd-24bit: fix up previous commit a1842c0Thomas Martitz1-2/+2
* e200v2 shouldn't use 24bit (was just for testing) * samsung ypr0/ypr1 should enable it but the correct number must be passed to bmp2rb Change-Id: Ia91b0ff80a54265d4c3111d9dcb8e7b9dd12b5d4
2014-06-21lcd-24bit: Introduce a 24-bit mid-level LCD driverThomas Martitz1-11/+14
With LCD driver all calculation will be performed on RGB888 and the hardware/OS can display from our 24bit framebuffer. It is not yet as performance optimized as the existing drivers but should be good enough.The vast number of small changes is due to the fact that fb_data can be a struct type now, while most of the code expected a scalar type. lcd-as-memframe ASM code does not work with 24bit currently so the with 24bit it enforces the generic C code. All plugins are ported over. Except for rockpaint. It uses so much memory that it wouldnt fit into the 512k plugin buffer anymore (patches welcome). Change-Id: Ibb1964545028ce0d8ff9833ccc3ab66be3ee0754
2014-04-06Complete Plugin Keymaps for Creative Zen X-Fi3David Jilke1-1/+1
This patch completes the plugin keymaps for the Zen X-Fi3 and enables those plugins for compilation. One key was changed in "button-target.h" for compatibility with Rockboy. This also caused the changes to "keymap-zenxfi3.c", to keep the stock functionality (no further changes in here). Change-Id: Ic222faf89e9a9a2332a49d6e532cedb6eb16d3d7 Reviewed-on: http://gerrit.rockbox.org/762 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2014-03-27enable compiling of Sansa ViewSzymon Dziok1-2/+0
Change-Id: I3dda438cabf2a8f5f3ff5fed1ae16d0793341685
2014-03-20OS X: detect clang and build for x86 target only.Dominik Riebeling2-6/+18
Newer versions of Xcode / OS X don't support PPC code anymore and replace gcc with clang. When clang is detected assume we want to build for the default architecture only and change the minimum OS X version to 10.5. Change-Id: I5843fa9bb3d957ec6f0a537e857608ad99c31517
2014-03-09android: Get the port up and running againThomas Martitz1-4/+2
The build system needed fixes because the tools paths changed and one tool that we used (apkbuilder) was removed entirely. Recent NDKs don't ship gcc 4.4.3 anymore, therefore switch to 4.6. The code itself needed a fix for a jni reference bug that was uncovered by KitKat. The port now builds with latest sdk (r22) and ndk (r9d). Change-Id: Id74fa54ba93bbb0ee30373fbe79e92c5ff03201d
2014-03-03Fix various reds. Some includes needed fixup.Thomas Martitz2-0/+2
Change-Id: I4327740bae17054131feb917abdd58846c451988
2014-02-23simulator: Fully simulate external storage.Thomas Martitz1-3/+7
The external storage will be created during make install, as simext folder in the build directory. Upon pressing the e key the sim will mount (virtually ) this into the root directory. It can be accessed in the same way as an sd/mmc card on real targets. This requires quite some path trickery in io.c. Change-Id: I2fa9070a3146101ec5655b5b4115ca349d1d4bf4
2014-02-23RaaA: Move directory related stuff from filesystem-unix.c into rbpaths.c.Thomas Martitz1-27/+0
Part of this change is to align sdlapp builds to other application targets in that the sim_* wrappers are not used anymore (except for sim_read/write). Path mangling is now done in rbpaths.c as well. Change-Id: I9726da73b50a83d9e1a1840288de16ec01ea029d
2014-02-05Disable rombox on the Player.Frank Gevaerts1-1/+1
No more Archos rombox left... Change-Id: I7de15b1ce1fabdb19ba7b0b69e0b7799664d8413
2014-02-05Samsung YP-R1 target portLorenzo Miori3-2/+30
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
2014-01-26Option to use the lighter hinting algorithm (FT_LOAD_TARGET_LIGHT).Nick Peskett1-5/+8
I've found this algorithm produces clearer results when rendering some fonts at small point sizes. Change-Id: If87d82731ad324405195b25baad78fe54e92c142 Reviewed-on: http://gerrit.rockbox.org/412 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Purling Nayuki <cyq.yzfl@gmail.com> Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2014-01-26Fix warnings. convbdf needed to be updated for the changed font struct ↵Thomas Martitz1-0/+3
because it generates sysfont.c. Change-Id: Id5aea6b6c73438242a80ae6849ee5e29ab8659dc
2014-01-21Initial commit for the ZEN X-Fi StyleAmaury Pouly2-30/+53
Change-Id: Ib25a357a7bafd2ef25f273cadff70fafbd8d4661
2014-01-17Workarund GCC bug #52991 regarding packet attribute.Thomas Martitz1-1/+4
According to http://http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52991, since mingw-gcc 4.7.1 -mms-bitfields is on by default, and this option breaks the packet attribute since around 4.2.0. We haven't set this option so I'm assuming we don't need it. Therefore a workaround in configure can make things work again, because we rely on the packet attribute in quite a few places. Change-Id: I8367c16594cecfdde97c548e04607deaa92e21de
2014-01-15coldfire: Use single app.lds script for all coldfires.Marcin Bukat1-0/+4
The only true difference in this platform is the amount of iram between MCF5249 and MCF5250. Instead of duplicating the file simply use one with proper ifdefs. Change-Id: Ifd56ebd2666813633502e3b5d83669424659c039 Reviewed-on: http://gerrit.rockbox.org/713 Reviewed-by: Thomas Martitz <kugel@rockbox.org> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2014-01-13Make the m:robe 100 stable again.Szymon Dziok1-1/+1
Change-Id: If170b0b5f7035b02d59418c201d006805546e724
2014-01-02creativezenv: change target_id & MODEL_NUMBER.Andrew Ryabinin1-1/+1
85 is already used by HIFI E.T. MA8C. Change-Id: I7f30d6b1acbebd6152d11fa46ec87d95e6a809e7 Reviewed-on: http://gerrit.rockbox.org/703 Reviewed-by: Purling Nayuki <cyq.yzfl@gmail.com> Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-12-16Introduce IHIFI760/960 targets.Andrew Ryabinin1-0/+51
Change-Id: Ie36e48742c0ed9aa3fd6f49aa034a11d2492327c
2013-12-02Initial commit for the YP-Z5 portLorenzo Miori2-1/+24
The port uses the imx233 soc, it's a STMP3650 based Samsung player Change-Id: I50b6d7e77fd292fab5ed26de87853cd5aaf9eaa4 Reviewed-on: http://gerrit.rockbox.org/490 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-11-18Initial commit for the Creative ZEN VAmaury Pouly2-1/+23
Change-Id: I3408cfdf742ea5995d5c87bf76653f436e1ec2b0
2013-11-18creativezenmozaic: factor out code with the zen/zenxfiAmaury Pouly1-1/+1
Most of the code is similar, only the lcd driver is significantly different. Change-Id: I9eab1faf08d2356f2d820d6930ef3b0653349aa1
2013-11-13sims.pl: add a few unusable targetsAmaury Pouly1-0/+3
Change-Id: I97ab208446c3df5327aa287edb5940aa59908260
2013-11-13configure: change E370 to E370/E380Amaury Pouly1-1/+1
Change-Id: I55e00f53bd8c7704b5c3fe5db0b716f980504887
2013-11-12Add Creative Zen, X-Fi and Mozaic to builds.pmAmaury Pouly1-0/+12
Change-Id: I67664ec7315038ff602dd492b06ce4867421b60b
2013-11-10Updated IAP commands.Ralf Ertzinger8-0/+2976
Originally written and uploaded by Lalufu (Ralf Ertzinger) in Feb 2012. They have been condensed into a single patch and some further additions by Andy Potter. Currently includes Authentication V2 support from iPod to Accessory, RF/BlueTooth transmitter support, selecting a playlist and selecting a track from the current playlist. Does not support uploading Album Art or podcasts. Has been tested on the following iPods, 4th Gen Grayscale, 4th Gen Color/Photo, Mini 2nd Gen, Nano 1st Gen and Video 5.5Gen. Change-Id: Ie8fc098361844132f0228ecbe3c48da948726f5e Co-Authored by: Andy Potter <liveboxandy@gmail.com> Reviewed-on: http://gerrit.rockbox.org/533 Reviewed-by: Frank Gevaerts <frank@gevaerts.be>
2013-11-05builds.pm: Add HiFi E.T. MA9C/MA8/MA8C.Andrew Ryabinin1-0/+12
2013-11-05Introduce HiFi E.T. MA8/MA8C ports.Andrew Ryabinin1-2/+48
HiFi E.T. MA8 is almost the same as MA9 except another DAC(pcm1792 in ma8, df1704 in ma9). MA8 has ILI9342 lcd, MA8C has ILI9342C lcd. Change-Id: If2ac04f5a3382590b2a392c46286559f54b2ed6a
2013-11-05Introduce HiFi E.T. MA9C port.Andrew Ryabinin1-1/+24
The only difference between this target and HiFi E.T. MA9 is display driver (ILI9342 in MA9 and ILI9342c in MA9C) Change-Id: Icc3d2490f850902a653175360f12283f3708bbb7
2013-10-22tools/configure: add the Creative targets to selectorAmaury Pouly1-23/+25
Change-Id: I74c7c3cfea95350b88155c2d6d1111c84172b39d
2013-10-22tools/scramble: document zen/xzfi/zmoz targetsAmaury Pouly1-1/+2
Change-Id: I9b48d22968b7632ef88d9dd598ff65fd448c3dcc
2013-10-22Initial commit for the Creative ZEN and ZEN X-FiAmaury Pouly2-0/+45
Change-Id: Ibd7b1b0b957ef11c200cb63eff7da53f11774748
2013-10-22Initial commit for the Creative ZEN MozaicAmaury Pouly2-0/+22
Change-Id: Ib65aad9f5de37e514047955cad7ca40dc0af4f74
2013-10-22tools/scramble: add support for a couple more Creative devicesAmaury Pouly3-5/+15
This is mostly for consistency, this tool will be unused by the newer targets. Also update the usage() display to mention -no-ciff Change-Id: I4500f5fdce771ad3c53701a0bbaace916e88759d
2013-10-22tools/mkzenboot: compile in C99 modeAmaury Pouly1-1/+1
Change-Id: I580ffb3af71846213c0ffc18ead4e51a72ba1475
2013-10-20Switch back to kernel.org.Frank Gevaerts1-1/+1
kernel.org is back, and nic.funet.fi is being difficult, so it's time to switch back. Change-Id: If981dedd0cb7bb64de7563de6657f63ebb931a6f
2013-10-19Include 60s timeout for wget commands in rockboxdev.shMichael Rodger1-1/+1
Added a 60s timeout to the script to avoid having to wait for ages when a download stalls. Change-Id: I97f0aafe4eac0fb3cfc83805c99d19f1ef02b9f9 Reviewed-on: http://gerrit.rockbox.org/636 Reviewed-by: Kevin Zheng <kevinz5000@gmail.com> Tested-by: Michael Rodger <rockbox@atinyhedgehog.za.net> Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
2013-10-18Do not compile with "-ldl" on FreeBSD.Kevin Zheng1-1/+1
The dynmaic library support provided in dlfcn.h does not require additional linker flags on FreeBSD. It is provided with the standard C library and will fail to link if "-ldl" is specified. Change-Id: I9f21d8369d45a9be94129a1b37b4607adf673c57 Reviewed-on: http://gerrit.rockbox.org/637 Tested-by: Kevin Zheng <kevinz5000@gmail.com> Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
2013-10-02Add a few targerts to builds.pmAmaury Pouly1-0/+16
Change-Id: I6c2e139cf55c7bd07e6327abbc9dd93e5bdb6e21 Reviewed-on: http://gerrit.rockbox.org/631 Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>