Porting Clockwork Recovery to our Garminfone
Wednesday, May 11, 2011 11:53 AM
Posted by kthksdie
Follow my post about Creating your Environment for CyanogenMod.
Once you've finished that, you're ready to begin.
Also take note that I'm switching in between host OS and virtual machine OS.
Windows 7 Pro is my host, while Ubuntu 11.04 is on a VM. Assume I'm using Ubuntu if I haven't specified I'm on Windows.
Getting Started
Gathering the Required Files$ cd /home/<USER>/Android/CyanogenMod/$ make -j<number of processor cores + 1> otatools
We'll be using Windows for these next steps.
- Go here http://android.podtwo.com/romdump/.
- Download romdump_v72.zip.
- Extract romdump_v72.zip
- Copy romdump_v72/install to the root of your Garminfone's sd card.
# cat /sdcard/install > /data/local/install# chmod 04755 /data/local/install# /data/local/install
Android ROM dumper v0.72b
(c)2010 Sebastian404
romdump installed.
# /system/bin/romdump
Let it finish, it will take a minute or two.Android ROM dumper v0.72b
(c)2010 Sebastian404
Device : ERE27
Creating required files... done.
Opening mtd table... done.
Dumping kernel config... done.
Dumping boot partition... done.
Dumping recovery partition... done.
Dumping system partition... done.
Creating Checksums... done.
Cleaning up... done.
All done.
The files we need will be on the sd card of our Garminfone.
/sdcard/romdump/ERE27/Copy the folder ERE27 to our Ubuntu environment...
/home/<USER>/Android/Creating the Recovery
Back into Ubuntu for these steps.
So, before we run makerecoveriers.sh. We have to make a correction real quick.$ cd /home/<USER>/Android/CyanogenMod/$ PATH=/home/<USER>/Android/CyanogenMod/out/host/linux-x86/bin:$PATH$ . build/envsetup.sh$ build/tools/device/mkvendor.sh garmin-asus a50 /home/<USER>/Android/ERE27/boot.imgOutput will be in /home/<USER>/Android/CyanogenMod/device/garmin-asus/a50
Done!
Use the following command to set up your build environment:
lunch full_a50-eng
And use the follwowing command to build a recovery:
. build/tools/device/makerecoveries.sh full_a50-eng
$ lunch full_a50-eng
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=full_a50
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
Browse to /home/<USER>/Android/CyanogenMod/build/tools/device/ and open mkrecoveryzip.sh. Look for darwin-x86 and replace with linux-x86. Save and close.
$ . build/tools/device/makerecoveries.sh full_a50-engYou should see this
Recovery FakeFlash is now available at /home/<USER>/Android/CyanogenMod/out/target/product/a50/utilities/update.zipNow we have what we need, all in /home/<USER>/Android/CyanogenMod/out/target/product/a50. update.zip and recovery.img.
With that said and done. I haven't found a way to apply the update.zip, but I have found an alternitive method to getting us booting into clockwork recovery. That's for my next post though... =)
This entry was posted on 11:53 AM, and is filed under
. Follow any responses to this post through RSS. You can leave a response, or trackback from your own site.
Subscribe to:
Post Comments (Atom)
May 12, 2011 at 10:32 AM
Wow finnaly someone making progress on this phone good job
May 12, 2011 at 11:32 AM
Uh oh.. prob. The recovery is def working I think I accedently erased either system or boot. Now all I get is booting straight into "into fastboot" blue screen
May 12, 2011 at 1:09 PM
You have to be really careful with this fone. I've had to get it replaced 4 times.
May 14, 2011 at 5:31 PM
It's awfully difficult to reproduce your steps if they are incomplete... I run Fedora over here, and if you let me know your alterniitive method of getting into Clockwork Recovery, I may or may not be able to figure out how to get the Garminfone logo to go away ;)
May 14, 2011 at 5:45 PM
You'll have to figure out how to setup the recovery.fstab, so that clockwork recovery will find the cache partition(I managed to trick it into seeing the 'storage' partition as cache and it worked, just don't perform a backup, it'll backup the storage partition which holds garmin's maps.)
After you do that, just flash_image the recovery.img we create in /home//Android/CyanogenMod/out/target/product/a50 to the recovery partition then adb reboot recovery. I'll post a how-to in a few days on the flash_image part, but it's all here http://wiki.cyanogenmod.com/index.php?title=Flash_image
Be very careful, this fone is easily briked, it's done it for me 4 times so far.
for additional help on this whole process, http://www.koushikdutta.com/2010/10/porting-clockwork-recovery-to-new.html
May 16, 2011 at 3:14 AM
Be very careful tho. I did get the recovery flashed and with the image in the way somehow accidentally deleted my boot partition and now will only boot up into blue screen saying "into fastboot" which there I can only get a few commands to work and no idea what to do. any ideas would be much appreciated
May 16, 2011 at 5:05 AM
What commands can you get working? And what OS are you using? I'm on Win7x64 and I can't get any fastboot commands.
May 16, 2011 at 1:59 PM
Well not hardly anything really
fastboot -i 0x091E
is as far as I can get.
It will take some of the commands but it will also hang on others I tried booting boot.img but it just hangs at downloading boot.img
So as of now My garminfone if I boot it up will go straight into "into fastboot" screen
If I hold up on the dirctional pad I get into "into usb polling"
If I hold directional left I get the "wipe user data" in the top left of the screen but it also just hangs there
So Ive got a big old brick
Unless I can somehow flash that update for 2.1 via fastboot or usb polling some how :\
May 16, 2011 at 2:01 PM
fastboot 0x091E reboot boot-loader
also running windows 7 86
May 16, 2011 at 2:04 PM
I wouldn't give up just yet.
Everytime I bricked my fone, it would always get stuck at boot(with the android guy in the corner). I could only get into USB POLLING MODE and get stuck in WIPE USER DATA.
So if it's tossing you into fastboot we might be able to save it... I don't know but I'll poke around with my fone sometime tomorrow.
May 16, 2011 at 3:54 PM
How did you fix that when only usb polling worked and wipe data hangs ???
Tmobile sending out another one in 7 days
May 16, 2011 at 4:13 PM
does it work with a10 too?
May 18, 2011 at 7:09 AM
I never figured out how to get it fixed. Besides calling tmo and getting a replacement.
June 3, 2011 at 3:59 AM
You'll have to figure out how to setup the recovery.fstab, so that clockwork recovery will find the cache partition(I managed to trick it into seeing the 'storage' partition as cache and it worked, just don't perform a backup, it'll backup the storage partition which holds garmin's maps.)" by MontuZ
How did you fix that? can you tell me the steps?
Thank You
June 3, 2011 at 8:05 PM
Set the path for the cache partition to the storage partition in your recovery.fstab:
/dev/block//vold/179:1
July 14, 2011 at 9:27 PM
It would be great to see the A50 confirmation on ROM Manager when installing Clockwork Recovery on the phone...ugh very frustrating to free up memory.
March 25, 2012 at 7:55 PM
Can anybody unbrick garminfone like described by Adam?