2006-06-04 17:16:24 +00:00
|
|
|
% $Id$ %
|
2006-05-25 16:38:18 +00:00
|
|
|
\subsection{Installing the bootloader}
|
2006-06-06 17:42:27 +00:00
|
|
|
\warn{These instructions are preliminary and may contain errors!
|
|
|
|
Please check the wiki for up-to-date and improved installation instructions!
|
|
|
|
If you find errors you're of course welcomed to report them so we can fix it
|
|
|
|
for the next daily builds.}
|
2006-06-04 17:16:24 +00:00
|
|
|
|
2006-05-25 16:38:18 +00:00
|
|
|
Installing the bootloader is the trickiest part of the installation.
|
2006-06-04 14:44:10 +00:00
|
|
|
The process is different depending on your operating system, but before
|
2006-06-06 17:42:27 +00:00
|
|
|
starting, connect the \dap{} to the computer using either an USB \fixme{or
|
2006-08-25 08:59:25 +00:00
|
|
|
Firewire?} cable. Next, create a folder on the computer's hard drive and
|
2006-06-04 14:44:10 +00:00
|
|
|
download the following file to that folder:
|
2006-07-30 18:52:17 +00:00
|
|
|
\opt{ipodvideo}{\url{http://download.rockbox.org/bootloader/ipod/bootloader-video.bin}}
|
|
|
|
\opt{ipodnano}{\url{http://download.rockbox.org/bootloader/ipod/bootloader-nano.bin}}
|
|
|
|
\opt{ipodmini}{\url{http://download.rockbox.org/bootloader/ipod/bootloader-mini1g.bin} or
|
|
|
|
\url{http://download.rockbox.org/bootloader/ipod/bootloader-mini1g.bin} depending on which
|
2006-06-06 17:42:27 +00:00
|
|
|
generation your \dap{} is.\fixme{Describe how to identify 1/2G}}
|
2006-07-30 18:52:17 +00:00
|
|
|
\opt{ipodcolor}{\url{http://download.rockbox.org/bootloader/ipod/bootloader-color.bin}}
|
|
|
|
\opt{ipod4g}{\url{http://download.rockbox.org/bootloader/ipod/bootloader-4g.bin}}
|
2006-08-25 08:59:25 +00:00
|
|
|
\opt{ipod3g}{\url{http://download.rockbox.org/bootloader/ipod/bootloader-3g.bin}}
|
2006-06-04 14:44:10 +00:00
|
|
|
|
|
|
|
When that is done, proceed to the section below that matches the operating
|
|
|
|
system on the computer.
|
|
|
|
\note{These instructions all require you to have administrator rights
|
|
|
|
on your computer, regardless of the operating system.}
|
2006-06-06 17:42:27 +00:00
|
|
|
\note{Rockbox only works on FAT32 partitions (called ``Windows formatted'' by
|
|
|
|
Apple). So if your \dap{} is Mac formatted (HFS+), you should first convert
|
2006-06-04 14:44:10 +00:00
|
|
|
it to FAT32. Information on how to do this can be found on the Rockbox
|
|
|
|
website. \fixme{Include these instructions?}}
|
|
|
|
|
|
|
|
\subsubsection{Windows users}
|
|
|
|
\begin{enumerate}
|
|
|
|
\item Download the following two programs and save them in the folder just
|
|
|
|
created. These programs will be used in the next steps:
|
|
|
|
\begin{itemize}
|
2006-07-30 18:52:17 +00:00
|
|
|
\item \url{http://download.rockbox.org/bootloader/ipod/ipodpatcher.exe}
|
|
|
|
\item \url{http://download.rockbox.org/bootloader/ipod/ipod_fw.exe}
|
2006-06-04 14:44:10 +00:00
|
|
|
\end{itemize}
|
2006-08-15 10:53:14 +00:00
|
|
|
\item Locate the \dap{} by opening a command window. You can do this by
|
2006-06-06 17:42:27 +00:00
|
|
|
clicking ``Start'', ``Execute'' and typing \fname{cmd}. Press Enter to
|
|
|
|
execute that command. Now change directory to the
|
2006-06-04 14:44:10 +00:00
|
|
|
folder you created and run the following commands:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
ipodpatcher 0
|
|
|
|
ipodpatcher 1
|
|
|
|
ipodpatcher 2
|
|
|
|
ipodpatcher 3
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-07-10 07:04:43 +00:00
|
|
|
Keep increasing the number until the \dap{} is located.
|
|
|
|
|
|
|
|
Output for an unsuccessful attempt to contact the \dap{}...
|
|
|
|
\begin{code}
|
|
|
|
C:/rockbox>ipodpatcher 0
|
|
|
|
ipodpatcher v0.3 - (C) Dave Chapman 2006
|
|
|
|
This is free software; see the source for copying conditions. There is NO
|
|
|
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
[INFO] Reading partition table from \textbackslash\textbackslash{}.\textbackslash{}PhysicalDrive0
|
|
|
|
Drive is not an iPod, aborting
|
|
|
|
\end{code}
|
|
|
|
|
|
|
|
A successful connection to the \dap{} will look similar to this...
|
|
|
|
\begin{code}
|
|
|
|
C:\textbackslash{}rockbox>ipodpatcher 6
|
|
|
|
ipodpatcher v0.3 - (C) Dave Chapman 2006
|
|
|
|
This is free software; see the source for copying conditions. There is NO
|
|
|
|
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
[INFO] Reading partition table from \textbackslash\textbackslash{}.\textbackslash{}PhysicalDrive6
|
|
|
|
Part Start Sector End Sector Size (MB) Type
|
|
|
|
0 63 160649 78.4 Empty (0x00)
|
|
|
|
1 160650 7984304 3820.1 W95 FAT32 (0x0b)
|
|
|
|
\end{code}
|
|
|
|
Remember the number that corresponds to your \dap{} -- in the
|
2006-06-06 17:42:27 +00:00
|
|
|
following steps, \emph{N} should be replaced with the number just found.
|
|
|
|
\item Now, extract the firmware partition currently on the \dap{} with the
|
2006-06-04 14:44:10 +00:00
|
|
|
following command:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
ipodpatcher -r \emph{N} bootpartition.bin
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
\note{You should keep a safe backup of this \fname{bootpartition.bin} file
|
|
|
|
for use if you ever wish to either upgrade the Rockbox bootloader or
|
2006-06-06 17:42:27 +00:00
|
|
|
uninstall Rockbox from your Ipod}
|
2006-06-04 14:44:10 +00:00
|
|
|
\item Extract the Apple firmware from the partition image image just created:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-07-09 22:24:27 +00:00
|
|
|
ipod_fw -o apple_os.bin -e 0 bootpartition.bin
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
|
|
|
\optv{ipodvideo}{
|
|
|
|
\item Similarly, extract the Broadcom firmware:
|
|
|
|
\begin{code}
|
|
|
|
ipod_fw -o apple_sw_5g_rcsc.bin -e 1 bootpartition.bin
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
}
|
2006-06-06 21:38:37 +00:00
|
|
|
\item Merge the Rockbox bootloader you downloaded previously with the Apple
|
|
|
|
firmware:
|
|
|
|
\optv{ipodnano}{
|
|
|
|
\begin{code}
|
|
|
|
ipod_fw -g nano -o rockboot.bin -i apple_os.bin bootloader-nano.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodvideo}{
|
|
|
|
\begin{code}
|
|
|
|
ipod_fw -g video -o rockboot.bin -i apple_os.bin bootloader-video.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodmini}{
|
|
|
|
\begin{code}
|
|
|
|
ipod_fw -g mini -o rockboot.bin -i apple_os.bin bootloader-mini1g.bin
|
|
|
|
\end{code}
|
|
|
|
Or, if you have a 2G mini:
|
|
|
|
\begin{code}
|
|
|
|
ipod_fw -g mini -o rockboot.bin -i apple_os.bin bootloader-mini2g.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodcolor}{
|
|
|
|
\begin{code}
|
|
|
|
ipod_fw -g color -o rockboot.bin -i apple_os.bin bootloader-color.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipod4g}{
|
|
|
|
\begin{code}
|
|
|
|
ipod_fw -g 4g -o rockboot.bin -i apple_os.bin bootloader-4g.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\item
|
2006-06-04 14:44:10 +00:00
|
|
|
Install the Rockbox-enabled firmware:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
ipodpatcher -w \emph{N} rockboot.bin
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
\end{enumerate}
|
|
|
|
|
2006-06-04 17:16:24 +00:00
|
|
|
Now you can proceed installing the firmware itself.
|
2006-06-04 14:44:10 +00:00
|
|
|
|
|
|
|
\subsubsection{Mac OS X users}
|
|
|
|
\begin{enumerate}
|
|
|
|
\item Download the following two programs and save them in the folder just
|
|
|
|
created. These programs will be used in the next steps:
|
|
|
|
\begin{itemize}
|
2006-07-30 18:52:17 +00:00
|
|
|
\item \url{http://download.rockbox.org/bootloader/ipod/diskdump}
|
|
|
|
\item \url{http://download.rockbox.org/bootloader/ipod/ipod_fw}
|
2006-06-04 14:44:10 +00:00
|
|
|
\end{itemize}
|
|
|
|
Start a Terminal and type navigate into the folder you created. Before
|
|
|
|
you can continue, you need to ensure that Mac OS knows that the
|
2006-06-04 17:16:24 +00:00
|
|
|
\fname{ipod\_fw}
|
2006-06-04 14:44:10 +00:00
|
|
|
and diskdump files you downloaded are executable programs. To do this,
|
|
|
|
type the following command:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
chmod +x ipod_fw diskdump
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
|
|
|
\item Locate the \dap{} by running the following command:
|
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
mount
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
The output will look something like this: \fixme{Add full example}
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
/dev/disk1s2 on /Volumes/DAVE_S IPOD 1 (local, nodev, nosuid)
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
In this example, the \dap\ is located at /dev/disk1s2 Remember the
|
|
|
|
location of your \dap\ -- in the following steps, /dev/disk1s2 should be
|
|
|
|
replaced with the location just found.
|
|
|
|
\item Before continuing, the \dap\ must be ``unmounted'', which is
|
|
|
|
done with the following command:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
diskutil unmount /dev/disk1s2
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
|
|
|
\item Now, extract the Apple firmware currently on the \dap{} with the
|
2006-06-04 14:44:10 +00:00
|
|
|
following command:
|
|
|
|
\note{The last part of the location is left out.}
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
./diskdump -r /dev/disk1 bootpartition.bin
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-06-04 17:16:24 +00:00
|
|
|
\note{You should keep a safe backup of this \fname{bootpartition.bin} file
|
|
|
|
for use if you ever wish to either upgrade the Rockbox bootloader or
|
2006-06-04 14:44:10 +00:00
|
|
|
uninstall Rockbox from your iPod
|
|
|
|
}
|
|
|
|
\item Extract the Apple firmware from this partition image:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
./ipod_fw -o apple_os.bin -e 0 bootpartition.bin
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
|
|
|
\optv{ipodvideo}{
|
|
|
|
\item Similarly, extract the Broadcom firmware:
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -o apple_sw_5g_rcsc.bin -e 1 bootpartition.bin
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
}
|
|
|
|
\item Merge the Rockbox bootloader you downloaded previously with the Apple
|
2006-06-06 21:38:37 +00:00
|
|
|
firmware:
|
|
|
|
\optv{ipodnano}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g nano -o rockboot.bin -i apple_os.bin bootloader-nano.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodvideo}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g video -o rockboot.bin -i apple_os.bin bootloader-video.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodmini}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g mini -o rockboot.bin -i apple_os.bin bootloader-mini1g.bin
|
|
|
|
\end{code}
|
|
|
|
Or, if you have a 2G Mini:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-06 21:38:37 +00:00
|
|
|
./ipod_fw -g mini -o rockboot.bin -i apple_os.bin bootloader-mini2g.bin
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-06-06 21:38:37 +00:00
|
|
|
}
|
|
|
|
\optv{ipodcolor}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g color -o rockboot.bin -i apple_os.bin bootloader-color.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipod4g}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g 4g -o rockboot.bin -i apple_os.bin bootloader-4g.bin
|
|
|
|
\end{code}
|
2006-08-25 08:59:25 +00:00
|
|
|
}
|
|
|
|
\optv{ipod3g}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g 3g -o rockboot.bin -i apple_os.bin bootloader-3g.bin
|
|
|
|
\end{code}
|
2006-06-06 21:38:37 +00:00
|
|
|
}
|
2006-06-04 14:44:10 +00:00
|
|
|
\item
|
|
|
|
Install the Rockbox-enabled firmware:
|
|
|
|
\note{The last part of the location is left out.}
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
./diskdump -w /dev/disk1 rockboot.bin
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
\end{enumerate}
|
|
|
|
|
2006-06-04 17:16:24 +00:00
|
|
|
Now, proceed with installing the firmware itself.
|
2006-06-04 14:44:10 +00:00
|
|
|
|
|
|
|
\subsubsection{Linux users}
|
|
|
|
\begin{enumerate}
|
|
|
|
\item Download the following and save it in the folder just
|
|
|
|
created:
|
|
|
|
\begin{itemize}
|
|
|
|
\item \url{http://www.rockbox.org/viewcvs.cgi/*checkout*/tools/ipod_fw.c}
|
|
|
|
\end{itemize}
|
|
|
|
Now compile it to an executable by opening a command prompt and changing
|
|
|
|
to the folder created previously. Thn run the following command:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
gcc -o ipod_fw ipod_fw.c
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
If you get the message that the command gcc is not found, you need to
|
|
|
|
install gcc. How to do this depends on your Linux distribution, and
|
|
|
|
you should consult its documentation for help on this.
|
|
|
|
\item Locate your Ipod by running the command \verb|dmesg|. In the output
|
|
|
|
something like the following should be seen:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
usb 4-1: new high speed USB device using ehci_hcd and address 7
|
|
|
|
scsi4 : SCSI emulation for USB Mass Storage devices
|
|
|
|
usb-storage: device found at 7
|
|
|
|
usb-storage: waiting for device to settle before scanning
|
|
|
|
Vendor: Apple Model: iPod Rev: 1.62
|
|
|
|
Type: Direct-Access ANSI SCSI revision: 00
|
|
|
|
SCSI device sdb: 58605120 512-byte hdwr sectors (30006 MB)
|
|
|
|
\end{code}
|
|
|
|
You need the device name of your \dap, which you can find in the last line.
|
|
|
|
In this example, the \dap\ is located on \fname{/dev/sdb}. In the following,
|
|
|
|
\fname{/dev/sdb} should be replaced with the location just found.
|
|
|
|
\item Run \verb|fdisk -l /dev/sdb|. Verify that the
|
2006-06-04 14:44:10 +00:00
|
|
|
output is similar to the one below:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
Device Boot Start End Blocks Id System
|
|
|
|
/dev/sdb1 1 10 80293+ 0 Empty
|
|
|
|
/dev/sdb2 11 3648 29222235 b W95 FAT32
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
\item Back up the partition table using the following command:
|
|
|
|
\note{The last part of the location is left out.}
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
dd if=/dev/\emph{sdb} of=mbr.bin count=1
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
|
2006-06-06 17:42:27 +00:00
|
|
|
\item Now, extract the firmware partition currently on the \dap{} with the
|
2006-06-04 14:44:10 +00:00
|
|
|
following command:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
dd if=/dev/\emph{sdb1} of=bootpartition.bin
|
|
|
|
\end{code}
|
2006-06-04 17:16:24 +00:00
|
|
|
\note{You should keep a safe backup of this \fname{bootpartition.bin} file
|
|
|
|
for use if you ever wish to either upgrade the Rockbox bootloader or
|
2006-06-06 17:42:27 +00:00
|
|
|
uninstall Rockbox from your Ipod
|
2006-06-04 14:44:10 +00:00
|
|
|
}
|
|
|
|
\item Extract the Apple firmware from this partition image:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
./ipod_fw -o apple_os.bin -e 0 bootpartition.bin
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
|
|
|
\optv{ipodvideo}{
|
2006-06-04 17:16:24 +00:00
|
|
|
\item Similarly, extract the Broadcom firmware:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -o apple_sw_5g_rcsc.bin -e 1 bootpartition.bin
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
\item Merge the Rockbox bootloader you downloaded previously with the Apple
|
2006-06-06 21:38:37 +00:00
|
|
|
firmware:
|
|
|
|
\optv{ipodnano}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g nano -o rockboot.bin -i apple_os.bin bootloader-nano.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodvideo}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g video -o rockboot.bin -i apple_os.bin bootloader-video.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodmini}{
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
2006-06-06 21:38:37 +00:00
|
|
|
./ipod_fw -g mini -o rockboot.bin -i apple_os.bin bootloader-mini1g.bin
|
2006-06-06 17:42:27 +00:00
|
|
|
\end{code}
|
2006-06-06 21:38:37 +00:00
|
|
|
Or, if you have a 2G Mini:
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g mini -o rockboot.bin -i apple_os.bin bootloader-mini2g.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipodcolor}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g color -o rockboot.bin -i apple_os.bin bootloader-color.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
|
|
|
\optv{ipod4g}{
|
|
|
|
\begin{code}
|
|
|
|
./ipod_fw -g 4g -o rockboot.bin -i apple_os.bin bootloader-4g.bin
|
|
|
|
\end{code}
|
|
|
|
}
|
2006-06-04 14:44:10 +00:00
|
|
|
\item
|
|
|
|
Install the Rockbox-enabled firmware:
|
2006-06-06 17:42:27 +00:00
|
|
|
\begin{code}
|
|
|
|
dd if=rockboot.bin of=/dev/\emph{sdb1}
|
|
|
|
\end{code}
|
2006-06-04 14:44:10 +00:00
|
|
|
\end{enumerate}
|
2006-06-04 17:16:24 +00:00
|
|
|
Now you can install the firmware itself.
|
2006-06-04 14:44:10 +00:00
|
|
|
|