summaryrefslogtreecommitdiff
path: root/tools/scramble.c
AgeCommit message (Collapse)Author
2008-12-24Commit FS#9679 by Thomas Martitz. Adds c200v2 to the target tree. Has some ↵Michael Giacomelli
buttons defined, a bootloader, and stubs for most drivers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19574 a1c6a512-1295-4272-9138-f99709370657
2008-11-11fix scramble to use m2v4 instead of m2v2 for the m200v4/2/ams targetJonathan Gordon
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19083 a1c6a512-1295-4272-9138-f99709370657
2008-11-01Add Sansa Fuze to the build system, including a first (untested) attempt at ↵Dave Chapman
an LCD driver. Lots of things are just copied from the e200v2, so this code needs testing, and then drivers properly merged if they prove to be the same. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18957 a1c6a512-1295-4272-9138-f99709370657
2008-10-19Correct the model numbers used for the Sansa V2 targets - these are ↵Dave Chapman
MODEL_NUMBER in the config-target.h file git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18838 a1c6a512-1295-4272-9138-f99709370657
2008-10-19Add e200v2 and m200v2 targets. Move the telechips lcd-ssd1815.c (currently ↵Dave Chapman
used by Logik DAX and m200v1 ports) driver up in the target tree and share with the m200v2 - as2525 parts contributed by Rafael Carre. Includes the start (but is still very incomplete) of an LCD driver for the e200v2. m200v2 is not yet fully supported by mkamsboot - that will come soon. Also some minor cleanups for the Clip. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18836 a1c6a512-1295-4272-9138-f99709370657
2008-10-12Make mkamsboot safer by introducing the use of ".sansa" files to store Sansa ↵Dave Chapman
V2 bootloader and firmware files. These files are the same format (a simple 8-byte header consisting of a 32-bit checksum followed by 4-char model name is prepended to the binary data) as that used by lots of other Rockbox targets (.ipod, iriver etc). Support added to scramble/mkamsboot for both clip and e200v2, even though the latter is not in SVN yet. Also add a check of the whole-file original firmware checksum to mkamsboot and add a new $scramblebitmaptools toolset variable in configure. The output of this version of mkamsboot is confirmed to be md5sum-identical to the previous version. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18789 a1c6a512-1295-4272-9138-f99709370657
2008-10-02Change the MODEL_NUMBER for various new ports so that it is unique again.Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18684 a1c6a512-1295-4272-9138-f99709370657
2008-09-22Trivial changes to make the main Rockbox builds for the Sansa m200 and Logik ↵Dave Chapman
DAX ports compile. Note that some codecs are currently disabled (due to lowmem on these targets), but that needs more work and analysis to decide how much RAM we want to allocate to codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18566 a1c6a512-1295-4272-9138-f99709370657
2008-09-06Initial commit of iaudio 7 port by Vitja Makarov (FS#9245). Port is at ↵Dave Chapman
quite an advanced stage, but is troubled by the lack of a reliable NAND driver (similar to the Cowon D2 port) and is not yet suitable for non-developers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18435 a1c6a512-1295-4272-9138-f99709370657
2008-08-03Prepare Creative bootloader compilation for future dual boot integrationMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18187 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
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-27My Devcon 2008 contribution: port for Philips GoGear HDD1630 (PP5022-based). ↵Mark Arigo
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-18Factor out scramble / mkboot functions to allow easier reuse (for rbutil).Dominik Riebeling
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17732 a1c6a512-1295-4272-9138-f99709370657
2008-05-21Philips GoGear SA9200 port. Working bootloader and normal builds, including ↵Mark Arigo
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-16Add beginning of DSP code (done by Catalin Patulea), but don't enable it Maurus Cuelenaere
yet as there's no C54xx compiler in the toolchain yet.. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17547 a1c6a512-1295-4272-9138-f99709370657
2008-05-141) Split ZVM into 30GB and 60GBMaurus Cuelenaere
2) Clean up config 3) Add scramble description git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17502 a1c6a512-1295-4272-9138-f99709370657
2008-05-05Convert the whole codebase to UTF-8, except docs/COMMITTERS and ↵Nicolas Pennequin
tools/creative.c, which need checking. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17369 a1c6a512-1295-4272-9138-f99709370657
2008-04-24Commit whole Creative Zen Vision:M target tree + all related firmware/ Maurus Cuelenaere
changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
2008-04-15Fix a (possibly gcc 3 only) warning.Steve Bavin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17112 a1c6a512-1295-4272-9138-f99709370657
2008-04-10cleanup code for picky compiler warning optionsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17060 a1c6a512-1295-4272-9138-f99709370657
2008-04-09Code Police raid: -W -Wall cleansingDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17045 a1c6a512-1295-4272-9138-f99709370657
2008-04-09First commit:Maurus Cuelenaere
* add Creative (ZVM, 60GB, ZV, ZVW, ZENV) support to scramble * update configure to the correct values git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17042 a1c6a512-1295-4272-9138-f99709370657
2008-03-18Make scramble add the flash logo when encoding for iAudio. It's only shown ↵Jens Arnold
on M3 with the cowon loader versions I've seen, but the space is reserved in all coldfire iaudio flash files (was just zeroed before). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16697 a1c6a512-1295-4272-9138-f99709370657
2008-03-12More iAudio M3 work. Bootloader compiles, but doesn't work yet.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16645 a1c6a512-1295-4272-9138-f99709370657
2008-03-03Add D2 option to scrambleRob Purchase
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16505 a1c6a512-1295-4272-9138-f99709370657
2008-02-18A first tiny set of changes for the Creative Zen Vision:M. Work done byDaniel Stenberg
Maurus Cuelenaere git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16347 a1c6a512-1295-4272-9138-f99709370657
2008-02-08Gigabeat S: Interrupt enabled bootloader. Miscellaneous integration changes.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16243 a1c6a512-1295-4272-9138-f99709370657
2008-01-09Initial commit for the Olympus m:robe 100 port (PP5020). The LCD driver ↵Mark Arigo
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
2007-09-30Fix the bootloader, and give the M:Robe it's own scrambleKarl Kurbjun
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14922 a1c6a512-1295-4272-9138-f99709370657
2007-09-30Add support for the generic Telechips firmware format checksums - use ↵Dave Chapman
-tcc=sum if the header just contains a single checksum, or -tcc=crc if the header contains two 32-bit CRCs. Credit goes to Hein-Pieter van Braam for his work on identifying the (reverse) CRC32 algorithm used when calculating the two CRCs git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14917 a1c6a512-1295-4272-9138-f99709370657
2007-09-21Merge the Gigabeat S branch back into trunk. Fingers crossed nothing breaks.Will Robertson
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14805 a1c6a512-1295-4272-9138-f99709370657
2007-09-06Sansa c200 port. Rockbox works with sound. Several features are disabled ↵Mark Arigo
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
2007-07-26Further G1/G2 work. Bootloader compiles now, but probably won't work.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14017 a1c6a512-1295-4272-9138-f99709370657
2007-04-21Commit FS#6929 - Gigabeat bootloader improvements by Barry Wardell and ↵Karl Kurbjun
myself. This build fixes the problems seen with the latest builds on the Gigabeat X. Added View IO Ports under the Debug menu for the Gigabeat. Make sure you grab the latest bootloader from the Wiki as the old bootloader will not work properly with new builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13225 a1c6a512-1295-4272-9138-f99709370657
2007-03-22Fix red.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12893 a1c6a512-1295-4272-9138-f99709370657
2007-03-22Make Gigabeat's scramble endian-safe.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12892 a1c6a512-1295-4272-9138-f99709370657
2007-03-14Add support for scramble to put a 4 character string indicating binary type ↵Barry Wardell
and the 4 character model id at the end of the mi4 header. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12760 a1c6a512-1295-4272-9138-f99709370657
2007-02-28Add support for iAudio M5 in the scramble toolLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12517 a1c6a512-1295-4272-9138-f99709370657
2007-02-23support scrambling for the Sansa R modelsDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12465 a1c6a512-1295-4272-9138-f99709370657
2007-02-23Correct the usage for the -add option - add mn2g and change x5 to iax5Dave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12461 a1c6a512-1295-4272-9138-f99709370657
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