summaryrefslogtreecommitdiff
path: root/tools/scramble.c (unfollow)
Commit message (Collapse)Author
2006-12-19Add working dual-boot bootloaders for H10 and Sansa, which allow booting the ↵Barry Wardell
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
2006-08-31Initial commit of work for port to the Tatung Elio TPJ-1022 - yet another ↵Dave Chapman
PortalPlayer PP5020 target. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10828 a1c6a512-1295-4272-9138-f99709370657
2006-08-31Return 0 at the end of ipod_encode() - hopefully fix the build table errorsDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10824 a1c6a512-1295-4272-9138-f99709370657
2006-08-30add Gigabeat support to the scramble toolsMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10817 a1c6a512-1295-4272-9138-f99709370657
2006-08-30Add generation of .mi4 files - the generic PortalPlayer firmware format used ↵Dave Chapman
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
2006-08-28Add Rockbox bootloader for H10Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10781 a1c6a512-1295-4272-9138-f99709370657
2006-07-22Add support for ipod 5g firmware partitions and untested support for ipod 3gDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10282 a1c6a512-1295-4272-9138-f99709370657
2006-07-21Initial support for creating ipod firmware partition images. Only tested on ↵Dave Chapman
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
2006-03-30Initial support for iPod mini 2G: Rockbox boots, LCD driver is working. No ↵Jens Arnold
sound, no buttons, and hangs at the boot screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9363 a1c6a512-1295-4272-9138-f99709370657
2006-03-27Support iAudio X5V in the scramblerLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9278 a1c6a512-1295-4272-9138-f99709370657
2006-03-21Add X5 support to scrambleLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9168 a1c6a512-1295-4272-9138-f99709370657
2006-02-21Patch #1435744 from Andrew Scott - initial iPod Mini supportDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
2006-02-05Add iPod 3G and iPod 4G Greyscale to the build systemDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8586 a1c6a512-1295-4272-9138-f99709370657
2006-01-12Work-in-progress iriver iFP-7xx port by Tomasz MalesinskiDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
2005-12-27Added basic iAudio X5 support for the scramble and descramble toolsLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8290 a1c6a512-1295-4272-9138-f99709370657
2005-12-18New target - iPod Video.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8261 a1c6a512-1295-4272-9138-f99709370657
2005-12-06output the exact byte sizes of the image and the maximum allowedDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8170 a1c6a512-1295-4272-9138-f99709370657
2005-11-14fixed a million gcc4 warningsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7872 a1c6a512-1295-4272-9138-f99709370657
2005-11-07Rename irivermodel and irivernum variables to the more generic modelname and ↵Dave Chapman
modelnum and add two new targets git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7779 a1c6a512-1295-4272-9138-f99709370657
2005-09-14Player and recorder use the same scrambler, and have the same size limitsLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7520 a1c6a512-1295-4272-9138-f99709370657
2005-09-14Handle the different max binary size limits for the Archos modelsLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7515 a1c6a512-1295-4272-9138-f99709370657
2005-01-28Made the -add option use char instead of short, prevents endianness problemsLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5687 a1c6a512-1295-4272-9138-f99709370657
2005-01-28The checksum is not a CRCLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5686 a1c6a512-1295-4272-9138-f99709370657
2005-01-24store the 'add' checksum big-endianDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5658 a1c6a512-1295-4272-9138-f99709370657
2005-01-24remove duplicated codeDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5651 a1c6a512-1295-4272-9138-f99709370657
2005-01-24Added the "--add=[model]" option for upcoming iRiver work. Rockbox for iRiverDaniel Stenberg
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
2005-01-24iRiver scramble and descramble code from Dave CooperDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5649 a1c6a512-1295-4272-9138-f99709370657
2004-09-08scrambling extended for the Ondio SP/FMJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5051 a1c6a512-1295-4272-9138-f99709370657
2004-03-17Multimedia scrambling was wrong: Checksum is for xor:ed dataBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4401 a1c6a512-1295-4272-9138-f99709370657
2004-01-08Added multimedia support (but no compression)Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4213 a1c6a512-1295-4272-9138-f99709370657
2003-12-12removed the neo-specific scramble-tool and made it an option to scrambleDaniel Stenberg
instead, and made the makefile use this git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4140 a1c6a512-1295-4272-9138-f99709370657
2003-10-27Updated the scramble/descramble for the V2 recorderLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3992 a1c6a512-1295-4272-9138-f99709370657
2003-04-14Magnus Öman's fix to prevent creation of >200K filesLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3552 a1c6a512-1295-4272-9138-f99709370657
2003-04-12Now handles files with odd lengthLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3543 a1c6a512-1295-4272-9138-f99709370657
2002-12-19Added incomplete support for the FM Recorder headerBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3030 a1c6a512-1295-4272-9138-f99709370657
2002-03-28First checkinBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@55 a1c6a512-1295-4272-9138-f99709370657