Dave Chapman
1bb3d2601f
Minor bugfix - use O_TRUNC when reading the firmware partition.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12150 a1c6a512-1295-4272-9138-f99709370657
2007-01-29 20:17:59 +00:00
Dominik Riebeling
dcbf5d492b
don't use TOOLSDIR for svnversion.sh as it causes error messages when building the manual (because of some build system trickery used)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12133 a1c6a512-1295-4272-9138-f99709370657
2007-01-28 17:06:59 +00:00
Daniel Stenberg
8a9b426c95
try somewhat harder to find the actual svn rev
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12110 a1c6a512-1295-4272-9138-f99709370657
2007-01-25 11:39:30 +00:00
Daniel Stenberg
a239bb26c5
better lisp
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12104 a1c6a512-1295-4272-9138-f99709370657
2007-01-24 15:32:39 +00:00
Dominik Riebeling
ea37d4c072
Use the svn revision number for version information too, version string is now "r<revision>-<builddate> unless there is a static version file (e.g. created by tools/release).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12090 a1c6a512-1295-4272-9138-f99709370657
2007-01-22 23:09:07 +00:00
Dave Chapman
024537d5b6
Make RAW option explicitly little-endian and ensure that bmp2rb works the same on both little-endian and big-endian hosts. Fix bug with generating <= 8-bit raw output on big-endian hosts. Also remove TAB characters, C99 variable declarations and extremely long lines in the source.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12063 a1c6a512-1295-4272-9138-f99709370657
2007-01-18 09:30:25 +00:00
Greg White
f21122dff7
Add swap bytes option
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12060 a1c6a512-1295-4272-9138-f99709370657
2007-01-18 02:25:21 +00:00
Greg White
1ab8f32780
Fix comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12054 a1c6a512-1295-4272-9138-f99709370657
2007-01-17 19:54:35 +00:00
Greg White
b3c66f5d74
Add raw file generation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12048 a1c6a512-1295-4272-9138-f99709370657
2007-01-17 18:30:04 +00:00
Barry Wardell
020dbcd1cf
Remove sysfont.h when doing make clean.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12046 a1c6a512-1295-4272-9138-f99709370657
2007-01-17 16:10:26 +00:00
Barry Wardell
8d991e7601
Fix build warnings and errors.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12044 a1c6a512-1295-4272-9138-f99709370657
2007-01-17 12:53:23 +00:00
Barry Wardell
f4709d0c7c
Make the build system create a sysfont.h which includes font information for 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
2007-01-17 12:20:38 +00:00
Daniel Stenberg
d1e2ce2918
allow find to follow symbolic links (mostly since the server is using that
...
a lot)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12032 a1c6a512-1295-4272-9138-f99709370657
2007-01-16 22:59:25 +00:00
Daniel Stenberg
16c602f023
The version string used in builds for version timestamps is now UTC instead
...
of the local time zone. Makes it a lot easier to compare builds and it makes
build servers produce similarly stamped builed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12011 a1c6a512-1295-4272-9138-f99709370657
2007-01-14 14:15:18 +00:00
Dave Chapman
d64e626387
Start of work on a port to the Archos 'AV300' (AV320/340/380) - a working UI simulator (but with a dummy background image for now) and the beginnings of the target-specific firmare code. Port is temporarily using a 2bpp LCD buffer format - the AV300 has a 320x240 colour (YCbCr-based) LCD which will need a new framebuffer format and drawing routines, but the LCD is also capable of various paletted bitmap modes, one of which has an identical framebuffer format to the greyscale ipods. Buttons (and hence the button mappings) are identical to the Archos Recorder, with the exception that the PLAY button on the Recorder is replaced by pressing the joystick on the AV300 (which I call BUTTON_SELECT). The initial port will begin by being strictly HWCODEC, but will evolve to be a hybrid SWCODEC/HWCODEC platform - it has a MAS3587F but also a main CPU (54MHz arm7tdmi plus DSP) capable of software decoding of at least some formats.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12008 a1c6a512-1295-4272-9138-f99709370657
2007-01-14 13:48:09 +00:00
Greg White
355be5010a
Setup LCD ourselves; move LCD buffer and TTB to free up 1.7MB of memory
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11994 a1c6a512-1295-4272-9138-f99709370657
2007-01-13 02:24:15 +00:00
Dave Chapman
107d0eb921
Correct the usage information for the Archos Multimedia format (this looks like a copy-and-paste error from scamble), plus fix an error message
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11981 a1c6a512-1295-4272-9138-f99709370657
2007-01-11 00:35:06 +00:00
Linus Nielsen Feltzing
e2022a26d0
Removed executable flag
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11967 a1c6a512-1295-4272-9138-f99709370657
2007-01-09 23:29:07 +00:00
Miika Pekkarinen
b1af4e6cc8
Enable ROM file generation for H120/H140.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11947 a1c6a512-1295-4272-9138-f99709370657
2007-01-08 18:21:12 +00:00
Marcoen Hirschberg
295367686e
merge a big part of the unofficial gigabeat cvs back. Includes working bootloader and rockbox with audio.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11850 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 02:49:12 +00:00
Daniel Stenberg
37aeb12cc9
If the environment variable 'POOL' is set to a directory, this script will
...
then check if there's a previously generated mp3 file in it and if so, use
that instead of regenerating a new one. This should greately enhance
processing speed when many phrases are similar between targets and over time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11835 a1c6a512-1295-4272-9138-f99709370657
2006-12-23 22:03:49 +00:00
Dave Chapman
26b02415cb
Add the --add-bootloader-bin (-ab) option to add a binary bootloader (a raw .bin file with no kind of header). This can be used to install the ipodlinux loader2 bootloader without needing to convert it to the Rockbox ".ipod" format.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11831 a1c6a512-1295-4272-9138-f99709370657
2006-12-21 21:34:46 +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
af15c6b266
Add ipodpatcher to the source tarballs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11800 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 13:07:55 +00:00
Dave Chapman
440353a9aa
Oops
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11793 a1c6a512-1295-4272-9138-f99709370657
2006-12-17 23:04:40 +00:00
Dave Chapman
57b84b69e9
Add a simple --scan option which tests all disks from 0 to 25 to see if they look like an ipod.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11792 a1c6a512-1295-4272-9138-f99709370657
2006-12-17 23:00:15 +00:00
Dave Chapman
945be68825
Default to 512-byte sectors on POSIX platforms - this allows testing of ipodpatcher with a file instead of a real device
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11774 a1c6a512-1295-4272-9138-f99709370657
2006-12-16 13:49:14 +00:00
Dave Chapman
d772977c65
Windows appears to require sector-aligned reads, which wasn't happening everywhere for ipods with 2048-byte sectors.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11770 a1c6a512-1295-4272-9138-f99709370657
2006-12-15 15:52:08 +00:00
Dave Chapman
408c65bb21
Attempt #2 at moving the images to make space for the bootloader. The previous attempt was completely broken. This should hopefully fix the --add-bootloader functionality.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11769 a1c6a512-1295-4272-9138-f99709370657
2006-12-15 09:55:21 +00:00
Dave Chapman
49e016c48f
Reorganise the ioctl() #ifdefs - this should fix ipodpatcher for BSD
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11768 a1c6a512-1295-4272-9138-f99709370657
2006-12-15 00:09:48 +00:00
Dave Chapman
e84837558b
Fix a problem when compiling with Dev-C++ - thanks to Paul Louden
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11766 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 22:17:38 +00:00
Dave Chapman
75a11124f0
Implement the add/delete bootloader functionality.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11765 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 18:41:03 +00:00
Dave Chapman
a24b02c1e6
Bugfix - when opening a device as read/write, one should open a device as read/write.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11763 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 11:20:53 +00:00
Dave Chapman
cd06755e04
Use the correct length when extracting the firmware. Thanks again to Llorean for spotting.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11762 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 10:16:10 +00:00
Dave Chapman
132b24163c
Ooops, I should compile things before committing.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11761 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 09:40:15 +00:00
Dave Chapman
8f08f29a66
Correct a bug (thanks to Llorean for spotting) in read_partition and use the aligned global sectorbuf for the disk read in read_partinfo instead of a local variable
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11756 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 02:32:39 +00:00
Dave Chapman
c5e30e15ec
Start to implement some functionality. You can now read/write the entire partition (as ipodpatcher used to do), extract the original firmware to an "apple_os.ipod" file, or replace the original firmware with either a Rockbox bootloader or Rockbox itself. Adding/Removing a bootloader isn't yet implemented.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11755 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 01:24:05 +00:00
Dave Chapman
c657504e58
Change the ipod bootloaders to be created as ".ipod" files - this will be the format required by the new version of ipodpatcher. Also change the bootloader filenames to include the model name.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11754 a1c6a512-1295-4272-9138-f99709370657
2006-12-14 01:10:44 +00:00
Dave Chapman
8280c8c094
Sector-size detection on Posix platforms - tested on Linux and Mac OS X. Based on patch #6433 by Bryan Childs.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11752 a1c6a512-1295-4272-9138-f99709370657
2006-12-13 20:26:44 +00:00
Dave Chapman
4b7e1e0945
Work-in-progress towards a cross-platform ipodpatcher which will edit the firmware partition directly, incorporating the ipod_fw.c functionality. Tested successfully on win32 and Linux but it only lists the contents of the firmware partition at the moment - no actual reading or writing
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11748 a1c6a512-1295-4272-9138-f99709370657
2006-12-13 09:02:18 +00:00
Dave Chapman
8a55822ae3
Version 0.4b from 11 Dec 2006 - 0.4 broke win2k/winnt support, this patch restores it
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11747 a1c6a512-1295-4272-9138-f99709370657
2006-12-13 08:59:58 +00:00
Dave Chapman
206238d947
Version 0.4 from 4 Dec 2006 - added sector-size detection and hence support for 5.5G ipods
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11746 a1c6a512-1295-4272-9138-f99709370657
2006-12-13 08:59:07 +00:00
Dave Chapman
2c9c10e040
Version 0.3 from 30 Jan 2006
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11745 a1c6a512-1295-4272-9138-f99709370657
2006-12-13 08:58:10 +00:00
Dave Chapman
45895df35d
Initial CVS commit ofipodpatcher - v0.2 release from 16 Jan 2006
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11744 a1c6a512-1295-4272-9138-f99709370657
2006-12-13 08:57:06 +00:00
Martin Arver
440513ab6a
Stop building, and remove dumb as it has not changed state since its initial committed state
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11718 a1c6a512-1295-4272-9138-f99709370657
2006-12-11 21:00:14 +00:00
Dave Chapman
3f85262de2
Initial attempt at adding support for firmware images with 2048-byte sectors. Sector size is auto-detected, so both 5g and "5.5g" users can use the "-g video" (or its alias, "-g 5g") option to manipulate the firmware. I have tested this patch with 3G, 4G and 5G (512-byte sectors) and 5G (2048-byte sectors) images and it generates a "rockboot.bin" file with a matching MD5 checksum to either the previous version of ipod_fw.c, or the patched "ipod_fw_5.5g.c", as appropriate.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11703 a1c6a512-1295-4272-9138-f99709370657
2006-12-10 11:02:48 +00:00
Dave Chapman
7ccb505488
Sync with ipodlinux CVS
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11697 a1c6a512-1295-4272-9138-f99709370657
2006-12-09 10:08:36 +00:00
Jens Arnold
0e6dd7efcd
Moved archos button reading to target tree. * Cleanup of button.[ch]. * Deactivated serial remote code for recorder FM/V2 as there is no remote pin, saving ~500 bytes of code.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11612 a1c6a512-1295-4272-9138-f99709370657
2006-11-27 02:16:32 +00:00
Jonas Häggqvist
e43f56b58d
Change default filenames from tagcache to database
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11611 a1c6a512-1295-4272-9138-f99709370657
2006-11-27 00:21:37 +00:00
Daniel Ankers
d3069d00c0
Use scramble for normal Sansa builds
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11592 a1c6a512-1295-4272-9138-f99709370657
2006-11-25 13:36:05 +00:00