HP iPAQ 210 / 214 - Flash

Home | How-To Install | Downloads | News | Developers' Info | Hardware | Wifi | Flash |

Below are the instructions to create a complete backup of the existing flash and to put linux on your device permenantly. In theory, recovering the backup at a later date will recover windows CE and I have managed to do this successfully on my own device now. However, if the flash chip develops bad blocks between flashing linux or re-flashing winCE the recovery may not work.

At no point in this proceedure is the first stage boot loader (called the OEM Boot Module/OBM) overwritten and both the U-Boot and Linux here have low-level safeguards to stop it being overwritten. This means that you should always be able to boot linux from the MMC card and so it shouldn't be possible to 'brick' the device completely.

Having said this, the instructions listed here are for information only and so anything you do with your own equipment is at your own risk.

First, you will need to follow the instructions on the How-To Install page so you are able to boot from the MMC card. You will need to do this using the March 2009 or later U-Boot bootloader and kernel files. Operating the flash after booting from winCE (HaRET) is not supported because you can't be sure of state of flash without a full reset.

Creating a Backup

To backup the existing flash you will need to be booting from an MMC card with enough free space (after copying the rootFS onto it) to hold the 256MB flash image.
  1. Reboot the iPAQ and select option 2 from the bootloader menu. The iPAQ should appear to boot linux from the MMC card as normal.

  2. Log-in and start a root shell/terminal.

  3. Type 'cat /proc/mtd' and check that the output looks like the following:

  4. Type the following to copy the entire flash to a file:

  5. Shutdown linux and copy the saved flash file from the MMC card to somewhere safe.

Flashing Linux

  1. Download the latest UBI image file to somewhere on your MMC card.

  2. Reboot the iPAQ and select option 3 from the bootloader menu. The iPAQ should appear to boot linux from the MMC card as normal.

  3. Log-in and start a root shell/terminal.

  4. Type 'cat /proc/mtd' and check that the output looks like the following:

  5. Type the following commands to erase the 3 required partitions. Be careful to get the numbers correct.

  6. Type the following to flash U-Boot to partition 3:

  7. Type the following to flash the kernel U-Boot image to partition 3:

  8. Type the following to flash the RootFS image.

  9. If you want to test it at this point, or add files to the rootFS on the flash, you can mount it as follows:

  10. Reboot the iPAQ without holding the two buttons and U-Boot should appear.

  11. Remove the MMC card and select option 4 to boot entirely from flash.

Recovering the Backup

WARNING: While this should work and has been shown to work, it remains possible that you will not be able to recover winCE with this backup proceedure. If this happens, get it contact on the mailing list and I'll see if I can help.

NOTE: Make sure you have the latest version of U-Boot for this.

  1. Copy the flash backup file e.g. 'flash-backup.bin' to the MMC card.

  2. Boot the iPAQ and select option 2 from the bootloader menu. The iPAQ should appear to boot linux from the MMC card as normal.

  3. Log-in and start a root shell/terminal.

  4. Type 'cat /proc/mtd' and check that the output looks like the following:

  5. Type the following to erase the flash:

  6. Type the following to write the backup image to flash: