Garmin-Asus M10 dual booting with android Garmin-Asus A10 ROM

Search This thread

aaaku

Member
Nov 12, 2010
18
0
Bangalore
How I extracted the file: I cooked up some custom java code to extract the files. The update file format is not generic. One peice to identify file boundardies and one to extract the file at a certain location.

cht900, Nice research. I tried using the patched haret.exe posted in the forum. Now I see a blank screen. But looks like something starts loading and then freezes. I could not find anything that relates to rootfs.img. There was only one fs image.

Please post if anyone made a headway.
 

gopalr

New member
Feb 3, 2010
4
0
pls do it guys....i also own a m10...and would love to run android on it...for all the cool apps that are offered by the android os.
 

grumpyhare

Member
Dec 28, 2010
5
0
Image extraction tool

Hello,

Here is a small Python script that extracts the files from a raw image:


#!/usr/bin/env python

from struct import *
import re
import sys

if __name__=="__main__":
try:
imageFile = open(sys.argv[1], "r")
except IndexError:
print "Usage:"
print sys.argv[0], "<file>"
print
print "Example:"
print sys.argv[0], "A50_SR2_2_PACKAGE.raw"
sys.exit(1)

OFFSET= 0x1f0
buffer = imageFile.read()
while True:
entry= unpack_from('<24sLL', buffer, OFFSET)
try:
name =re.search(r"(\w+\.\w+)", repr(entry[0])).group(1).strip()
offset= entry[1]
size=entry[2]
print "name=%24s offset=%08d size=%012d" % (name, offset, size)
except AttributeError:
print "Ready!"
break
temp = open(name, "w")
temp.write(buffer[offset:eek:ffset+size])
temp.close()
OFFSET=OFFSET + 0x20


Using it I was able toget access to the content of the ext3 image.

My final goal is however not to portAndroid on a WinMo device but rather to install Garmin navigation app on another device. Any hints?

GrumpyHare
 

Attachments

  • unpackGarminImage.7z
    628 bytes · Views: 499
Last edited:

Arteria

New member
Feb 13, 2008
1
0
I pray and waiting that you will find solution for this hard task!!!
and beholden for that you began to understand with it!
 

grumpyhare

Member
Dec 28, 2010
5
0
Have you used the script?

Here is the output on my system:

nilu@marauder:/local/home/nilu/x$ ./unpackGarminImage.py A50_SR2_2_PACKAGE.raw
name= partition.mbn offset=00001024 size=000000000464
name= qcsblhd_cfgdata.mbn offset=00002000 size=000000010420
name= qcsbl.mbn offset=00012932 size=000000057328
name= oemsbl.mbn offset=00070772 size=000000917360
name= amss.mbn offset=00988644 size=000019783720
name= appsboot.mbn offset=20772876 size=000000054604
name= apps.mbn offset=20827992 size=000003414056
name= recovery.img offset=24242560 size=000004315136
name= system_ext3.img offset=28558208 size=000268435456
Ready!
nilu@marauder:/local/home/nilu/x$ ls -al
total 580088
drwxr-xr-x 2 nilu nilu 4096 2011-01-11 20:56 .
drwxr-xr-x 56 nilu nilu 4096 2011-01-11 20:55 ..
-rw-r--r-- 1 nilu nilu 296994176 2010-10-25 17:38 A50_SR2_2_PACKAGE.raw
-rw-r--r-- 1 nilu nilu 19783208 2011-01-11 20:56 amss.mbn
-rw-r--r-- 1 nilu nilu 54092 2011-01-11 20:56 appsboot.mbn
-rw-r--r-- 1 nilu nilu 3413544 2011-01-11 20:56 apps.mbn
-rw-r--r-- 1 nilu nilu 916848 2011-01-11 20:56 oemsbl.mbn
-rw-r--r-- 1 nilu nilu 0 2011-01-11 20:56 partition.mbn
-rw-r--r-- 1 nilu nilu 9908 2011-01-11 20:56 qcsblhd_cfgdata.mbn
-rw-r--r-- 1 nilu nilu 56816 2011-01-11 20:56 qcsbl.mbn
-rw-r--r-- 1 nilu nilu 4314624 2011-01-11 20:56 recovery.img
-rw-r--r-- 1 nilu nilu 268434944 2011-01-11 20:56 system_ext3.img
b-rwxr-xr-x 1 nilu nilu 784 2010-12-29 11:25 unpackGarminImage.py
 

grumpyhare

Member
Dec 28, 2010
5
0
That is a ext3 image.
On a linux, as root, you can launch:

mount -t ext3 -o loop system_ext3.img /mnt

Then go to the /mnt directory and there is the content of your image.
 

bearfat

New member
Jan 2, 2011
4
0
That is a ext3 image.
On a linux, as root, you can launch:

mount -t ext3 -o loop system_ext3.img /mnt

Then go to the /mnt directory and there is the content of your image.

thanks for your answer

I tried it before.
error:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

dmesg | tail : VFS: Can't find ext3 filesystem on dev loop0.
 

grumpyhare

Member
Dec 28, 2010
5
0
Please try to change in the script the line

temp.write(buffer[offset:eek:ffset+size])

into

temp.write(buffer[offset+512:eek:ffset+size])

Then run the command:

file system_ext3.img

It should detect now correctly the file as being an ext3 image and output its UUID
 

bearfat

New member
Jan 2, 2011
4
0
thanks again.

$./(changed in the scrip).py system_ext3.img
Ready!
$file system_ext3.img
system_ext3.img: data

I still can't mount it.
 

bearfat

New member
Jan 2, 2011
4
0
I misunderstand.

I got it.

file system_ext3.img
ext3 filesystem data and UUID

thank you very much
 

chemicalbuz

Senior Member
Dec 29, 2010
170
17
sorry guys do you have an A 10 original rom? because i did some mistakes and i need it to restore the phone. Unfortunatly i can't go in recovery mode, but only in fastboot mode, do you know how can i backup and restore with adb and fastboot?
can you give me a link to a10 rom? thanx
 

siddhantfriends

Senior Member
Jan 1, 2011
56
23
Asus Garmin M10 Android

Thanks for all the tips guys. Just managed to extract the following files from the update package:

system_ext3 file system image:
hotfile.com/dl/83156994/76dbe38/system_ext3.img.zip.html

recovery.img and the extracted components:
hotfile.com/dl/83167576/975a3e1/recovery.img.d.zip.html

the recovery.img package contains the extracted contents as well, thanks to split_booting.pl posted on the other forum.

Did not bother extracting the other files in the update package. Not sure if they are important.

Disclaimer: There was no licence when I downloaded the original file. I own an M10 and so I hope I have the right to do whatever I am doing. You are responsible to check your own license rights.

Trying to put these together with haret next.

hey dude
the files u listed were deleted
n did u find any success in dual booting android on M10? by SD card or anythin
if it is successful link me to d files and d method to do it

"Sidd
 

timothy1987

New member
Dec 24, 2008
1
0
Counld you mind teach me how to dual boot on M10 step by step

the older reply is too difficult to understand