Gitiles
Code Review
Sign In
gerrit.rockbox.org
/
rockbox
/
refs/tags/bootloader_nwa20_v1
/
rbutil
/
ipodpatcher
/
ipodpatcher.c
tag
c2a398a0f4f5f22c8854fe168030b55c9638bde4
tagger
Amaury Pouly <amaury.pouly@gmail.com>
Sun Sep 17 23:26:30 2017 +0200
object
aedf4d2a578141e50c4a868d6d24b4e5a97755c7
Tag NW-A20 bootloader V1
24e37dd
ipodpatcher: move sectorbuf pointer into ipod_t structure.
by Dominik Riebeling
· 12 years ago
bf1c491
Move check for existing bootloader to ipodpatcher.
by Dominik Riebeling
· 13 years ago
0110e55
Remove Ipod Video 64MB handling.
by Dominik Riebeling
· 14 years ago
4280640
Revert most of r24361 - it was committed in error.
by Dave Chapman
· 15 years ago
4cb879d
Update the comments describing how to build ipodpatcher - no functional changes.
by Dave Chapman
· 15 years ago
5742f89
Fix ipodpatcher to work with new target names introduced in r23883
by Dave Chapman
· 15 years ago
c074044
Rename targets to be consistent in all places. (FS #10819). Take 2.
by Björn Stenberg
· 15 years ago
bbfe573
FS#9833: Fix Ipods being wrongly detected as MacPods on OS X
by Dominik Riebeling
· 15 years ago
3e489c1
Rename print_error() in ipodpatcher and sansapatcher.
by Dominik Riebeling
· 15 years ago
8e95cc4
ipodpatcher and rbutil support for the Nano2G - FS#10609 with a few further changes.
by Dave Chapman
· 15 years ago
4e4510e
Query RAM size when scanning for Ipods. Return the target string for Video 64MB when apropriate amount of RAM is detected. Makes Rockbox Utility detect it correctly for first time installs.
by Dominik Riebeling
· 15 years ago
1eca02d
Add support (on Linux and win32 only - I couldn't figure this out on OS X) for reading the XML device information from ipods. This information includes the RAM size, which is potentially useful for rbutil to distinguish between the two ipod video builds. This is implemented as both a new --dump-xml option (to dump the entire XML to a file) and a new 'ramsize' field in struct ipod_t.
by Dave Chapman
· 15 years ago
b22516f
Make sure the global buffers for ipodpatcher and sansapatcher get allocated and freed only once. Fixes segfaults when the bootloader install class was instanciated multiple times.
by Dominik Riebeling
· 16 years ago
08574c4
When scanning for Ipod / Sansa close the disc handle of every tried disc, not only for successful checks. Fixes "no Sansa found" issues with rbutil on w32 after autodetection was used.
by Dominik Riebeling
· 17 years ago
2acc0ac
Updated our source code header to explicitly mention that we are GPL v2 or
by Daniel Stenberg
· 17 years ago
d131a31
Rename variables sectorbuf and verbose to avoid clashes in rbutil. Cleanup exports a bit.
by Dominik Riebeling
· 17 years ago
194b2ca
Check for permission denied error when trying to access the player and inform the user that raw disc access permissions are required.
by Dominik Riebeling
· 17 years ago
6e79715
Add functions to read and write the AUPD (flash update) image. "--read-aupd aupd.bin" will read (and decrypt) the AUPD image, and "--write-aupd aupd.bin" will write (and encrypt) an image. Also fix a bug in the "diskmove" function which corrupted the AUPD image when a bootloader was installed. So in order to manipulate the aupd image, you need to restore a clean firmware partition, and install the bootloader with this version of ipodpatcher. Decryption functions based on the description and sample code at http://ipodlinux.org/Flash_Decryption
by Dave Chapman
· 17 years ago
ac3db33
ipodpatcher: adjust the targetname strings, so they match the names in rbutil.
by Dominik Wenger
· 17 years ago
564d249
Detect and reject 2nd Gen Nanos when scanning for ipods, instead of failing quietly.
by Dave Chapman
· 17 years ago
33bc6f3
Yet more warning fixes - ipodpatcher should now be warning-free in rbutilqt
by Dave Chapman
· 17 years ago
0be3036
Fix some more warnings (these only occurred on Mac OS X, so I missed them on Linux/x86).
by Dave Chapman
· 17 years ago
2cc80f5
Add -W to CFLAGS in Makefile and fix the generated warnings.
by Dave Chapman
· 17 years ago
3b1119b
Fix some cosmetic bugs in error messages. These generated warnings when compiling ipodpatcher with -O2.
by Dave Chapman
· 17 years ago
35735c66
Initial attempt at a --convert option to convert HFS formatted ipods (Macpods) to FAT32 format. This needs testing (as well as the existing --format feature) before adding as an option in the interactive mode and fully documenting.
by Dave Chapman
· 17 years ago
6a20def
Initial (untested apart from device detection) support for 1st/2nd gen ipods (the original ones...).
by Dave Chapman
· 17 years ago
0fba85f
Accept both 0xb and 0xc as valid partition types for an ipod FAT32 partition. Some tools (e.g. fat32format) set the type to 0xc, and the Apple bootloader doesn't appear to care.
by Dave Chapman
· 18 years ago
09b247f
Don't just display an error message, abort.
by Dave Chapman
· 18 years ago
6e314e5
Fix typo in error message - thanks to Bryan Childs for spotting
by Dave Chapman
· 18 years ago
bbde445
Add --write-embedded (-we) option. This replaces the Apple firmware with the bootloader embedded in ipodpatcher (equivalent to -wf bootloader-ipodxxx.ipod when using an external bootloader).
by Dave Chapman
· 18 years ago
4df0c77
Remove the check for ipod-specific magic in the MBR (which caused problems when users repartitioned their ipods and removed that magic) and instead check that the partition layout looks like an ipod.
by Dave Chapman
· 18 years ago
427fff4
Add -rfb option for reading the main firmware (OSOS image) as a binary file.
by Dave Chapman
· 18 years ago
a6d68bd
Changes to aid incorporation into rbutil, based on part of FS #6643 from Dominik Wenger. Move display_partinfo() function into main.c (where it belongs) and export get_parttype() function from ipodpatcher.c. Also add a targetname variable to struct ipod_t to enable bootloader URLs to be constructed.
by Dave Chapman
· 18 years ago
955afed
Move ipodpatcher into rbutil directory
by Dave Chapman
· 18 years ago
[Renamed from tools/ipodpatcher/ipodpatcher.c]
79a1fb1
Move the command-line specific code into main.c, leaving the firmware manipulation code in ipodpatcher.c. No functional changes.
by Dave Chapman
· 18 years ago
eca5222
Bugfix - the bootloader was being overwritten if the firmware partition 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.
by Dave Chapman
· 18 years ago
bdc27ff
Work-in-progress (i.e. not well tested) changes: Add the option to build 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.
by Dave Chapman
· 18 years ago
dd50c86
Oops, we should close the devices during the scan
by Dave Chapman
· 18 years ago
1026c0f
Make the [device] parameter optional. If none is specified, then ipodpatcher scans for an ipod, and if exactly one ipod is found, it uses that device.
by Dave Chapman
· 18 years ago
9d15361
Bump version to 0.7 for release
by Dave Chapman
· 18 years ago
6e641e8
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.
by Dave Chapman
· 18 years ago
e332f4c
Update (C) date to 2007
by Dave Chapman
· 18 years ago
eee9798
Bump version to 0.6 ready for new release
by Dave Chapman
· 18 years ago
c500b96
Fix compile error on BSD and Mac OS and remove a warning
by Dave Chapman
· 18 years ago
33e1515
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.
by Dave Chapman
· 18 years ago
31aa452
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).
by Dave Chapman
· 18 years ago
1bb3d26
Minor bugfix - use O_TRUNC when reading the firmware partition.
by Dave Chapman
· 18 years ago
26b0241
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.
by Dave Chapman
· 18 years ago
440353a
Oops
by Dave Chapman
· 18 years ago
57b84b6
Add a simple --scan option which tests all disks from 0 to 25 to see if they look like an ipod.
by Dave Chapman
· 18 years ago
d772977
Windows appears to require sector-aligned reads, which wasn't happening everywhere for ipods with 2048-byte sectors.
by Dave Chapman
· 18 years ago
408c65b
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.
by Dave Chapman
· 18 years ago
75a1112
Implement the add/delete bootloader functionality.
by Dave Chapman
· 18 years ago
cd06755
Use the correct length when extracting the firmware. Thanks again to Llorean for spotting.
by Dave Chapman
· 18 years ago
132b241
Ooops, I should compile things before committing.
by Dave Chapman
· 18 years ago
8f08f29
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
by Dave Chapman
· 18 years ago
c5e30e1
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.
by Dave Chapman
· 18 years ago
4b7e1e0
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
by Dave Chapman
· 18 years ago
8a55822
Version 0.4b from 11 Dec 2006 - 0.4 broke win2k/winnt support, this patch restores it
by Dave Chapman
· 18 years ago
206238d
Version 0.4 from 4 Dec 2006 - added sector-size detection and hence support for 5.5G ipods
by Dave Chapman
· 18 years ago
2c9c10e
Version 0.3 from 30 Jan 2006
by Dave Chapman
· 18 years ago
45895df
Initial CVS commit ofipodpatcher - v0.2 release from 16 Jan 2006
by Dave Chapman
· 18 years ago