summaryrefslogtreecommitdiff
path: root/bootloader
AgeCommit message (Collapse)Author
2012-11-24Another optimization for the OF in the mi4 format.Szymon Dziok
What it does: - removes unnecessary file operations for the OF (one lseek() and one read() per one key), - simplifies the code and reduces the code size. Speedup is not noticeable but theoretically some is. Change-Id: I43a6dd21d3af48ea8d3b27d676c84b2084c0b88c Reviewed-on: http://gerrit.rockbox.org/287 Tested-by: Szymon Dziok <b0hoon@o2.pl> Reviewed-by: Thomas Martitz <kugel@rockbox.org> Reviewed-by: Szymon Dziok <b0hoon@o2.pl>
2012-08-30imx233: display battery voltage in bootloader (along with percent)Amaury Pouly
Change-Id: I7b14496ba891a9ff2f6373571a11835d37abee4e
2012-07-10rk27xx: support entering rkusb mode on rk2706AMarcin Bukat
We know about two different bootroms. First can be found in rk2706A, the second in rk2706B and rk2705. This two versions are very similar but memory addresses are different. It seems it is possible to distinguish bootrom version by reading SCU_ID register. Change-Id: I01681b5e3a82930ae74a5cce6ab0244d7cd333d2
2012-06-23pp bootloader: speed up loading of the OF in the mi4 formatSzymon Dziok
This change replaces an odd way to increment tea key in a function responsible for finding the proper key (it doesn't have to be done in a for loop, it's just adding a 32bit number to a 128bit number). It reduces the time needed to find the key practically to zero and it gives in the best case 2 seconds of overall speedup in loading the OF. Change-Id: I0632526c3dfeb4d0603e77239f298a89076b630b Reviewed-on: http://gerrit.rockbox.org/230 Tested-by: Szymon Dziok <b0hoon@o2.pl> Reviewed-by: Thomas Martitz <kugel@rockbox.org> Reviewed-by: Szymon Dziok <b0hoon@o2.pl>
2012-05-20Make Meizu M3 compile againBertrik Sikken
Change-Id: I44436068cf6f2c3942fb63f988bf627eaa9abb97
2012-05-19imx233: move the freescale partition handling to its own fileAmaury Pouly
The freescale firmware partitions has a lots of quirks that need to be dealt with, so do it the proper way. Change-Id: I8a5bd3fb462a4df143bc6c931057f3ffedd4b3d3
2012-05-07remove debug-target.hRafaël Carré
2012-04-30rk27xx: Print rockbox version in bootloader.Andrew Ryabinin
Change-Id: I7f19f45e85aa09b0b19573053f7f27794196e6fb
2012-04-27rk27xx: Add failsafe mode to the bootloaderMarcin Bukat
Change-Id: Iba8fdc50b3c71831a6f55d15779fee8d1f12cb4f
2012-04-04Refactor and unify objcopy calls in the build system. Also now properly ↵Thomas Martitz
handles DEBUG builds on hosted targets to keep debug symbols if necessary. Change-Id: I884031b79c6d49479e4d95752f35ced68872dd5d
2012-03-26Fix bootloaders.Thomas Martitz
Change-Id: I7e1666d604c554509375a4ae858ff3cd7be96b3a
2012-03-19center logo horizontaly in bootloader version of show_logo()Marcin Bukat
Change-Id: I537466825de7f3bc8d55d9519cd27f562fbb344f
2012-03-15imx233: enable charging in bootloader USB mode by including powermgmtAmaury Pouly
Change-Id: I8b91b3ab60cb9ffaa127333e9bcef8c33be742fa
2012-03-04rename rkw.h header fileMarcin Bukat
Change-Id: I2cb6ea7da9c20ed0ef87f4b8ea90d2e4a4a3bca2
2012-03-04rk27xx: Implement dualboot capable bootloaderMarcin Bukat
Change-Id: I399e10635f611bdf6f7c1bd5843fa132dc88bfb4
2012-02-28imx233: print power up source in the bootloaderAmaury Pouly
Change-Id: I9ff4738b7efdb25ab57b0061f60c7fde58b9a0b5
2012-02-22unwarminder: fix bootloader buildsMarcin Bukat
Change-Id: I045a4c9639ff17c96b514996574d41f586b5bd7c
2012-01-03Rework powermgmt to enable code re-use on appliation and sims.Thomas Martitz
* Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application) to break powermgmt.c's assumption about the ability to read battery voltage. There's now additionally percentage (android) and remaining time measure (maemo). No measure at all also works (sdl app). If voltage can't be measured, then battery_level() is king and it'll be used for power_history and runtime estimation. * Implement target's API in the simulator, i.e. _battery_voltage(), so it doesn't need to implement it's own powermgmt.c and other stubs. Now the sim behaves much more like a native target, although it still changes the simulated battery voltage quickly, * Other changes include include renaming battery_adc_voltage() to _battery_voltage(), for consistency with the new target functions and making some of the apps code aware that voltage and runtime estimation is not always available. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
2012-01-03The connect is not a PP and doesn't have ATA storageRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31531 a1c6a512-1295-4272-9138-f99709370657
2012-01-01Gigabeat S: Revert removal of usb_plugged in r31489Michael Sevakis
Synchronous cable read is still required because the timing of the receipt of the cable event cannot be known for sure-- basically it introduced a thread race between main and pmic. If a keypress is desired instead to enter BL USB mode a la AS3525, then it's possible to remove that. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31510 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb-target.h: removeRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31498 a1c6a512-1295-4272-9138-f99709370657
2011-12-31usb_plugged() is PP onlyRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31489 a1c6a512-1295-4272-9138-f99709370657
2011-12-26imx233: print rockbox version in bootloaderAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31446 a1c6a512-1295-4272-9138-f99709370657
2011-12-17Swap red and yellow for green on r31339's cranky builds.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31340 a1c6a512-1295-4272-9138-f99709370657
2011-12-17Commit to certain names for cache coherency APIs and discard the aliases.Michael Sevakis
Wouldn't surprise me a bit to get some non-green. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31339 a1c6a512-1295-4272-9138-f99709370657
2011-12-14Fix the real issue with AMS bootloader USB mode. A call to usb_enable was ↵Michael Sevakis
missing in usb.c when using the USB stack and USB_DETECT_BY_CORE was not enabled. Try to do it in a clean-ish way. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31245 a1c6a512-1295-4272-9138-f99709370657
2011-12-14Sansa AMS: fix usb in bootloaderRafaël Carré
No need to define HAVE_BOOTLOADER_USB_MODE That define might need some cleaning up Fix FS#12384 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31241 a1c6a512-1295-4272-9138-f99709370657
2011-11-16Sandisk Sansa Connect port (FS #12363)Tomasz Moń
Included are drivers for buttons, backlight, lcd, audio and storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31000 a1c6a512-1295-4272-9138-f99709370657
2011-11-13Add the ability to create a prefilled struct bitmap along with generated images.Thomas Martitz
This allows to directly draw generated and builtin images using lcd_bmp(bm_xxx); Also fixes builtin list icons on non-mono targets, as they didn't have the format field set. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30971 a1c6a512-1295-4272-9138-f99709370657
2011-11-11Fix file descriptor leakThomas Jarosch
Probably not much of an error since it's in the bootloader :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30965 a1c6a512-1295-4272-9138-f99709370657
2011-11-03Added HiFiMAN HM-801 target. FS#12355. This also renames tda1543.{ch} used ↵Andrew Ryabinin
by HM-60x to dummy_codec.{ch} as it works for PCM1704 used by HM-801. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30891 a1c6a512-1295-4272-9138-f99709370657
2011-10-17Add HiFiMAN HM-60x target(s). FS#12319 by Andrew Ryabinin with some (small) ↵Marcin Bukat
modification by me. This also splits rk27xx lcd driver into lcdif-rk27xx and lcd controller specific part. Some modifications to the pcm driver have been made to allow using codecs in slave mode (as TDA1543 used in hifiman is slave only i2s codec). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30765 a1c6a512-1295-4272-9138-f99709370657
2011-09-23imx233/fuze+: rework crt0 and linker script to be able to load at any ↵Amaury Pouly
address and self-copy at the right one git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30587 a1c6a512-1295-4272-9138-f99709370657
2011-09-13imx233/fuze+: rework linker script to load the bootloader at ram start + 1Mb ↵Amaury Pouly
to leave a load for the firmware git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30521 a1c6a512-1295-4272-9138-f99709370657
2011-09-08Remove return value from show_logo() in bootloader/Bertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30485 a1c6a512-1295-4272-9138-f99709370657
2011-09-05imx233/fuze+: fix apps linker script, add comment in bootloaderAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30436 a1c6a512-1295-4272-9138-f99709370657
2011-09-05imx233/fuze+: don't reboot after usb more, enter usb more after storage ↵Amaury Pouly
init, remove useless printf git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30434 a1c6a512-1295-4272-9138-f99709370657
2011-09-05imx233:fuze+: major memory and usb reworkAmaury Pouly
- now identity map dram uncached and have a cached and buffered virtual alias - rework dma to handle virtual to physical pointers conversion - fix lcd frame pointer - implement usb detection properly - implement bootloader usb properly - allow the bootloader to disable MMC windowing (useful for recovery) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30432 a1c6a512-1295-4272-9138-f99709370657
2011-09-02Rework c200wipe to use proper partitioning and formatting code, which makes ↵Frank Gevaerts
the code size-independent. Also support the e200 with this code. Apparently it's also possible to get the e200 in a state where .fmt files don't help. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30413 a1c6a512-1295-4272-9138-f99709370657
2011-08-27Initial framework for the Sandisk Sansa Clip ZipBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30365 a1c6a512-1295-4272-9138-f99709370657
2011-07-22imx233/fuze+: add SD detection supportAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30196 a1c6a512-1295-4272-9138-f99709370657
2011-07-09imx233/fuze+: make SOURCES more correct, implement i2c for fmradioAmaury Pouly
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30135 a1c6a512-1295-4272-9138-f99709370657
2011-07-02sansa AMS bootloader: make strings staticRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30118 a1c6a512-1295-4272-9138-f99709370657
2011-07-02bootloaders: cleanupRafaël Carré
- make printf buffer static and local to printf() - use '\0' instead of 0 for setting char - remove unused dummy functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30117 a1c6a512-1295-4272-9138-f99709370657
2011-07-02imx233/fuze+: make config.h more correct, remove logo from bootloader, ↵Amaury Pouly
update linker file and crt0 to produce a single blob into dram git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30111 a1c6a512-1295-4272-9138-f99709370657
2011-06-30imx233/fuze+: ssp, dma, mmc now work properly, partially implement cpu ↵Amaury Pouly
frequency changing, implement panic waiting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30104 a1c6a512-1295-4272-9138-f99709370657
2011-06-19Optional dual-boot support in iAudio X5 and M5 bootloader, based on FS#5289.Jens Arnold
In order to enable it, #define HAVE_DUALBOOT when building the bootloader. Do not use the automatically created x5_fw.bin or m5_fw.bin, but use mkboot to create a new firmware file from an OF x5_fw.bin resp. m5_fw.bin and bootloader.bin. The dual-boot bootloader boots the OF when pressing Play (main or remote) for more than 3 seconds. Hold it a bit longer because the OF also checks buttons. Short press boots rockbox. As a bonus, the Play button read (for hold check) is done a bit earlier for single-boot mode as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30018 a1c6a512-1295-4272-9138-f99709370657
2011-06-17fuze+: add more clocking code, add dma code, add ssp code, add stub usb ↵Amaury Pouly
code, update storage to SD + MMC, beginning of the driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30010 a1c6a512-1295-4272-9138-f99709370657
2011-06-05Move dbg_hw_info() into target tree. FS#11735 by meMarcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29964 a1c6a512-1295-4272-9138-f99709370657
2011-05-30Rockchip rk27xx port initial commit. This is still work in progress.Marcin Bukat
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29935 a1c6a512-1295-4272-9138-f99709370657