Commit graph

28 commits

Author SHA1 Message Date
Dave Chapman
6e641e81ed Support for modifying the firmware partition on Macpods (useful for IPL users), along with the addition of a big warning when ipodpatcher detects a Macpod to say that Rockbox won't work on it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12209 a1c6a512-1295-4272-9138-f99709370657
2007-02-05 18:29:39 +00:00
Dave Chapman
e332f4c2ea Update (C) date to 2007
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12205 a1c6a512-1295-4272-9138-f99709370657
2007-02-05 01:20:20 +00:00
Jens Arnold
7170a00daa Enable building ipodpatcher (pure win32 binary) on cygwin with a simple 'make'
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12202 a1c6a512-1295-4272-9138-f99709370657
2007-02-05 00:50:49 +00:00
Dave Chapman
eee9798d8d Bump version to 0.6 ready for new release
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12200 a1c6a512-1295-4272-9138-f99709370657
2007-02-04 23:57:06 +00:00
Dave Chapman
c500b968b8 Fix compile error on BSD and Mac OS and remove a warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12199 a1c6a512-1295-4272-9138-f99709370657
2007-02-04 23:41:47 +00:00
Dave Chapman
33e1515662 Bugfix. ipodpatcher wasn't correctly deciding when to rearrange the contents of the firmware partition to make space for the bootloader. This bug was only hit when the amount of space required was less than 0x4400 bytes (17KB) - e.g. when upgrading an existing bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12193 a1c6a512-1295-4272-9138-f99709370657
2007-02-04 13:04:23 +00:00
Dave Chapman
31aa4524da Mainly internal changes to create a struct ipod_t instead of passing lots of parameters to all the functions. Also adds (untested) 3G support, plus a --write-firmware-bin option (requested by IPL people to write a kernel directly to the firmware partition).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12190 a1c6a512-1295-4272-9138-f99709370657
2007-02-04 11:42:11 +00:00
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
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
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
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