Commit graph

43 commits

Author SHA1 Message Date
Karl Kurbjun
8a1fd8c686 Commit FS#6929 - Gigabeat bootloader improvements by Barry Wardell and 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-04-21 04:48:20 +00:00
Barry Wardell
176cd65e4c Fix red.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12893 a1c6a512-1295-4272-9138-f99709370657
2007-03-22 15:59:58 +00:00
Barry Wardell
149a7bab5b Make Gigabeat's scramble endian-safe.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12892 a1c6a512-1295-4272-9138-f99709370657
2007-03-22 15:53:37 +00:00
Barry Wardell
12df774d9f Add support for scramble to put a 4 character string indicating binary type 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-03-14 13:51:05 +00:00
Linus Nielsen Feltzing
fab0184870 Add support for iAudio M5 in the scramble tool
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12517 a1c6a512-1295-4272-9138-f99709370657
2007-02-28 07:42:03 +00:00
Daniel Stenberg
34080491fa support scrambling for the Sansa R models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12465 a1c6a512-1295-4272-9138-f99709370657
2007-02-23 22:45:00 +00:00
Dave Chapman
a2ef94ed87 Correct the usage for the -add option - add mn2g and change x5 to iax5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12461 a1c6a512-1295-4272-9138-f99709370657
2007-02-23 19:38:38 +00:00
Barry Wardell
2f16d4f1b3 Add working dual-boot bootloaders for H10 and Sansa, which allow booting the 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-12-19 11:33:53 +00:00
Dave Chapman
657dcb5165 Initial commit of work for port to the Tatung Elio TPJ-1022 - yet another PortalPlayer PP5020 target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10828 a1c6a512-1295-4272-9138-f99709370657
2006-08-31 19:19:35 +00:00
Dave Chapman
576d1c907c Return 0 at the end of ipod_encode() - hopefully fix the build table errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10824 a1c6a512-1295-4272-9138-f99709370657
2006-08-31 10:09:01 +00:00
Marcoen Hirschberg
ae8d47574d add Gigabeat support to the scramble tools
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10817 a1c6a512-1295-4272-9138-f99709370657
2006-08-30 23:47:09 +00:00
Dave Chapman
530f31dbe9 Add generation of .mi4 files - the generic PortalPlayer firmware format used 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-30 23:17:04 +00:00
Barry Wardell
1920df36d8 Add Rockbox bootloader for H10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10781 a1c6a512-1295-4272-9138-f99709370657
2006-08-28 08:11:32 +00:00
Dave Chapman
3ba16cbed0 Add support for ipod 5g firmware partitions and untested support for ipod 3g
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10282 a1c6a512-1295-4272-9138-f99709370657
2006-07-22 13:21:50 +00:00
Dave Chapman
c52ae7abe7 Initial support for creating ipod firmware partition images. Only tested on 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-07-21 16:16:48 +00:00
Jens Arnold
d3feb78e40 Initial support for iPod mini 2G: Rockbox boots, LCD driver is working. No 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-30 17:29:21 +00:00
Linus Nielsen Feltzing
d569727aa7 Support iAudio X5V in the scrambler
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9278 a1c6a512-1295-4272-9138-f99709370657
2006-03-27 08:31:34 +00:00
Linus Nielsen Feltzing
1c1915c0d1 Add X5 support to scramble
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9168 a1c6a512-1295-4272-9138-f99709370657
2006-03-21 14:40:07 +00:00
Dave Chapman
8b1297a0b6 Patch #1435744 from Andrew Scott - initial iPod Mini support
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8764 a1c6a512-1295-4272-9138-f99709370657
2006-02-21 15:01:25 +00:00
Dave Chapman
0d10031478 Add iPod 3G and iPod 4G Greyscale to the build system
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8586 a1c6a512-1295-4272-9138-f99709370657
2006-02-05 18:30:50 +00:00
Dave Chapman
d83e929f3f Work-in-progress iriver iFP-7xx port by Tomasz Malesinski
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657
2006-01-12 00:35:50 +00:00
Linus Nielsen Feltzing
074999ded3 Added basic iAudio X5 support for the scramble and descramble tools
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8290 a1c6a512-1295-4272-9138-f99709370657
2005-12-27 23:14:49 +00:00
Dave Chapman
2a7bd9fb7b New target - iPod Video.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8261 a1c6a512-1295-4272-9138-f99709370657
2005-12-18 13:04:00 +00:00
Daniel Stenberg
637ab47de6 output the exact byte sizes of the image and the maximum allowed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8170 a1c6a512-1295-4272-9138-f99709370657
2005-12-06 13:44:01 +00:00
Daniel Stenberg
362259ad3e fixed a million gcc4 warnings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7872 a1c6a512-1295-4272-9138-f99709370657
2005-11-14 18:58:30 +00:00
Dave Chapman
33cc6deb9e Rename irivermodel and irivernum variables to the more generic modelname and modelnum and add two new targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7779 a1c6a512-1295-4272-9138-f99709370657
2005-11-07 22:20:55 +00:00
Linus Nielsen Feltzing
56fa2dafb0 Player and recorder use the same scrambler, and have the same size limits
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7520 a1c6a512-1295-4272-9138-f99709370657
2005-09-14 11:15:59 +00:00
Linus Nielsen Feltzing
7b86bade59 Handle the different max binary size limits for the Archos models
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7515 a1c6a512-1295-4272-9138-f99709370657
2005-09-14 07:48:45 +00:00
Linus Nielsen Feltzing
599b0ff0b1 Made the -add option use char instead of short, prevents endianness problems
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5687 a1c6a512-1295-4272-9138-f99709370657
2005-01-28 12:20:20 +00:00
Linus Nielsen Feltzing
ddd1551d3e The checksum is not a CRC
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5686 a1c6a512-1295-4272-9138-f99709370657
2005-01-28 10:28:34 +00:00
Daniel Stenberg
14dd055a86 store the 'add' checksum big-endian
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5658 a1c6a512-1295-4272-9138-f99709370657
2005-01-24 23:14:47 +00:00
Daniel Stenberg
8db2730f3d remove duplicated code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5651 a1c6a512-1295-4272-9138-f99709370657
2005-01-24 13:17:03 +00:00
Daniel Stenberg
bf355b70b9 Added the "--add=[model]" option for upcoming iRiver work. Rockbox for iRiver
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-24 13:14:14 +00:00
Daniel Stenberg
adaae249ef iRiver scramble and descramble code from Dave Cooper
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5649 a1c6a512-1295-4272-9138-f99709370657
2005-01-24 09:01:48 +00:00
Jörg Hohensohn
4f52bf4c81 scrambling extended for the Ondio SP/FM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5051 a1c6a512-1295-4272-9138-f99709370657
2004-09-08 21:21:22 +00:00
Björn Stenberg
452702dac1 Multimedia scrambling was wrong: Checksum is for xor:ed data
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4401 a1c6a512-1295-4272-9138-f99709370657
2004-03-17 23:43:42 +00:00
Björn Stenberg
123ae83b07 Added multimedia support (but no compression)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4213 a1c6a512-1295-4272-9138-f99709370657
2004-01-08 21:34:52 +00:00
Daniel Stenberg
0115af21d9 removed the neo-specific scramble-tool and made it an option to scramble
instead, and made the makefile use this


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4140 a1c6a512-1295-4272-9138-f99709370657
2003-12-12 14:07:28 +00:00
Linus Nielsen Feltzing
ed11bd3281 Updated the scramble/descramble for the V2 recorder
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3992 a1c6a512-1295-4272-9138-f99709370657
2003-10-27 18:04:28 +00:00
Linus Nielsen Feltzing
6a42997d80 Magnus Öman's fix to prevent creation of >200K files
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3552 a1c6a512-1295-4272-9138-f99709370657
2003-04-14 09:59:47 +00:00
Linus Nielsen Feltzing
1326f666a6 Now handles files with odd length
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3543 a1c6a512-1295-4272-9138-f99709370657
2003-04-12 21:17:47 +00:00
Björn Stenberg
323f297ade Added incomplete support for the FM Recorder header
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3030 a1c6a512-1295-4272-9138-f99709370657
2002-12-19 15:00:40 +00:00
Björn Stenberg
e1715c27e0 First checkin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@55 a1c6a512-1295-4272-9138-f99709370657
2002-03-28 14:34:13 +00:00