|
||||||||||
ipodpatcher
Introductionipodpatcher is a cross-platform (tested on Mac OS X, Linux, BSD and Windows) command-line tool for modifying ipod firmware partitions. It was written to enable the installation of the Rockbox bootloader but also has uses as a general-purpose ipod tool, with the ability to backup and restore the firmware partition and install the IpodLinux bootloader. It supports modifying the firmware on both Winpods (i.e. FAT32 format with a DOS partition table) and Macpods (i.e. HFS+ format with an Apple Partition Map). Although Rockbox itself will only work on FAT32 formatted ipods. ipodpatcher is Free Software and can be shared and modified according to the terms of the GNU GPL.DownloadThe latest release of ipodpatcher (v5.0 with v4.0 bootloaders) is available here:
svn co svn://svn.rockbox.org/rockbox/trunk/rbutil/ipodpatcher ipodpatcher
If you need a precompiled, standalone bootloader, look here.
To compile ipodpatcher with embedded bootloaders, read and follow the instructions at the top of the Makefile.
Rockbox bootloader installationRunning ipodpatcher without any arguments will start it in an interactive Rockbox installation mode. This allows users to launch it directly from a GUI file manager. ipodpatcher will search for an attached ipod, and if exactly one ipod is found, will prompt the user to install the bootloader from the set embedded in the ipodpatcher executable. For the full Rockbox installation procedure, see the Rockbox Manual.Overview of the ipod firmware partitionThe main ipod firmware (excluding the Apple bootloader / emergency disk mode / diagnostics mode code which is in flash ROM) is stored in hidden partition on the ipod's disk. ipodpatcher directly modifies the content of this firmware partition to enable users to attach extra code (i.e. a bootloader) to the existing Apple firmware, or to completely replace it with a new firmware such as Rockbox or the IpodLinux kernel. The firmware partition is organised as a simple directory containing a number of individual images. An ipod will typically contain up to four such images:
.ipod filesThe ".ipod" format is used by both ipodpatcher and Rockbox for firmware and bootloader binaries. It consists of an 8-byte header (a 32-bit checksum and a 4 character ipod model identifier) followed by the firmware or bootloader.Advanced usageGeneral syntax:ipodpatcher [device] action [filename]
The [device] parameter is optional. If it is not provided, then ipodpatcher will scan your computer for an ipod, and if exactly one is found, will use that device.
The following actions are possible:
--add-bootloader (-a) filename.ipodAdd (or replace, if a bootloader is already installed) a bootloader to the main firmware (OSOS) image. The bootloader must be in .ipod format with a model name in the header which matches the ipod you are trying to install it onto.--add-bootloader-bin (-ab) filename.binAdd (or replace, if a bootloader is already installed) a bootloader to the main firmware (OSOS) image. The bootloader must be a raw binary file with no header.--delete-bootloaderRemove a bootloader from the main firmware (OSOS) image.--read-partition (-r) filename.imgBackup the firmware partition to a file.--write-partition (-w) filename.imgRestore a backup of the firmware partition. This can also be used to install a Firmware-X.Y.X firmware upgrade from Apple.--read-firmware (-rf) filename.ipodRead the main firmware image (excluding any bootloader) and store it in the filename.ipod file. Rockbox users can use this command to extract the main Apple firmware to a file. When instructed to load the Apple firmware (via the hold switch or MENU button), the Rockbox bootloader looks for such a file (with the name apple_os.ipod) in the root of your FAT32 partition, and will load that firmware in preference to any firmware in the OSOS image.--write-firmware (-wf) filename.ipodThis command can be used to completely replace the Apple firmware in the OSOS image with either the Rockbox bootloader or the main rockbox.ipod file.--write-firmware-bin (-wfb) filename.binReplace the Apple firmware with a raw binary firmware file.--listList the contents of the firmware partition, including whether a bootloader is currently installed.Advanced Rockbox install methods with ipodpatcherNote: The Nano 2G requires an extra step, you must encrypt the rockbox.ipod file with crypt_firmware. Open the rockbox.ipod with crypt_firmware on your Nano 2G and a rockbox.ipodx file will be created, use this file in place of rockbox.ipod file in the install methods below. There are several different ways that Rockbox can be installed on an ipod, which differ in what data is placed in the OSOS image: there are advantages and disadvantages to each configuration. Advanced users may wish to install manually using one of these configurations rather than using rbutil for automatic installation. Please be sure to back up the contents of your ipod before attempting this: while it is not possible to permanently damage the ipod in this way, restoring the ipod using iTunes after a failed firmware installation will require you to format it. If you have used one of these advanced installation methods, or are attempting to use one and encounter problems, please be sure to specify exactly which method you are using in any request for help - but note that by using one of these methods you are accepting that you are assumed to know what you are doing, and it is not anyone else's fault if something has gone wrong.1) OSOS contains Apple firmware and the Rockbox bootloaderThis is the normal way to install Rockbox: rbutil does this for you, and ipodpatcher will do this by default if you run it with no arguments. The Nano 2G does not use this style of install; its normal install method resembles 3) below.Advantages
Disadvantages
2) OSOS contains Rockbox and the Rockbox bootloaderThis method does not work on the Nano 2G, and you must use at least version 5.0 of ipodpatcher.Advantages
Disadvantages
Instructions
3) OSOS contains only the Rockbox bootloaderThe Nano 2G's default install method resembles this method.Advantages
Disadvantages
Instructions
4) OSOS contains only RockboxThis method is the fastest way of running Rockbox, but does not allow dual booting.Advantages
Disadvantages
Instructions
r17 - 02 Apr 2021 - 20:46:06 - UnknownUser
Copyright © by the contributing authors.
|