Rockbox.org home
releases
current build
extras manual
wiki
index mailing lists
IRC
forums bugs
patches
 requests



TWiki > Main > GigabeatSPort > GigabeatSInstallation
Main . { Users | Groups | Changes | Index | Search | Go }

Gigabeat S Installation

NOTE: Rockbox for the Gigabeat S is still in the early stages of development, and there is a good chance things won't go smoothly when you try to install using these instructions. If you are not confident that you can undo any changes to your Gigabeat, then you may wish to wait until Rockbox is more stable on the Gigabeat S

Background

When running the original Toshiba firmware (a version of Windows CE), it is only possible to connect the Gigabeat S to a PC in "MTP mode", which hides the actual content of your Gigabeat's disk and provides restricted access to its contents.

In reality, the Gigabeat S's hard disk contains two FAT32 partitions - a small (150MB) "firmware partition" containing the Gigabeat's firmware (operating system), and a second "data partition" containing your media files. The main firmware file in the bootloader partition is called "nk.bin", and this is the file that is loaded into RAM (by the Gigabeat's ROM-based bootloader) and executed when your Gigabeat is powered on.

There are two ways to install Rockbox onto your Gigabeat:

  • "single-boot" - you will lose access to the original Toshiba firmware;
  • "dual-boot" - the original firmware remains accessible and you can choose which one will run

Single-boot installation involves replacing the original nk.bin file (stored in the firmware partition) with a new nk.bin containing only the Rockbox bootloader. Dual-boot installation involves adding the Rockbox bootloader into the original firmware's nk.bin file.

Rockbox itself consists of many files (contained within a folder called ".rockbox"), and that is installed on the main data partition on your device.

Installation

In order to install Rockbox for the first time, you will need to perform either Step 1a or Step1b, followed by the remaining steps. Upgrading Rockbox in the future will just involve Step 3A.

Step 1a - Bootloader installation (single-boot version)

This step involves replacing the original firmware nk.bin with an nk.bin file containing only the Rockbox bootloader. Currently there is no official Rockbox release for the Gigabeat S, so you will need to set up a Rockbox development environment and compile the latest bootloader using the source code available from SVN.

After doing this, you will have a file called nk.bin in your bootloader build directory. This is installed as follows:

A) Compile the sendfirm utility

The sendfirm utility is used to upgrade the firmware in an MTP device. It can be found in the utils/MTP directory in the Rockbox source tree and requires both libusb and libmtp (and their development packages) to compile and use. This utility can only be used from Linux - a Windows equivalent is in development.

To compile, just type make in the utils/MTP directory.

B) Install the bootloader

To install the bootloader, attach your Gigabeat to your PC and run the following command from within your bootloader build directory:

../utils/MTP/sendfirm nk.bin

After a successful installation, your Gigabeat will immediately reboot and (because it is still connected to your PC) enter the Rockbox bootlaoder's "USB Mass Storage" mode, which exposes your Gigabeat's disk to your computer as a standard USB Mass Storage device.

Step 1b - Bootloader installation (dual-boot version)

[To be completed - there is currently no source for the required original firmware =nk.bin=]

Step 2 - Fix your Gigabeat's partition table

The factory-standard partition table on your Gigabeat's disk is technically invalid, and the Linux kernel (and maybe other operating systems) rejects it. To fix this, you need to use the fdisk utility to correctly set the "bootable flag" field to a valid value (it doesn't matter if this is true or false).

Assuming your Gigabeat is appearing as /dev/sdz (the output of the dmesg command will show the log messages including the device node assigned to your Gigabeat), type the following:

fdisk /dev/sdz
a
1
a
2
w

After exiting fdisk, you may need to unplug and then reattach your Gigabeat in order for it to be recognised by your computer.

You can now proceed to step 3.

Step 3 - Main Rockbox installation

When your Gigabeat is in the Rockbox bootloader USB mode, you will see two visible partitions - the 150MB firmware partition (containing at least a file called nk.bin) and the main data partition. Rockbox MUST be installed onto the main data partiton.

A) Install the main Rockbox build

The latest "Current build" of Rockbox for the Gigabeat S (built automatically after every commit of code to Rockbox's SVN repository) is available here:

http://build.rockbox.org/dist/build-gigabeats/rockbox.zip

This is installed by extracting the contents of the zip directly to the root (top-level) of your Gigabeat's main data partition. Do not extract it to the same drive as the nk.bin file.

B) Install the Rockbox fonts and extras

The first time you install Rockbox, you should also install the Rockbox fonts. These are available from the RockboxExtras page and each zip file is installed in exactly the same way as the main Rockbox zip - extracting it to the root of your Gigabeat's main data partition.

Step 4 - Read the manual

A work-in-progress manual (updated nightly) for the Gigabeat S is available online or as a PDF file.

Recovery Mode

TODO: Add description of recovery mode.

TODO: How can a user uninstall Rockbox? We need a source for the original nk.bin...

r2 - 10 May 2008 - 16:40:08 - DaveChapman
Edit | View raw | Attach | Ref-By | History: r2 < r1 | More | Refresh cache

Parents: GigabeatSPort

Copyright © 1999-2008 by the contributing authors.