release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Search | Go
Wiki > Main > SanDisk > SansaE200Port > SansaE200R > SansaE200RInstallation > SansaE200RBootloaderPatching (r8)

Sansa E200R? Bootloader Patching

Introduction

This page describes the process of patching the original Sandisk bootloader on your E200R? to enable it to run third-party code such as Rockbox. This process is a pre-requisite for installing Rockbox on your device.

Easier methods to perform this step are currently under development, but currently it can only be performed with the e200tool application.

Bootloader Patching in Linux

Pre-requisites

The following are instructions for performing the bootloader patching in a native Linux environment. These instructions will tell you what to do in order and include the exact commands inside parentheses after the instructions. Follow these instructions EXACTLY or you will encounter problems. You need to be root to do this. If the command prompt has a "#" character, then you are root.

Step 1 - Download the required files

Step 2 - Enter recovery mode using a vanilla E200 bootloader

  • Place your Sansa into manufacturing mode. To do this, power your device off, turn the hold switch on, hold the center button, and plug the cable in. If you are in manufacturing mode, the wheel will light up and the screen will be off.
  • Type this into the prompt, but do not execute it yet: (./e200tool recover BL_SD_boardSupportSD.rom)
  • Hold the Record button on your device and continue to hold it till you are told to release it.
  • Execute the command you typed above. You should see text about something being written to the device followed by "Execution started" when it is done.
  • After a few seconds, your device should be in Recovery Mode. It will say those words across the top of the screen. You can now release the Record button.

Step 3 - Upload the patched bootloader to your Sansa

  • Rename BL_SD_boardSupportSD.rom to doneBL_SD_boardSupportSD.rom (mv BL_SD_boardSupportSD.rom doneBL_SD_boardSupportSD.rom)
  • Rename BL_SD_boardSupportSD.btl-modified to BL_SD_boardSupportSD.rom (mv BL_SD_boardSupportSD.btl-modified BL_SD_boardSupportSD.rom)
  • Mount your device. The instructions for this can vary according to which /dev/ was assigned to it. The thing most likely to change is "/dev/sda" to "/dev/sdb" or "/dev/sdc", etc. (mount /dev/sda ~/sansa/mnt) You can verify that the device was correctly mounted by going into the mnt directory and double-checking that version.txt is inside.
  • Copy BL_SD_boardSupportSD.rom to the device. (cp BL_SD_boardSupportSD.rom ~/sansa/mnt/)

Step 4 - Finish up

  • Unmount your device. (umount ~/sansa/mnt)
  • Turn off hold, unplug your sansa, and verify that the screen on your device says something about a new bootloader. Your device will then boot into the Rhapsody firmware.

The bootloader patching process is now complete. You can now proceed to perform the actual Rockbox installation.

Bootloader Patching in Windows

NOTE: Bootloader patching in Windows is even more difficult than in Linux. Do NOT perform these steps unless you know EXACTLY what you are doing (especially with drivers).

Step 1 - Download required files

Step 2 - Set up the drivers

  • Connect your Sansa in manufacturing mode (turn on hold and then hold down the center button while connecting USB cable).
  • If you are not prompted to install drivers, go to Hardware Manager and right-click "USB Mass Storage Device" and click "Update drivers"
  • Using the wizard, tell Windows to install the drivers from a specific location, and tell it the location that you unzipped e200tool.zip (e.g. C:\e200tool). Then, tell Windows to install "0781-0720.inf".
  • When prompted, tell Windows where libusb0.sys and libusb0.dll are located (they will be in the bin folder of your libusb folder, e.g. C:\libusb\bin).
  • Now, open up a command prompt, enter cd c:\e200tool_dir (where e200tool_dir is where you unzipped e200tool.zip).
  • Now, execute e200tool recover BL_SD_boardSupportSD.rom
  • When prompted, install "0666-E200.inf" the same way you installed "0781-0720.inf".
  • Now, disconnect your Sansa, shut it off by holding down the power button for 15 seconds (if it doesn't work, wait a little bit, and try again), and reconnect it in manufacturing mode again.

Step 3 - Boot into vanilla bootloader

  • Now, open up a command prompt, enter cd c:\e200tool_dir (where e200tool_dir is where you unzipped e200tool.zip).
  • Now, execute e200tool recover BL_SD_boardSupportSD.rom while holding rec on the Sansa until it boots into recovery mode.

Step 4 - Install the patched bootloader

  • Next, go into Hardware Manager and right-click "USB Device" under "LibUsb-Win32 Devices" and select "Uninstall"
  • Right-click "Universal Serial Bus controllers" and select "Scan for hardware changes", and Windows will reinstall the normal USB Mass Storage driver
  • Now, copy "BL_SD_boardSupportSD.btl-modified" (it will be found in the folder where you unzipped e200tool.zip) to you Sansa (e.g. E:\) and rename it to "BL_SD_boardSupportSD.rom".
  • Now safely disconnect your Sansa. If it tells you about writing a new bootloader you have succeeded. You can now proceed to perform the actual Rockbox installation.
I Attachment Action Size Date Who Comment
e200tool.zipzip e200tool.zip manage 935.2 K 08 Oct 2007 - 00:34 AlexZajac  
Edit | Attach | Print version | History: r10 | r9 < r8 < r7 < r6 | Backlinks | View wiki text | More topic actions...
r8 - 08 Oct 2007 - 23:45:39 - AlexZajac
Copyright by the contributing authors.