Marcin Bukat
0b29691324
Move load_firmware() to separate file
...
The idea is to share loading code between bootloaders and rolo().
Change-Id: I1656ed91946d7a05cb7c9fa7a16793c3c862a5cd
Reviewed-on: http://gerrit.rockbox.org/190
Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2013-06-27 13:50:11 +02:00
Szymon Dziok
95fe4eb3e0
Another optimization for the OF in the mi4 format.
...
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-11-24 22:33:09 +01:00
Szymon Dziok
ba3b6ceb4b
pp bootloader: speed up loading of the OF in the mi4 format
...
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-06-23 18:06:52 +02:00
Rafaël Carré
568c441fd8
usb-target.h: remove
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31498 a1c6a512-1295-4272-9138-f99709370657
2011-12-31 18:44:55 +00:00
Thomas Jarosch
158e14a8c6
Fix file descriptor leak
...
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-11 17:44:56 +00:00
Bertrik Sikken
7e3a3f491d
Remove return value from show_logo() in bootloader/
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30485 a1c6a512-1295-4272-9138-f99709370657
2011-09-08 18:31:15 +00:00
Michael Sevakis
5bf25bbd4f
Fix typo on macro made during previous PPBL commits.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29061 a1c6a512-1295-4272-9138-f99709370657
2011-01-16 00:35:22 +00:00
Michael Sevakis
d0178ba01c
Display messages only when entering USB mode in Portal Player bootloader to keep timed-out charger-only connects going into verbose mode.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29060 a1c6a512-1295-4272-9138-f99709370657
2011-01-16 00:21:54 +00:00
Michael Sevakis
7b7cfc31c5
Fix r29054 red...yeah?
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29055 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 09:01:55 +00:00
Michael Sevakis
71651cacb6
Fix r29053 red and a leftover use of 'usb' variable as a bool rather than int in main-pp.c.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29054 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 08:52:59 +00:00
Michael Sevakis
3a1127785b
Bootloader USB mode for PP502x. Enable only on GoGear SA9200 for the time being. Add HAVE_BOOTLOADER_USB_MODE to config if BOOTLOADER is defined to enable it. Clean up some kernel stuff a little to support it. Mess up a bunch of other stuff (hopefully not too badly).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29053 a1c6a512-1295-4272-9138-f99709370657
2011-01-15 08:19:30 +00:00
Michael Sevakis
0afad89f53
SA9200 boot: Add OF.ebn to the list of OF filenames to check.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29014 a1c6a512-1295-4272-9138-f99709370657
2011-01-09 19:31:41 +00:00
Rafaël Carré
1ec821244a
Sansa AMS bootloader: enter USB mode only when needed
...
- If an error happens when reading partitions / rockbox.sansa
- If the select button was pressed
add an argument to error() to not power off, when we're going to enter
USB mode to try to fix the problem, but display the error message anyway
for debugging purpose
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27075 a1c6a512-1295-4272-9138-f99709370657
2010-06-23 05:08:36 +00:00
Rafaël Carré
5d236b2bfd
Generate C file / header for svn version string
...
It's now easier to force rebuild of files depending on the svn revision
version.c/version.h are generated once with new tools/genversion.sh
Changes in the VCS are still not auto detected, so you'll have to remove
builddir/version.* if you want to change the string in your binaries
APPSVERSION is now called RBVERSION and is defined in the generated
header instead of being defined by the Makefiles
appsversion is now called rbversion (the plugin api number didn't change
since old modules are still binary compatible)
Change some bootloaders to use knwon-at-buildtime RBVERSION instead of
"%s" + rbversion
You'll need to run make clean to regenerate dependencies after the
removal of apps/version.h
To build binaries with a different version string, hand-edit
tools/version.sh or tools/genversion.sh (which calls the former)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26320 a1c6a512-1295-4272-9138-f99709370657
2010-05-27 09:41:46 +00:00
Frank Gevaerts
2dbafc1086
Fix some forgotten storage_(read|write)_sectors() calls
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25461 a1c6a512-1295-4272-9138-f99709370657
2010-04-03 22:18:16 +00:00
Szymon Dziok
492fafe879
Packard Bell Vibe 500: remove the old bootloader code (actually a lack of code) and make the main-pp.c acting like a true bootloader for the DAP. It's the first step to integrate the DAP with the RBUtil.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25311 a1c6a512-1295-4272-9138-f99709370657
2010-03-23 21:28:25 +00:00
Mark Arigo
6908cc5235
Merry Christmas Gogear HDD6330 owners! This is the start of the HDD6330 port. At the moment, it's essentially a copy of the HDD1630 port with a minimal LCD driver. The touchpad doesn't work as expected, but you can still kind of navigate and listen to music/radio.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24112 a1c6a512-1295-4272-9138-f99709370657
2009-12-25 04:05:01 +00:00
Thomas Martitz
e2ccabf89d
Samsung YH925: Reset the LCD orientation to what the OF expects before branching to it in dualbooting
...
Author: Mark Arigo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22659 a1c6a512-1295-4272-9138-f99709370657
2009-09-08 13:57:13 +00:00
Robert Keevil
eea149bd13
FS#10436 - add the Sansa View to the build system. The bootloader builds but doesn't do anything useful yet.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21848 a1c6a512-1295-4272-9138-f99709370657
2009-07-13 21:09:39 +00:00
Mark Arigo
758bb3bc62
3 new ports: Samsung YH-820, YH-920, and YH-925. Mostly functional. Audio working on 820 & 925 (untested on the 920). No battery readings. No recording. No plugins. Keymap needs work.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21083 a1c6a512-1295-4272-9138-f99709370657
2009-05-25 21:10:45 +00:00
Nils Wallménius
6ce98bda11
FS#10018 general pp bootloader: start the OF if loading rockbox fails. Resolves a bug where the c200 bootloader would loop flashing the logo if loading rockbox failed and drop support for loading old .e200 and .h10 rockbox main binaries for the e200 resp h10, affects e200, c200, h10 (both kinds) and mrobe 100.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20342 a1c6a512-1295-4272-9138-f99709370657
2009-03-17 20:05:03 +00:00
Frank Gevaerts
cf2632229b
fix the obligatory yellow
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20107 a1c6a512-1295-4272-9138-f99709370657
2009-02-25 22:59:23 +00:00
Mark Arigo
3482a55b83
Dual boot for the Philips HDD1630.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19741 a1c6a512-1295-4272-9138-f99709370657
2009-01-10 03:21:07 +00:00
Michael Sevakis
bc963c34ae
Hopefully mop-up remaining red.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19317 a1c6a512-1295-4272-9138-f99709370657
2008-12-03 21:15:44 +00:00
Björn Stenberg
b69be10d98
Use BOOTDIR and BOOTFILE defines instead of hardcoded path and file. FS#9559
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19190 a1c6a512-1295-4272-9138-f99709370657
2008-11-23 22:07:48 +00:00
Frank Gevaerts
86f0c75cde
fix red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18976 a1c6a512-1295-4272-9138-f99709370657
2008-11-02 01:31:52 +00:00
Frank Gevaerts
2f8a0081c6
Apply FS#9500. This adds a storage_*() abstraction to replace ata_*(). To do that, it also introduces sd_*, nand_*, and mmc_*.
...
This should be a good first step to allow multi-driver targets, like the Elio (ATA/SD), or the D2 (NAND/SD).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18960 a1c6a512-1295-4272-9138-f99709370657
2008-11-01 16:14:28 +00:00
Frank Gevaerts
19d1cacb1a
cleanup storage defines
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18950 a1c6a512-1295-4272-9138-f99709370657
2008-10-31 21:25:04 +00:00
Barry Wardell
1ac260c0e6
Fix H10 bootloader locking up if the scroll pad was touched. May also fix any other lock ups from trying to read from the adc in the bootloader.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18208 a1c6a512-1295-4272-9138-f99709370657
2008-08-07 11:23:40 +00:00
Daniel Stenberg
2acc0ac542
Updated our source code header to explicitly mention that we are GPL v2 or
...
later. We still need to hunt down snippets used that are not. 1324 modified
files...
http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-06-28 18:10:04 +00:00
Mark Arigo
22e7bf32b8
My Devcon 2008 contribution: port for Philips GoGear HDD1630 (PP5022-based). Current status is that the bootloader works to load Rockbox, but dual boot does not work: it freezes after decrypting the OF. When Rockbox boots, it freezes somewhere between showing the logo and the main menu. And there's no driver for the touchpad. So lots of work left.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17809 a1c6a512-1295-4272-9138-f99709370657
2008-06-27 18:40:25 +00:00
Mark Arigo
badb6dae62
Add mi4 key for the Philips GoGear HDD1630 (PP5022-based)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17660 a1c6a512-1295-4272-9138-f99709370657
2008-05-30 04:14:23 +00:00
Mark Arigo
b4275d4941
Philips GoGear SA9200 port. Working bootloader and normal builds, including sound. No touchpad now, buttons limited to using vol+/vol-/power for up/down/select. Rockbox USB is enabled since the OF is MTP only...read the warnings on the PortalPlayerUsb wiki page.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17591 a1c6a512-1295-4272-9138-f99709370657
2008-05-21 03:55:17 +00:00
Barry Wardell
63f4f68a74
Don't need this any more since it's the default now.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17457 a1c6a512-1295-4272-9138-f99709370657
2008-05-11 15:30:15 +00:00
Barry Wardell
940091ae38
FS#7977: Bootloader logo for PP-based targets (H10, Sansa, M-Robe 100).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17374 a1c6a512-1295-4272-9138-f99709370657
2008-05-05 12:05:00 +00:00
Daniel Stenberg
7387a0470e
sync with key list with mi4code and add the single mi4 key it had but this
...
still didn't
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17077 a1c6a512-1295-4272-9138-f99709370657
2008-04-11 21:11:55 +00:00
Mark Arigo
f46a7533a4
mi4 key for the Philips GoGear SA9200 (PP5024). Let the fun begin...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17069 a1c6a512-1295-4272-9138-f99709370657
2008-04-11 03:57:16 +00:00
Dave Chapman
f0cde2dff9
Don't make the Sansa bootloaders verbose when USB is connected
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16836 a1c6a512-1295-4272-9138-f99709370657
2008-03-27 00:31:51 +00:00
Robert Kukla
6ef63a5373
m:robe 100: use power button for dual-booting the OF (short press to boot rockbox, long press for OF)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16522 a1c6a512-1295-4272-9138-f99709370657
2008-03-05 00:17:21 +00:00
Björn Stenberg
2f7cffa204
Major USB fixes by Frank Gevaerts. Still disabled in builds, #define USE_ROCKBOX_USB to test.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16279 a1c6a512-1295-4272-9138-f99709370657
2008-02-11 14:26:25 +00:00
Mark Arigo
e66ddd754f
Initial commit for the Olympus m:robe 100 port (PP5020). The LCD driver works. The ADC driver was copied from the H10 port (they can probably be combined later), but the battery readings aren't right and it shuts down. The touch pad buttons do not work. Install the bootloader and rockbox the H10 way. Still lots of work to do.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16030 a1c6a512-1295-4272-9138-f99709370657
2008-01-09 07:24:43 +00:00
Björn Stenberg
7af22e1a86
Red fix: USB power check implemented in driver instead
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15761 a1c6a512-1295-4272-9138-f99709370657
2007-11-22 22:17:45 +00:00
Jonathan Gordon
fc8e09d79d
shutdown if hold is on in the non-ipod-pp target bootloaders.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15679 a1c6a512-1295-4272-9138-f99709370657
2007-11-19 02:07:40 +00:00
Jens Arnold
ef12b3b5c6
Hardware controlled backlight brightness for iPod Video and Nano, retaining the software PWM fade in/ fade out. * Backlight handling cleanup, getting rid of one layer of 'lowlevelness'. * Use atomic GPIO bit manipulation for PP502x backlight handling.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15599 a1c6a512-1295-4272-9138-f99709370657
2007-11-12 18:49:53 +00:00
Barry Wardell
8b6bf8f734
Fix warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15226 a1c6a512-1295-4272-9138-f99709370657
2007-10-20 18:30:41 +00:00
Barry Wardell
d46cf97024
Support database rebuild disabling when USB is connected for all e200 OF versions. Some people may have to update the OF (to any version they want) using sansapatcher before it will work. This just ensures that the NVPARAMS are in a good state and we can be sure where to look for the rebuild flag.The c200 OF doesn't reboot before rebuilding the database, so our trick won't ever work there.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15225 a1c6a512-1295-4272-9138-f99709370657
2007-10-20 17:08:41 +00:00
Barry Wardell
003fc494c2
Make the firmware partition dump code compile again.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15223 a1c6a512-1295-4272-9138-f99709370657
2007-10-20 15:41:44 +00:00
Jonathan Gordon
eee3745d70
Add 3 more OF datbase refresh locations for the e200 bootloader (FS#7990)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15219 a1c6a512-1295-4272-9138-f99709370657
2007-10-20 10:01:05 +00:00
Barry Wardell
f1fead0c9b
Turn on the backlight in the e200 booloader. This is necessary for when we replace the sansa bootloader altogether.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15109 a1c6a512-1295-4272-9138-f99709370657
2007-10-14 18:20:23 +00:00
Daniel Stenberg
98a39fb057
key added used for C200 A1.00.03
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14742 a1c6a512-1295-4272-9138-f99709370657
2007-09-18 13:58:12 +00:00