Enable JavaScript to show search field.

2  Installation

Installing Rockbox is generally a quick and easy procedure. However before beginning there are a few important things to know.

2.1 Before Starting
2.2 Installing Rockbox
2.2.1 Automated Installation
2.2.2 Manual Installation
2.2.3 Finishing the install
2.2.4 Enabling Speech Support (optional)
2.3 Running Rockbox
2.4 Updating Rockbox
2.5 Uninstalling Rockbox
2.5.1 Automatic Uninstallation
2.5.2 Manual Uninstallation
2.6 Troubleshooting

2.1  Before Starting

DRM capability.
If your player has a US firmware, then by installing Rockbox you will permanently lose the ability to playback files with DRM.
USB connection.
To transfer Rockbox to your player you need to connect it to your computer. For manual installation/uninstallation, or should autodetection fail during automatic installation, you need to know where to access the player. On Windows this means you need to know the drive letter associated with the player. On Linux you need to know the mount point of your player. On Mac OS X you need to know the volume name of your player.

2.2  Installing Rockbox

There are two ways to install Rockbox: automated and manual. The automated way is the preferred method of installing Rockbox for the majority of people. Rockbox Utility is a graphical application that does almost everything for you. However, should you encounter a problem, then the manual way is still available to you.

There are two separate components which need to be installed in order to run Rockbox:

The Rockbox bootloader.

The bootloader is the program that tells your player how to load and start other components of Rockbox and for providing the dual boot function. This is the component of Rockbox that is installed to the flash memory of your Iriver.

The Rockbox firmware.
Unlike the Iriver firmware, which runs entirely from flash memory, most of the Rockbox code is contained in a “build” that resides on your player’s drive. This makes it easy to update Rockbox. The build consists of a directory called .rockbox which contains all of the Rockbox files, and is located in the root of your player’s drive.

Apart from the required parts there are some addons you might be interested in installing.

Rockbox can load custom fonts. The fonts are distributed as a separate package and thus need to be installed separately. They are not required to run Rockbox itself but a lot of themes require the fonts package to be installed.
The appearance of Rockbox can be customised by themes. Depending on your taste you might want to install additional themes to change the look of Rockbox.

2.2.1  Automated Installation

To automatically install Rockbox, download the official installer and housekeeping tool Rockbox Utility. It allows you to:

Prebuilt binaries for Windows, Linux and Mac OS X are available at the RockboxUtility wiki page.

When first starting Rockbox Utility run “Autodetect”, found in the configuration dialog (File Configure). Autodetection can detect most player types. If autodetection fails or is unable to detect the mountpoint, make sure to enter the correct values. The mountpoint indicates the location of the player in your filesystem. On Windows, this is the drive letter the player gets assigned, on other systems this is a path in the filesystem.

Rockbox Utility will ask you for a compatible copy of the original firmware. This is because for legal reasons we cannot distribute the bootloader directly. Instead, we have to patch the Iriver firmware with the Rockbox bootloader.

Download a supported version of the Iriver firmware for your Iriver H320 and H340 from the Iriver website, links can be found on IriverBoot.

Supported Iriver firmware versions currently include 1.28K, 1.28EU, 1.28J, 1.29K, 1.29J and 1.30EU.

Note: The US Iriver H320 and H340 firmware is not supported and cannot be patched to be used with the bootloader. If you wish to install Rockbox on a US Iriver H320 and H340, you must first install a non-US version of the original firmware and then install one of the supported versions patched with the Rockbox bootloader.

Warning: Installing a non-US firmware on a US Iriver H320 and H340 will permanently remove DRM support from the player.

If the file that you downloaded is a .zip file, use an unzip utility like mentioned in the prerequisites section to extract the .hex from the .zip file to your desktop. Likewise, if the file that you downloaded is an .exe file, double-click on the .exe file to extract the .hex file to your desktop. When running Linux you should be able to extract .exe files using unzip.

Choosing a Rockbox version

There are three different versions of Rockbox available from the Rockbox website: Release version, current build and archived daily build. You need to decide which one you want to install and get the appropriate version for your player. If you select either “Minimal Installation” or “Complete Installation” from the “Quick Start” tab, then Rockbox Utility will automatically install the release version of Rockbox. Using the “Installation” tab will allow you to select which version you wish to install.

The release version is the latest stable release, free of known critical bugs. For a manual install, the current stable release of Rockbox is available at http://www.rockbox.org/download/.
Development Build.
The development build is built at each change to the Rockbox source code repository and represents the current state of Rockbox development. This means that the build could contain bugs but most of the time is safe to use. For a manual install, you can download the current build from http://build.rockbox.org/.
Archived Build.
In addition to the release version and the current build, there is also an archive of daily builds available for download. These are built once a day from the latest source code in the repository. For a manual install, you can download archived builds from http://www.rockbox.org/daily.shtml.

Note: Because current and archived builds are development versions that change frequently, they may behave differently than described in this manual, or they may introduce new (and potentially annoying) bugs. Unless you wish to try the latest and greatest features at the price of possibly greater instability, or you wish to help with development, you should stick with the release.

Please now go to section 2.2.3 to complete the installation procedure.

2.2.2  Manual Installation

The manual installation method is still available to you, should you need or desire it by following the instructions below. If you have used Rockbox Utility to install Rockbox, then you do not need to follow the next section and can skip straight to section 2.2.3

Installing the firmware

Download your chosen version of Rockbox from the links in the previous section.
Connect your player to the computer via USB as described in the manual that came with your player.
Take the .zip file that you downloaded and use the “Extract all” command of your unzip program to extract the files onto your player.

Note: The entire contents of the .zip file should be extracted directly to the root of your player’s drive. Do not try to create a separate directory on your player for the Rockbox files! The .zip file already contains the internal structure that Rockbox needs.

If the contents of the .zip file are extracted correctly, you will have a directory called .rockbox, which contains all the files needed by Rockbox, in the main directory of your player’s drive.

Installing the bootloader

Installing the bootloader is the trickiest part of the installation. As explained above, we cannot distribute the bootloader directly, and thus need to patch a compatible version of the Iriver firmware, which can be downloaded as described above.

Download the firmware patcher fwpatcher.exe from http://download.rockbox.org/bootloader/iriver/ and save it to your desktop.

Note: The firmware patcher contains Unicode support, which is not supported by all versions of Windows. If you have difficulty with the firmware patcher, try downloading the alternate firmware patcher fwpatchernu.exe, which is built without Unicode support.

Go to your desktop and double-click on the firmware patcher.
In the firmware patcher dialog box, click on the Browse button and navigate to the .hex file that you previously downloaded.
Click Patch. The firmware patcher will patch the original firmware to include the Rockbox bootloader. The .hex file on your desktop is now a modified version of the original .hex file.
Copy .hex to the root folder (the highest level) of your player

2.2.3  Finishing the install

2.2.4  Enabling Speech Support (optional)

If you wish to use speech support you will also need a voice file. Voice files allow Rockbox to speak the user interface to you. Rockbox Utility can install an English voice file, or you can download it from http://www.rockbox.org/daily.shtml and unzip it to the root of your player. Rockbox Utility can also aid you in the creation of voice files with different voices or in other languages if you have a suitable speech engine installed on your computer. Voice menus are enabled by default and will come into effect after a reboot. See section 8.10 for details on voice settings. Rockbox Utility can also aid in the production of talk files, which allow Rockbox to speak file and folder names.

2.3  Running Rockbox

When you turn the unit on, Rockbox should load.

2.4  Updating Rockbox

Rockbox can be easily updated with Rockbox Utility. You can also update Rockbox manually – download a Rockbox build as detailed above, and unzip the build to the root directory of your player as in the manual installation stage. If your unzip program asks you whether to overwrite files, choose the “Yes to all” option. The new build will be installed over your current build.

The bootloader only changes rarely, and should not normally need to be updated.

Note: If you use Rockbox Utility be aware that it cannot detect manually installed components.

2.5  Uninstalling Rockbox

Note: The Rockbox bootloader allows you to choose between Rockbox and the original firmware. (See section 3.1.3 for more information.)

2.5.1  Automatic Uninstallation

You can uninstall Rockbox automatically by using Rockbox Utility. If you installed Rockbox manually you can still use Rockbox Utility for uninstallation but will not be able to do this selectively.

Note: Rockbox Utility cannot uninstall the bootloader due to the fact that it requires a flashing procedure. To uninstall the bootloader completely follow the manual uninstallation instructions below.

2.5.2  Manual Uninstallation

If you want to remove the Rockbox bootloader, simply flash an unpatched Iriver firmware. Be aware that doing so will also remove the bootloader USB mode. As that mode can come in quite handy (especially if you experience disk errors) it is recommended to keep the bootloader. It also gives you the possibility of trying Rockbox anytime later by simply installing the distribution files. Although if you retain the Rockbox bootloader, you will need to hold the Rec button each time you want to start the original firmware.

If you wish to clean up your disk, you may also wish to delete the .rockbox directory and its contents. Turn the Iriver off. Turn the player back on and the original Iriver software will load.

2.6  Troubleshooting

Immediately loading original firmware.
If the original firmware is immediately loaded without the Rockbox bootloader appearing first, then the Rockbox bootloader has not been correctly installed. The original firmware update will only perform the update if the filename is correct, including case. Make sure that the patched Iriver firmware is called .hex.
“-1 error”
If you receive a “-1 error” from the bootloader, then the bootloader cannot find the Rockbox firmware. This is usually a result of not extracting the contents of the .zip file to the proper location, and should not happen when Rockbox has been installed with Rockbox Utility.

To fix this, either install Rockbox with the Rockbox Utility which will take care of this for you, or recheck the Manual Install section to see where the files need to be located.