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



Search | Go
Wiki > Main > H10InstallationBeta? > AutomaticFirmwareDecryption (r1)
Bash script (Linux) to automatically decrypt the original firmware (OF) from iriver for dual-booting.

Be sure to change the two variables :
  • h10 : Path to the H10 UMS mount point
  • fw_orig: Name of the orignal firmware to decrypt


#!/bin/bash

h10=/media/H10
fw_orig=H10_Original.mi4

cd /tmp
mkdir mi4code
cd mi4code
wget http://daniel.haxx.se/sansa/mi4code.c
gcc -o mi4code mi4code.c -lgcrypt

iriver_fw=`grep -i rockbox $h10/System/$fw_orig`
if [[ "$iriver_fw" != "" ]]; then
    echo "FAILED - File $h10/System/$fw_orig is present but"
    echo "it is not orignal Iriver firmware!"
    echo "Please be sure that $h10/System/$fw_orig"
    echo "is the original (crypted) firmware"
    exit
else
    ./mi4code decrypt -s $h10/System/$fw_orig $h10/System/OF.bin
fi


Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | View wiki text | More topic actions...
r1 - 17 Feb 2007 - 17:54:37 - NicolasBigaouette?

Parents: H10InstallationBeta?
Copyright by the contributing authors.