summaryrefslogtreecommitdiff
path: root/tools/scramble.c (follow)
Commit message (Collapse)AuthorAge
* 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
* Initial commit of work for port to the Tatung Elio TPJ-1022 - yet another ↵Dave Chapman2006-08-31
| | | | | | PortalPlayer PP5020 target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10828 a1c6a512-1295-4272-9138-f99709370657
* Return 0 at the end of ipod_encode() - hopefully fix the build table errorsDave Chapman2006-08-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10824 a1c6a512-1295-4272-9138-f99709370657
* add Gigabeat support to the scramble toolsMarcoen Hirschberg2006-08-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10817 a1c6a512-1295-4272-9138-f99709370657
* Add generation of .mi4 files - the generic PortalPlayer firmware format used ↵Dave Chapman2006-08-30
| | | | | | by the iriver H10, Sansa E200 etc. Based on the documentation available at http://daniel.haxx.se/sansa/mi4.html and examination of files produced by mkmi4.sh git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10816 a1c6a512-1295-4272-9138-f99709370657
* Add Rockbox bootloader for H10Barry Wardell2006-08-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10781 a1c6a512-1295-4272-9138-f99709370657
* Add support for ipod 5g firmware partitions and untested support for ipod 3gDave Chapman2006-07-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10282 a1c6a512-1295-4272-9138-f99709370657
* Initial support for creating ipod firmware partition images. Only tested on ↵Dave Chapman2006-07-21
| | | | | | an ipod photo so far, and will definitely not work on either a 3g or a 5g. If you never want to use the Apple firmware, you can create a firmware partition image containing just the Rockbox bootloader with the command "../tools/scramble -ipod bootloader/bootloader.bin bootloader.img" and then write bootloader.img to your firmware partition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10275 a1c6a512-1295-4272-9138-f99709370657
* Initial support for iPod mini 2G: Rockbox boots, LCD driver is working. No ↵Jens Arnold2006-03-30
| | | | | | sound, no buttons, and hangs at the boot screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9363 a1c6a512-1295-4272-9138-f99709370657
* Support iAudio X5V in the scramblerLinus Nielsen Feltzing2006-03-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9278 a1c6a512-1295-4272-9138-f99709370657
* Add X5 support to scrambleLinus Nielsen Feltzing2006-03-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9168 a1c6a512-1295-4272-9138-f99709370657
* Patch #1435744 from Andrew Scott - initial iPod Mini supportDave Chapman2006-02-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
* Add iPod 3G and iPod 4G Greyscale to the build systemDave Chapman2006-02-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8586 a1c6a512-1295-4272-9138-f99709370657
* Work-in-progress iriver iFP-7xx port by Tomasz MalesinskiDave Chapman2006-01-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
* Added basic iAudio X5 support for the scramble and descramble toolsLinus Nielsen Feltzing2005-12-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8290 a1c6a512-1295-4272-9138-f99709370657
* New target - iPod Video.Dave Chapman2005-12-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8261 a1c6a512-1295-4272-9138-f99709370657
* output the exact byte sizes of the image and the maximum allowedDaniel Stenberg2005-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8170 a1c6a512-1295-4272-9138-f99709370657
* fixed a million gcc4 warningsDaniel Stenberg2005-11-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7872 a1c6a512-1295-4272-9138-f99709370657
* Rename irivermodel and irivernum variables to the more generic modelname and ↵Dave Chapman2005-11-07
| | | | | | modelnum and add two new targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7779 a1c6a512-1295-4272-9138-f99709370657
* Player and recorder use the same scrambler, and have the same size limitsLinus Nielsen Feltzing2005-09-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7520 a1c6a512-1295-4272-9138-f99709370657
* Handle the different max binary size limits for the Archos modelsLinus Nielsen Feltzing2005-09-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7515 a1c6a512-1295-4272-9138-f99709370657
* Made the -add option use char instead of short, prevents endianness problemsLinus Nielsen Feltzing2005-01-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5687 a1c6a512-1295-4272-9138-f99709370657
* The checksum is not a CRCLinus Nielsen Feltzing2005-01-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5686 a1c6a512-1295-4272-9138-f99709370657
* store the 'add' checksum big-endianDaniel Stenberg2005-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5658 a1c6a512-1295-4272-9138-f99709370657
* remove duplicated codeDaniel Stenberg2005-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5651 a1c6a512-1295-4272-9138-f99709370657
* Added the "--add=[model]" option for upcoming iRiver work. Rockbox for iRiverDaniel Stenberg2005-01-24
| | | | | | | will not be scrambled, only have a 8 bytes header for checksum and model name. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5650 a1c6a512-1295-4272-9138-f99709370657
* iRiver scramble and descramble code from Dave CooperDaniel Stenberg2005-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5649 a1c6a512-1295-4272-9138-f99709370657
* scrambling extended for the Ondio SP/FMJörg Hohensohn2004-09-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5051 a1c6a512-1295-4272-9138-f99709370657
* Multimedia scrambling was wrong: Checksum is for xor:ed dataBjörn Stenberg2004-03-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4401 a1c6a512-1295-4272-9138-f99709370657
* Added multimedia support (but no compression)Björn Stenberg2004-01-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4213 a1c6a512-1295-4272-9138-f99709370657
* removed the neo-specific scramble-tool and made it an option to scrambleDaniel Stenberg2003-12-12
| | | | | | | instead, and made the makefile use this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4140 a1c6a512-1295-4272-9138-f99709370657
* Updated the scramble/descramble for the V2 recorderLinus Nielsen Feltzing2003-10-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3992 a1c6a512-1295-4272-9138-f99709370657
* Magnus Öman's fix to prevent creation of >200K filesLinus Nielsen Feltzing2003-04-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3552 a1c6a512-1295-4272-9138-f99709370657
* Now handles files with odd lengthLinus Nielsen Feltzing2003-04-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3543 a1c6a512-1295-4272-9138-f99709370657
* Added incomplete support for the FM Recorder headerBjörn Stenberg2002-12-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3030 a1c6a512-1295-4272-9138-f99709370657
* First checkinBjörn Stenberg2002-03-28
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@55 a1c6a512-1295-4272-9138-f99709370657