summaryrefslogtreecommitdiff
path: root/bootloader/main-pp.c (follow)
Commit message (Collapse)AuthorAge
...
* Hardware controlled backlight brightness for iPod Video and Nano, retaining ↵Jens Arnold2007-11-12
| | | | | | 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
* Fix warningBarry Wardell2007-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15226 a1c6a512-1295-4272-9138-f99709370657
* Support database rebuild disabling when USB is connected for all e200 OF ↵Barry Wardell2007-10-20
| | | | | | 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
* Make the firmware partition dump code compile again.Barry Wardell2007-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15223 a1c6a512-1295-4272-9138-f99709370657
* Add 3 more OF datbase refresh locations for the e200 bootloader (FS#7990)Jonathan Gordon2007-10-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15219 a1c6a512-1295-4272-9138-f99709370657
* Turn on the backlight in the e200 booloader. This is necessary for when we ↵Barry Wardell2007-10-14
| | | | | | replace the sansa bootloader altogether. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15109 a1c6a512-1295-4272-9138-f99709370657
* key added used for C200 A1.00.03Daniel Stenberg2007-09-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14742 a1c6a512-1295-4272-9138-f99709370657
* Sansa c200 port. Rockbox works with sound. Several features are disabled ↵Mark Arigo2007-09-06
| | | | | | including some lcd options, FM radio, recording, and all plugins. Loading the OF from the Rockbox bootloader does not work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14625 a1c6a512-1295-4272-9138-f99709370657
* dont bother waiting for a usb connection if we arnt getting usb power ↵Jonathan Gordon2007-09-04
| | | | | | (speeds up the e200 bootloader by about 1.25s) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14601 a1c6a512-1295-4272-9138-f99709370657
* FS #7691 - improved USB detection on PP devices. This patch modifies the ↵Dave Chapman2007-09-04
| | | | | | target-tree function usb_detect() on all targets from bool to int, returning USB_INSERTED or USB_EXTRACTED instead of true or false. This was done to enable the PP usb_detect() to check for USB_POWER (either a connection to a USB wall charger, or the user holding "charge mode" button) and return that as a third value. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14600 a1c6a512-1295-4272-9138-f99709370657
* fix warningDaniel Stenberg2007-09-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14598 a1c6a512-1295-4272-9138-f99709370657
* added two keys, and made NUM_KEYS work without needing a fixed numberDaniel Stenberg2007-09-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14597 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7134 - Sansa: external sd card support by Antonius Hellmann with ↵Michael Sevakis2007-06-30
| | | | | | some tweaks. All testers have given the green light. (Now for the RED ?? ;). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13741 a1c6a512-1295-4272-9138-f99709370657
* Bring back rolo for mi4-based targets (H10 and Sansa).Barry Wardell2007-06-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13550 a1c6a512-1295-4272-9138-f99709370657
* Add the database rebuild byte for the ↵Jonathan Gordon2007-05-20
| | | | | | | | | | PP5022AF-05.51-S301-00.12-S301.00.12A-D OF version. Dont output the sector count so often when doing the partition dump. CAUTION: don't upgrade to this bootloader as the buttons still are not working in the bootloader (USB will be the only access to the OF if you do) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13438 a1c6a512-1295-4272-9138-f99709370657
* add some code to dump the sansa hidden partition (commented out), usefull ↵Jonathan Gordon2007-05-17
| | | | | | | | | for when we need to figure out which byte to modify so the OF doesnt rebuild its DB after usb CAUTION: Current svn bootloader cannot read buttons, so don't upgrade git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13402 a1c6a512-1295-4272-9138-f99709370657
* minor code cleanup and policingJonathan Gordon2007-03-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12889 a1c6a512-1295-4272-9138-f99709370657
* Enable usb detection in the sansa bootloader (loads OF if detected)Jonathan Gordon2007-03-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12888 a1c6a512-1295-4272-9138-f99709370657
* Fix build errors.Barry Wardell2007-03-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12867 a1c6a512-1295-4272-9138-f99709370657
* Oops, the mi4 magic was being looked for in the wrong place when decrypting. ↵Barry Wardell2007-03-20
| | | | | | Also decrease verbosity of PP bootloader a bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12865 a1c6a512-1295-4272-9138-f99709370657
* We should check the CRC32 whether it is encrypted or not.Barry Wardell2007-03-20
| | | | | | | | Do the encryption in-place so that it is faster. Add comment explaining why we need our own CRC32 implemenatation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12864 a1c6a512-1295-4272-9138-f99709370657
* Add support for encrypted mi4 bootloaders.Barry Wardell2007-03-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12863 a1c6a512-1295-4272-9138-f99709370657
* Hopefully fix CRC32 errors when loading the Sansa OF from the firmware ↵Barry Wardell2007-03-20
| | | | | | partition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12852 a1c6a512-1295-4272-9138-f99709370657
* PP bootloader:Barry Wardell2007-03-20
| | | | | | | | 1) Proper error handling when we can't find the firmware. 2) Show verbose debug messages when any button is pressed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12847 a1c6a512-1295-4272-9138-f99709370657
* The model and type strings are only 4 characters long. Also remove the 20 at ↵Barry Wardell2007-03-19
| | | | | | the start of the version string - it should never have been there. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12839 a1c6a512-1295-4272-9138-f99709370657
* If loading rockbox.mi4 fails, then drop back to trying ↵Barry Wardell2007-03-17
| | | | | | rockbox.h10/rockbox.e200 instead. This will allow the new bootloader to be used with older rockbox builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12824 a1c6a512-1295-4272-9138-f99709370657
* Partition type 0x84 is "OS/2 hidden C: drive"Barry Wardell2007-03-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12805 a1c6a512-1295-4272-9138-f99709370657
* The hidden partition stuff is only used Sansa.Barry Wardell2007-03-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12803 a1c6a512-1295-4272-9138-f99709370657
* In preparation for use with sansapatcher, change portalplayer bootloaders to ↵Barry Wardell2007-03-16
| | | | | | | | | | | | read firmwares in mi4 format. When loading the OF: 1) first try to load from a hidden disk partition 2) try loading /System/OF.mi4 3) finally fall back to loading /System/OF.bin which is what the old bootloader used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12802 a1c6a512-1295-4272-9138-f99709370657
* Make it possible to boot the OF and show verbose messages at the same time ↵Barry Wardell2007-03-15
| | | | | | in the PP bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12791 a1c6a512-1295-4272-9138-f99709370657
* Disable bootloader messages in the H10 and Sansa bootloaders unless the PLAY ↵Barry Wardell2007-03-12
| | | | | | (on H10) or RIGHT (on Sansa) button is being held. Messages are still displayed if an error occurs. This has already been implemented for iPod bootloaders, but still needs implementing for the other bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12742 a1c6a512-1295-4272-9138-f99709370657
* Oops. sleep() doesn't work on PortalPlayer builds. Use udelay() instead.Barry Wardell2007-01-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12138 a1c6a512-1295-4272-9138-f99709370657
* FS#6554. Move bootloader code into a common file. Only PortalPlayer devices ↵Barry Wardell2007-01-28
| | | | | | (iPods, H10, Sansa) are affected for the moment. Someone with access to (and no fear of bricking) an X5, H100, H300 and Gigabeat should try to adapt those bootloaders to also use the code in common.c. The (non-working) patch in the tracker would be a good place to start with this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12136 a1c6a512-1295-4272-9138-f99709370657
* Fix build warning.Barry Wardell2007-01-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12043 a1c6a512-1295-4272-9138-f99709370657
* Make the build system create a sysfont.h which includes font information for ↵Barry Wardell2007-01-17
| | | | | | | | | the system font. Available #defines are: SYSFONT_NAME, SYSFONT_FACENAME, SYSFONT_WIDTH, SYSFONT_HEIGHT, SYSFONT_SIZE, SYSFONT_ASCENT, SYSFONT_DESCENT, SYSFONT_FIRST_CHAR, SYSFONT_LAST_CHAR, SYSFONT_DEFAULT_CHAR, SYSFONT_PROPORTIONAL, SYSFONT_COPYRIGHT, SYSFONT_BITS_SIZE. Also fix a small bug in the iPod bootloader printf() code and use printf() for PortalPlayer bootloaders too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12041 a1c6a512-1295-4272-9138-f99709370657
* Add working dual-boot bootloaders for H10 and Sansa, which allow booting the ↵Barry Wardell2006-12-19
OF and Rockbox. Rolo also works. Changes made: Combine bootloader/h10.c and bootloader/e200.c into a common bootloader file (bootloader/main-pp.c) to be used by all mi4 based PortalPlayer targets. The file bootloader/main-pp.c is based off the old bootloader/h10.c with some minor changes to allow it to work on the Sansa too. This effectively adds a Sansa bootloader. Define MODEL_NAME string in config-*.h for use in bootloader. Split crt0-pp.S into separate files for bootloader and normal builds. Bootloader code is now in crt0-pp-bl.S while normal build code stays in crt0-pp.S. Improvements to crt0-pp.S and crt0-pp-bl.S (mostly to make it more multiprocessor safe): * Leave space in bootloader at 0xe0-0xeb since scramble writes over there when it creates the mi4 file (don't leave space for iPods since it's not needed and all code in crt0-pp-bl.S needs to fit before the boot_table at 0x100). * Remove unused DEBUG and STUB code from crt0-pp.S. * Make CPU wait for COP to be sleeping when we put the COP to sleep. * Invalidate COP cache when COP wakes * Flush CPU cache before waking COP * Make sure only the CPU clears the BSS (not the COP) * Make sure only the CPU sets up its own stack (not the COP) Rolo works on H10, so enable it. Make Sansa e200 use rockbox.e200 rather than PP5022.mi4 for 'Normal' builds. This makes updating rockbox simpler as we don't need to go through the firmware update procedure, but rather just put a new rockbox.e200 on the device. rockbox.e200 uses a simple 'add' checksum. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11815 a1c6a512-1295-4272-9138-f99709370657