summaryrefslogtreecommitdiffstats
path: root/tools/ipodpatcher/ipodpatcher.c
AgeCommit message (Collapse)AuthorFilesLines
2007-02-10Move ipodpatcher into rbutil directoryDave Chapman1-1261/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12263 a1c6a512-1295-4272-9138-f99709370657
2007-02-08Move the command-line specific code into main.c, leaving the firmware ↵Dave Chapman1-398/+3
manipulation code in ipodpatcher.c. No functional changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12238 a1c6a512-1295-4272-9138-f99709370657
2007-02-08Bugfix - the bootloader was being overwritten if the firmware partition ↵Dave Chapman1-8/+23
needed to be rearranged to make space (i.e. the first time a bootloader is installed). Thanks to Paul Louden for helping to test and debug. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12237 a1c6a512-1295-4272-9138-f99709370657
2007-02-08Work-in-progress (i.e. not well tested) changes: Add the option to build ↵Dave Chapman1-74/+183
ipodpatcher with the Rockbox bootloaders embedded (see the comments in the Makefile for build instructions). This gives a new --install option which will search for an ipod, and if exactly one is found, will install the embedded bootloader. Even easier is the new interactive mode - running ipodpatcher with no command-line options (e.g. double-clicking on ipodpatcher.exe in Windows) will cause ipodpatcher to search for an ipod, and if exactly one is found, ask the user if he/she wishes to install the bootloader. Thanks to Bryan Childs for sample code to deal with prompts. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12235 a1c6a512-1295-4272-9138-f99709370657
2007-02-06Oops, we should close the devices during the scanDave Chapman1-0/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12217 a1c6a512-1295-4272-9138-f99709370657
2007-02-06Make the [device] parameter optional. If none is specified, then ↵Dave Chapman1-13/+32
ipodpatcher scans for an ipod, and if exactly one ipod is found, it uses that device. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12215 a1c6a512-1295-4272-9138-f99709370657
2007-02-06 Bump version to 0.7 for releaseDave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12212 a1c6a512-1295-4272-9138-f99709370657
2007-02-05Support for modifying the firmware partition on Macpods (useful for IPL ↵Dave Chapman1-28/+114
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-05Update (C) date to 2007Dave Chapman1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12205 a1c6a512-1295-4272-9138-f99709370657
2007-02-04Bump version to 0.6 ready for new releaseDave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12200 a1c6a512-1295-4272-9138-f99709370657
2007-02-04Fix compile error on BSD and Mac OS and remove a warningDave Chapman1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12199 a1c6a512-1295-4272-9138-f99709370657
2007-02-04Bugfix. ipodpatcher wasn't correctly deciding when to rearrange the ↵Dave Chapman1-1/+2
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-04Mainly internal changes to create a struct ipod_t instead of passing lots of ↵Dave Chapman1-326/+314
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-01-29Minor bugfix - use O_TRUNC when reading the firmware partition.Dave Chapman1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12150 a1c6a512-1295-4272-9138-f99709370657
2006-12-21Add the --add-bootloader-bin (-ab) option to add a binary bootloader (a raw ↵Dave Chapman1-36/+55
.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-17OopsDave Chapman1-1/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11793 a1c6a512-1295-4272-9138-f99709370657
2006-12-17Add a simple --scan option which tests all disks from 0 to 25 to see if they ↵Dave Chapman1-54/+141
look like an ipod. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11792 a1c6a512-1295-4272-9138-f99709370657
2006-12-15Windows appears to require sector-aligned reads, which wasn't happening ↵Dave Chapman1-23/+47
everywhere for ipods with 2048-byte sectors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11770 a1c6a512-1295-4272-9138-f99709370657
2006-12-15Attempt #2 at moving the images to make space for the bootloader. The ↵Dave Chapman1-15/+14
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-14Implement the add/delete bootloader functionality.Dave Chapman1-52/+414
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11765 a1c6a512-1295-4272-9138-f99709370657
2006-12-14Use the correct length when extracting the firmware. Thanks again to ↵Dave Chapman1-2/+2
Llorean for spotting. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11762 a1c6a512-1295-4272-9138-f99709370657
2006-12-14Ooops, I should compile things before committing.Dave Chapman1-5/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11761 a1c6a512-1295-4272-9138-f99709370657
2006-12-14Correct a bug (thanks to Llorean for spotting) in read_partition and use the ↵Dave Chapman1-7/+7
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-14Start to implement some functionality. You can now read/write the entire ↵Dave Chapman1-66/+418
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-13Work-in-progress towards a cross-platform ipodpatcher which will edit the ↵Dave Chapman1-168/+286
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-13Version 0.4b from 11 Dec 2006 - 0.4 broke win2k/winnt support, this patch ↵Dave Chapman1-8/+20
restores it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11747 a1c6a512-1295-4272-9138-f99709370657
2006-12-13Version 0.4 from 4 Dec 2006 - added sector-size detection and hence support ↵Dave Chapman1-22/+43
for 5.5G ipods git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11746 a1c6a512-1295-4272-9138-f99709370657
2006-12-13Version 0.3 from 30 Jan 2006Dave Chapman1-2/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11745 a1c6a512-1295-4272-9138-f99709370657
2006-12-13Initial CVS commit ofipodpatcher - v0.2 release from 16 Jan 2006Dave Chapman1-0/+443
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11744 a1c6a512-1295-4272-9138-f99709370657