OpenRUU For Linux And Mac OSX Users September 28th, 2010
The official HTC RUU files are only available for Windows, however if you are using either Linux or Mac OSX there is now a way to run a modified version of the RUU to enable you to update using the same official ROM, just read down through this guide and follow the instructions below.
Caveat: Please read the entire guide before starting and ensure that you fully understand all of the steps. If you are unsure about anything, please ask a question using the comments at the bottom of the post before continuing; it’s better to check first before starting and finding you run into problems. The usual also applies, by following this guide you do so at your own risk, I will not be held accountable for any problems you may encounter along the way.
- Firstly, download and install the appropriate Android SDK for your operating system, both Linux and Mac OSX versions can be found here, this will make sure that you have all the files and drivers necessary on your machine before starting (these will also be useful afterwards so it is a good idea to leave them installed once you have finished).
- Download the OpenRUU file, complete with the necessary ROM from here [mirror].
Next, you’ll need to create your goldcard:
- Backup the data on your microSD card. You may also wish to make a copy of any SMS or MMS messages that are already on your phone, suitable apps can be found on the market to do this.
- If you took out your microSD in the previous step, ensure it is back in your Desire and click through Menu>Settings>SD & Phone Storage.
- Click Unmount SD card.
- Click Format SD card; by doing this from within your phone instead of formatting it from your computer, you will ensure that it is formatted in the correct format.
- Next, download and install ASTRO File Manager from the market if you do not already have it installed. Once it has finished being installed open the application.
- Navigate to sys/class/mmc_host/mmc1/mmc1:82d1 (you may find that ‘82d1’ will be different, this is normal just choose the option that you have available on your device).
- Long press on the CID file.
- Select Open As and then Text.
- Select File Editor.
- You’ll be given a long number, make a note of this somewhere safe.
- Open this page in your internet browser on your computer.
- Enter the number you found in the above steps into the SD Card Serial (CID) field.
- Enter all of the other details that you are asked for and hit Generate Goldcard.
- Check your email on your computer, the goldcard image that you have just created will have been sent to you as an attachment. Save this into the root of your user directory, it’s important that you do not save it anywhere else.
- Connect your Desire to your computer.
- Pull down the notification bar on your Desire and press Charge Only (if you have previously changed the default option this may be different, i.e. HTC Sync).
- Select the Disk Drive option and hit Done.
- On your computer, open Terminal which can be found by clicking through Applications>Utilities>Terminal (depending on which operating system you are using the location of Terminal will vary)
- Type the following:
diskutil list - You should be able to see your microSD card; you can recognise it from its size and by the fact that its type is DOS_FAT_32. You need to make a note of the Identifier for example disk2s1.
- Now you need to unmount the microSD, assuming your Identifier was disk2s1 (change the value ‘2’ based on the number you got after the word ‘disk’) enter the following:
diskutil unmountDisk /dev/disk2 - Finally, to actually create your goldcard type:
sudo dd bs=512 if=~/goldcard.img of=/dev/disk2(remembering to change the ‘2’ if appropriate) - When prompted, you’ll need to enter your password.
That’s the goldcard created, and the hard work out of the way. At this stage, double check that anything on your device that you wish backed up has been, as in the following stages you will flash your Desire with a new ROM and wipe any data in the process, then when ready proceed with the next stage:
- Extract the OpenRUU archive that you downloaded earlier.
- Run 2FastbootFlash-xxx.sh, where xxx represents the operating system that you are using; either Linux or Mac OSX (based on the Linux version, to run the file you will need to ensure that the file is executable. To do this, right click the file and clicking through Properties>Permissions, tick to allow executing file as a program. Then simply double click the file and choose Run in the popup allowing it to run within Terminal).
The RUU should now run and after a few minutes you will be finished. Any questions leave a comment below.
Credits: Thanks to 42turkeys for the tools and scripts used in this guide.
Tags: android, Desire, google, htc, linux, osx, ubuntu
This entry was posted on Tuesday, September 28th, 2010 at 4:00 pm and is filed under Android OS, Apple, Blah, Desire, Google, HTC, Linux, Linux Mint, Mac OS X, Technology Related, Ubuntu. You can follow any responses to this entry through the RSS 2.0 feed.You can leave a response, or trackback from your own site.
7 Responses
Julian Says:
Mike
I used this method as I continually get the USB connection error when using the Windows method under Bootcamp on my Mac. The gold card part went fine originally, so do I still need to follow the gold card instructions above (ie is the fact that I previously created a gold card sufficient, or does OpenRUU require it to be created using this method?).
I attempted to follow the instructions above (minus the gold card bit). Struggling quite a bit. When running OpenRUU I get a message telling me that the script cannot be found – even though it is there (and in the path/folder listed in the error message).
I’m stumped! Grateful for any further help.
Timi Says:
hi Julian, have you unziped the package fully before running?
i have checked the script file in a text editor and all it does sends a fast boot command.
you shouldn’t need to create a gold card again. but if you wish to you can, back up your SD CARD data before that. and format and try the above and see if you get a different CID number.
the above problem you mention isn’t related to the gold card julian.
Mike Southby Says:
@ Julian, are you still having issues or have you managed to get this sorted now?
Roberto Cardona Says:
HI MIKE. I AM FROM SPAIN. I´M SORRY FOR MY BAD ENGLISH. I HAVE A TROUBLE WITH MY HTC DESIRE ORANGE BRANDED. I DID ROOT A FEW WEEKS AGO, AND I WANT TO UNROOT. I´VE FOLLOWED THE TUTORIAL OPEN RUU FOR MAC USERS ( I USUALLY WORK WITH OS X ). I DOWNLOADED THE ANDROID SDK FOR MAC, BUT WHAT I HAVE TO DO WITH IT ?. AT THE MOMENT I MOVED THE RUU.ZIP TO THE GOLD CARD AND DONE A HBOOT AND I FOLLOW WITH THE ROOT ICON IN MY APPs. THANK YOU.
Timi Says:
@ Roberto
can you explain which problems you have?it maybe the custom rom you are using or an incorrect radio or something along the lines.
just a warning, you will lose root and go back to official htc, but more important your phone will be wiped like factory so back up your data!
you extract the files you orignally download. in there will be a script called 2FastbootFlash-mac.sh
run that script. run that script and let the phone run the process :)
Roberto Cardona Says:
TIMI, THANK YOU FOR ANSWERING ME. THE QUESTION IS: WHAT I HAVE TO DO WITH THE ANDROID SDK , AFTER DOWNLOADING IN MY MAC ?.
THANKS.
Will Says:
Hi thanks for compiling this. Not sure if you’re still offering assistance but I’m having the same trouble as Julian. (I’ve been having trouble with my HTC Desire and wanted to flash it using my Mac.)
I think the goldcard bit went OK but when I try to run 2fastboot I get the eror message “OpenRUU/2FastbootFlash-Mac.sh: line 45: scripts/mac/1desire.sh: No such file or directory”
I looked in the scripts and same as Julian found, it’s there. I unzipped it all. No idea why it won’t work. I did notice it says at the top of the RUU window “Open RUU Version 1.1.2-LINUX” even though I opened the Mac version?
Any further help would be greatly appreciated!