Rockbox Technical Forums
Installation / Removal => Manual Installation => Iriver - Installation/Removal/Flashing => Topic started by: psycho_maniac on January 11, 2007, 10:26:43 PM
i figured there'd be stickies about this sorta sutff (install/uninstall/flash/unflash) but no. i looked it up in the wiki but didn't understand it. how do i restore my iriver to the original firmware? i have the iriver 120.
Restoring the original firmware
If you want to restore the original firmware, you can do so by using a file from either one of these methods:
* Convert an original firmware provided by iRiver from ihp_120.hex to ihp_120.bin
* Use an existing flash rom backup image file
To restore the flash contents of the firmware section (bootloader will be always kept untouched, however we need to re-flash the critical reset vector sector), open the file from either one of the previously mentioned methods by iriver_flash and the contents of the original firmware section will be restored from the file.
so, you've given us the instructions but didn't tell what you didn't understand. While I haven't done this process yet I don't find anything ununderstandable. Unless you you tell us more details: my crystal ball is on vacation.
could you dummy it down for me? do i just replace the .hex file ?
how do i do this "Convert an original firmware provided by iRiver from ihp_120.hex to ihp_120.bin" and i dont get what this means, "To restore the flash contents of the firmware section (bootloader will be always kept untouched, however we need to re-flash the critical reset vector sector), open the file from either one of the previously mentioned methods by iriver_flash and the contents of the original firmware section will be restored from the file."
It means you need to decrypt the provided .hex file to unscrambled .bin format. To do that, you can checkout Rockbox SVN, and compile the tools/ -directory where you can found a program called descramble. That can do the conversion. We can't distribute the original firmware file because of copyright reasons, so it would be easier to use the backup file of the internal ROM if you took it earlier. If you are still unsure how to do it, please come to IRC.
This is, however only neccesary if you have flashed _rockbox_ (not just the bootloader) if you just have the bootloader flashed, get a clean copy of the original firmware .hex and boot into iriver firmware and "upgrade firmware" your rockbox bootloader will be gone without a trace. (Now, why you want to do this is another question :P)
I actually spent a lot of time figuring out how to convert the hex to a bin file (using cygwin), and I've now successfully done that with both the virgin Iriver 1.66US and a firmware flashed Iriver 1.66US. Neither one will restore itself using iriver_flash. I always get the message "Not an original firmware file." Do I need to flash down from the bootloader V7-pre3? Am I missing some important step? The problem is I don't have a dump of my original setup that I can find. Thanks.
OK, I figured out what I was doing wrong.
For anyone else who wants to do this, follow the instructions to install Cygwin and build your svn download of rockbox. (Or you could try to contact me for a copy of my saved ihp_120.bin.)
Place a copy of the Iriver original (NOT patched) firmware in the /rockbox/tools directory.
From a standard command prompt screen within Windows (Start/Programs/Accessories/Command Prompt) go to that same directory -- ...cygwin/rockbox/tools -- and issue the command (no quotes) "descramble -iriver ihp_120.hex ihp_120.bin". (If you get an error about missing cygwin1.dll [I did, but I had one botched installation of cygwin], find that file in the cygwin/bin directory and copy it to your /windows/system32.)
Copy your ihp_120.bin to your player in the root directory - the same place where you already probably have a patched ihp_120.hex and your bootloader.
Boot the player normally into Rockbox (I followed the instructions and made sure no music was loaded on boot - I just went straight to the file view of the root directory). If you haven't done this already, make sure to first boot the player with the HOLD switch on and follow the prompts to set the default to boot from disk (not RAM or ROM), then reboot.
If you don't see your ihp_120.bin file in the root directory, go into the player options using A-B/General Settings/File View/Show Files and select All.
Go back to the root directory, navigate over the file ihp_120.bin, press and hold the NAVI button then select Open With ..., then select iriver_flash, then press the NAVI button and finally press Play to start the firmware flash back to Iriver.
Now, with the patched ihp_120.hex still in your root folder (or put one there), you can still boot into Rockbox or back to the original firmware by holding the REC button when turning it on.
You can delete the ihp_120.bin from the root directory and also go back into A-B/General Settings/File View/Show Files and select Supported to hide unplayable files from view.
Btw , you don't need to use cygwin to do this. Â The code in the "descramble" tool is based on the original tool that I wrote for win32 in the first place Â ;) Â Â Just download it from here (it should be self explanatory to use from command prompt under windows)
Ive been trying to do this with a used player I bought, because I am pretty sure the flash is corrupted (random error codes, codec failures, etc. keep happening. Even with diff hard drives and rockbox installs).
I followed all the instructions but I still cant get this done. I got the program in the last link and ran it with "-d" but nothing happens...I could really use a "restore for dummies" guide on this :(
It anyone can help it would be much appreciated!
Nevermind, a very nice person found me the file on another forum. Here it is for anyone needing to restore their player to factory:
Long live ihp-120 8)
Hello, I have the same problem with my H140. After this step:
Go back to the root directory, navigate over the file ihp_120.bin, press and hold the NAVI button then select Open With ..., then select iriver_flash, then press the NAVI button
I have the error "NOT FROM ROM"
How to restore the original firmware in the ROM. Please help!