yashsingh1/xdaforums huggingface dataset:
[Touch2 ROM Development] Exsoul:
Any news about the port? there have been some days since the last update.

I don't want to rush you, just know how it's going :)
[Touch2 ROM Development] kipill:
There is some progress, now booting the kernel freeze at:

[131127.830810] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[Touch2 ROM Development] lithoc:
Dear kipill,

Look at rtc-msm.c file.

https://www.codeaurora.org/gitweb/q...1c495e5b790322990343ca625a0af4acf9d97;hb=HEAD

Can recompile the kernel without RTC for now?

The hctosys.c is to read/write hardware clock to sysclock & vice versa.

We can fix it later.
[Touch2 ROM Development] kipill:
Create git-repo

I upload last kernel sources to http://github.com/kipill-nn/Kernel-for-Mega, if you can some help visit this.For debug I use function ptintk("some text")- show text on screen and you can add delay to FrameBuffer in mach-msm\htc_fb_console.txt,but if >1000 may be some errors.Use with attached Haret :)View attachment 719807
[Touch2 ROM Development] lithoc:
Dear kipill,

I'm not expert with hacking the kernel.

Based on the file.

Have you try to contact San Mehat?

Perhaps he can give us a hint.

MODULE_DESCRIPTION("RTC driver for Qualcomm MSM7x00a chipsets");

MODULE_AUTHOR("San Mehat <san@android.com>");
[Touch2 ROM Development] meknb:
[131127.830810] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

This is just a kernel error shouldn't stop you booting up it's probably whats next "mounting root filesystem".

For debugging try make menuconfig and enable kernel debugging and enable early printk provides helpful information.
[Touch2 ROM Development] tjabbe:
any news??:D
[Touch2 ROM Development] ebk71:
I would really apreciate it when this project would be succesfull, but other attempts failed(why?) and is the effort worthwile the outcome?
[Touch2 ROM Development] Exsoul:
Other attempts were unsuccesful because most of the devs moved to other phones (or never got a Touch 2). Also HTC Touch 2 is not a popular device and it was released in 2009. With the new moves to windows phone 7 it's left (4 dead lol).

Answering your last question using what I said before: I think it's worth because there are a lot of people (not as much as other wm devices) that have the HTC mega and can't buy a new phone because they are bounded to a contract or don't have money (for example). We don't have apps like whatsapp, our skype app is a beta version and is not going to be released a stable one. Moreover we can't install other os like WP7 to get some love of microsoft.

'm not saying that WM is a bad os, just every day it's left a bit more and Android is growing like a beast.

And for finish, just let try Android to that people and choose what fits better to everyone. I wish I could help with this but I don't have much idea :(.
[Touch2 ROM Development] jazmy:
any news

Hi guys im web developer, if any help i realy have no experience in hacking the harret :) though i have Touch2 and i hope it has android :D
[Touch2 ROM Development] viola.lory:
if somebody tells me a guide, i will port android!
[Touch2 ROM Development] ngh92:
the big deal is: nobody knows exactly how to port it. If anybody knew how-to android was already ported.
[Touch2 ROM Development] jazmy:
How to port it

it should be simple.

based on that website ( kongtechnology.com/2009/12/03/install-android-on-your-htc-windows-mobile-phones/ )

1- download android package (for your device version).

2- download harret.

3- unzip them on your internal memory.

4- start windows and click on harret.

Notice: Make sure your startup.txt file is the correct one.

im sure there will be issues i didn't try it still !!:cool:
[Touch2 ROM Development] jazmy:
porting android on windows

this might be helpful too http://www.androidonhtc.com/wiki/Installing_Android :)
[Touch2 ROM Development] viola.lory:
I'll try!!!!! If you want to help me find me a tutorial!!!!
[Touch2 ROM Development] Exsoul:
Just forget it and enjoy what you have.
[Touch2 ROM Development] amienzero:
it should be simple but it's not.

the thing is, THERE IS NO ANDROID PACKAGE FOR MEGA. the one currently being used were HTC Tattoo's kernel. but that kernel needs to be re-written back to match Mega. or else, BT, wifi, data, everything won't work.

right. try finding a WORKING version of haret for msm7225 processor. if you can.

so for now, if you're a programmer, you might want to contact kipill. he's been trying to port android and having some good results so far. if you're not, and you want to help, try studying some programming notes. can't do that? then the only option left is sit and wait or buy another phone. okay? ciao.
[Touch2 ROM Development] meknb:
Post 46 there is working haret and the source code for the kernel partially booting just need a few more programmers it's a lot of work for just the one or two(there's a couple on github).There's plenty of info about building the kernel ect in the vogue kaiser polaris thread's and a Knowledge of linux is handy.
[Touch2 ROM Development] Laberkopf:
Lets have a look at the source. I'm not a Developer but i got some basic knowledge so well..better tan nothing i guess.
[Touch2 ROM Development] riddlely:
I have a HTC Touch 2 ready for testing.

I am a newbie at this. Following instructions on:androidonhtc.com

I understand that 4 items are needed in Storage Card/andboot.

1. haret.exe for HTC mega (7225)

2. zImage with Mtype whatever Mtype is...

3. The latest initrd (initrd.gz) (This I am missing)

4. default.txt

as well as teh official HTC click/tattoo ROM.

zImage, default.txt and haret.exe obtained from linuxtogo.

What should I do here to help with testing?

EDIT: I tried a few times to run HaRet. But my phone would just restart. Later I was unable to run HaRet of any version, error message is the file cannot be opened.
[Touch2 ROM Development] jazmy:
wow thanks alot riddly for testing :)

1- I see here androidonhtc.com/wiki/Boot_Options that you should change MType on the default.txt to 2305

2- did you try to put harret and rom on the internal memory not SD card.

just trying to help :)
[Touch2 ROM Development] tjabbe:
Look here for your haret version http://lists.linuxtogo.org/pipermail/haret-devel/2010-March/000017.html
[Touch2 ROM Development] kaindl:
Hi,

i would like to help bringing Android to our phones.

The Haret from Post #46 by kipill looks very promising, as it is the first one I found, that is not just rebooting the Phone.

kipill, you built a kernel, that actually produces some output?

Would you share the config of your kernel on your git-repository, so I can try my luck with it? What exact version of gcc did you use?

Thanks!
[Touch2 ROM Development] viola.lory:
now i installed haret from here:http://lists.linuxtogo.org/pipermail...ch/000017.html

I read :

Haret boot

Shutting down hardware

Turning off MMU ...
[Touch2 ROM Development] tatwah.mui:
FYI, Giga-byte GSmart 1310 is MSM7225 based and very similar to Mega.

Phone specification:

www.gsmarena.com/gigabyte_gsmart_g1310-3720.php
[Touch2 ROM Development] untouchables221:
and here is the gsmart rom update file. it may help.

http://gsmart.bg/sys/download.php?f=VXNlckZpbGVzL2Zpcm13YXJlL1YwLjM1LjAucmFy
[Touch2 ROM Development] tjabbe:
Now i use mtype 3041 and i read

shutting down hardware

turning off mmu

in prelaoder

psr=600000df

tags relocated to 0x10000100 (size 0x100000f00)
[Touch2 ROM Development] lithoc:
Dear All,

Today I retry to boot the kernel with haret again.

I've 4 different Haret

Haret_mega.exe

Haret7225.exe

Haret!!.exe by kipill

Haret_photon.exe

Buzz Kernel 2.6.32 & 2.6.35 from http://xdaforums.com/showthread.php?t=1015532

default.txt from this thread

Standard ROM by HTC

Phone unlocked

Steps I've taken

hard reset my Touch2

launch Haret - listen to network

telnet into the haret console

log haret.log

run the kernel

Results - with 2.6.32 - all 3 haret version failed

2.6.35 - also same - all failed.

Now I'm downloading the WM6.1 to try again , in the mean time i'm trying to get some GPIO for this device.

to be update ....
[Touch2 ROM Development] viola.lory:
haret

TRY this haret http://xdaforums.com/attachment.php?attachmentid=284592&d=1266872927...
[Touch2 ROM Development] lithoc:
Dear Kipill,

I captured the GPIOS for touch2 .

The format doesn't seems to be standard thus I can't interpret it

If you are free , please teach me how to interpret it

For the log below, I pressed , Vol Up, Vol Down, Call , Home, Win , Back & End call.

(All from Left button to right button)

http://pastebin.com/xr4p3cd8
[Touch2 ROM Development] lithoc:
It's in my test. Failed.

Log always end up at Go Go Go ...

That's all

---------- Post added at 11:03 AM ---------- Previous post was at 11:01 AM ----------

Dear All,

I've a Tocuh2 , anyone want me to try to get any info for this device is welcome.

So far I got the GPIOS.

But not sure what to do with haretconsole via telnet tho.
[Touch2 ROM Development] kipill:
Hi!You realy need this? For debug better use vibro code or led(But i cant find it).I attach an archive with the latest work. Hopefully later I'll find time to continue ...

View attachment 752313
[Touch2 ROM Development] berkin88:
i need help

i can ot connection and how can find deafult.txt file
[Touch2 ROM Development] lithoc:
Hi All,

Just found this project, looks very promising.

The developer are the one working on HTC Photon which already ported to Android.

http://code.google.com/p/kernel-for-mega/
[Touch2 ROM Development] jazmy:
Hope so

i see last update was 5 Sept. i hope who worked on htc other models work on that.
[Touch2 ROM Development] Wayfinder.tm:
I dont think so...

kipill дело вообще движется, очень хочется андроид на Мегу? судя по обновлениям git неособо.
[Touch2 ROM Development] mpaspc:
i hAVE a friend selling touch 2 for 85 $ shipped to india , if any one is interested Pm me
[Touch2 ROM Development] cg001:
oh ,my god
[Touch2 ROM Development] jazmy:
What happened guys !!

any updates from all coders here !!
[Touch2 ROM Development] nevermind_me:
The thread seems to have stagnated.......Android on Htc touch 2, hoping against hope.
[Touch2 ROM Development] kaindl:
stagnated? kipill brought us real progress and its just two weeks since his last post!! This kind of work takes time and everyone here is doing it for fun in his free time, so have soma patience, especially when someone is working on it successfully!

@kipill, I tried with your files from your last Post, but a kernel built from your git-source without rtc (don't remember exactly, what config-option I disabled). It freezes at the exactly same point with the line

active perf lock 'boot-time'

which was right before the

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

with your kernel.

So it seems to be stuck with whatever should come after this.

Any idea, what that should be?
[Touch2 ROM Development] xacker83:
hi!!!

i try this code:

set RAMADDR 0x10000000

set RAMSIZE 0x0c000000

set MTYPE 2305

set KERNEL zImage.bin

set cmdline "root=/dev/mmcblk0p2 rw console=tty0 rootdelay=5 fbcon=rotate:1 ppp.nostart=0 mddi.width=240 mddi.height=320 msm_sdcc.msmsdcc_fmax=32000000 pm.sleep_mode=0 no_console_suspend hw3d.version=1"

bootlinux

i give error terminating haret due unhanled exception (pc=01f191b8)
[Touch2 ROM Development] xacker83:
I've tried haret7225. After re-worked, but did't continue the installation. No error, Nothing to i don't understand
[Touch2 ROM Development] htctouch2t3333:
hello, take a look here http://dev.hack-seekers.com/forum/index.php?topic=3.0 , maybe will help you - i don't have anymore this phone.
[Touch2 ROM Development] jazmy:
Froyo version

i see here Froyo version ( addictivetips.com/mobile/install-android-2-2-froyo-on-htc-windows-mobile-devices-easily/ )
[Touch2 ROM Development] xacker83:
i try this but " An error occurred on sub __main_load_filelist. IOException Continue?

yes

and then main_update_device_image.

:(((((
[Touch2 ROM Development] LeviYoung:
so are you make it now?ha,there's many chinese people wait to refresh their phone's OS~
[Touch2 ROM Development] julian84:
HTC Blackstone

HTC Diamond

HTC Diamond 500

HTC Fuze

HTC Raphael

HTC Raphael 800

HTC Rhodium

HTC Tilt 2

HTC Topaz
[Touch2 ROM Development] jacky_lee_16:
The topic has been pinned down again, sad.
[Touch2 ROM Development] rktaiwala:
I would like to contribute to this project.

I'm ready to test on my device,just tell me from where to start
[Touch2 ROM Development] happily1986:
Up for OP!
[Touch2 ROM Development] tarx1000:
Guys, face the truth- Android will not be ported to Mega! Unfortunately...:(
[Touch2 ROM Development] nongxuan:
I come from China, I have been waiting for the Android
[Touch2 ROM Development] jiangxue:
I come from China, I have been waiting for. But I want to help research and development.

»

I would much, but I am a student I was still young I can learn.

if need－my email:jax_jiang@sina.cn

jiangxueyx007@live.com

my English is not perfect.
[Touch2 ROM Development] Mr. Clown:
Please post everything in english. Thanks.
[Touch2 ROM Development] whz5200:
lose again,
[Touch2 ROM Development] jazmy:
still waiting

still waiting any help from any Android provider !!
[Touch2 ROM Development] RDilus:
Im still busy with it dont worry!
[Touch2 ROM Development] meynaQ:
RDilus we are waiting for good news.

I can help in testing.
[Touch2 ROM Development] lithoc:
I spent about few hours porting kippill against arco msm7225 branch.

Kernel never booted up as expected.

I'm out of luck, until I've time to look at it again
[Touch2 ROM Development] jazmy:
Mega is cool

Mega is cool device with good looking and average processor same speed & RAM like most android devices so ....... why not?!

i think anybody working in Google or Android can easily make it work on Mega :D (3 days or a week spare time) :) .
[Touch2 ROM Development] Snupk:
if it would be THAT easy - it would already be done? ;)
[Touch2 ROM Development] :
A little help?

My brother got a HTC hero and... it's the same mother board and the same proc so.....
[Touch2 ROM Development] pteek:
HI am posting this to inform everybody that kipill(cyrill) is still working on it. He won't stop till he port this ***** to mega. Just keep waiting. He's the guy who made this much progress and gave us a working haret.

PS:There is no need for any "when will it be ready?" "I want to help"(unless you a develoer) posts.
[Touch2 ROM Development] tatwah.mui:
For dev, anyone who's interested in kipill's porting can have a look at https://github.com/kipill-nn/Kernel-for-Mega branch mei_mod.

I've made mmc working and rootfs can be loaded.

Still, display driver has some problem.

---------- Post added at 01:22 PM ---------- Previous post was at 01:16 PM ----------

And for FYI, you can find some info about MSM 722x architecture from my personal site: https://sites.google.com/site/linuxonmega/
[Touch2 ROM Development] jazmy:
wonderful

wonderful guys keep it up. please any java or C developer help them.
[Touch2 ROM Development] lithoc:
Do you have the source ?

I believe its ownership problem, if it's run as root , you shouldn't have that problem unless the filesystem is read-only mode or the sd card is in locked state
[Touch2 ROM Development] kipill:
This problem has been solved, now has another, very extended ones))) something like:

init: untracked pid 134 exited
init: critical process 'servicemanager' exited 4 times in 4 minutes

Some ideas :confused:
[Touch2 ROM Development] jazmy:
help there

Thanks Kipil for that wonderful work.

they here talking about same problem xdaforums.com/showthread.php?t=369149&page=6

but on different set Magician !
[Touch2 ROM Development] lithoc:
kippill,

I think you should try the bare busybox toolchain without running android first.

At least you can try debug from there.
[Touch2 ROM Development] Auwia:
Hi Kipill,

1) How do you read the dmesg log file? I try with pwf but the file is incomprehensible...

2) Can you update the kernel + .config on github?

tnx,

bye.
[Touch2 ROM Development] kipill:
I update it here https://github.com/kipill-nn/Kernel-for-Mega/tree/mei_mod log.txt will create in sd card if you use this initrd https://github.com/downloads/kipill-nn/Kernel-for-Mega/initrd.gz
[Touch2 ROM Development] Auwia:
I don't get "Waiting for SD card", boot freeze on: "mmcblk0: p1".

I can't find "log.txt" in my sdcard. Have you got any idea? tnx
[Touch2 ROM Development] kipill:
Try with system.ext2 from this zip http://xdaforums.com/attachment.php?attachmentid=752313&d=1318845959
[Touch2 ROM Development] Auwia:
nothing! :(

with this kernel, boot freeze on:

bahamas_init() revision=0

calibrating delay loop is very high (8 minutes).

Now I'll want to work on rndis & telnet...when can I meet you on #htc-linux (irc)? at what time?
[Touch2 ROM Development] tatwah.mui:
Hi, try `logcat` app from Android rootfs. You may redirect it to your log file. Good luck!
[Touch2 ROM Development] Auwia:
kipill the problem is that don't run the script: /init, infact I don't see:

echo "Init started"

echo "Starting Android" > /proc/printk

etc...

dmesg is fast and I can't see if there is an error...how can I do? Please can you help me?

Tnx,

Bye.
[Touch2 ROM Development] lithoc:
dmesg > dmesg.log

this will create a file so that u can use editor to view it
[Touch2 ROM Development] Auwia:
without filesystem and without mmc I can't do it! :(
[Touch2 ROM Development] kipill:
You can to try this https://github.com/downloads/kipill-nn/Kernel-for-Mega/megandroid.rar
[Touch2 ROM Development] Auwia:
Now It's OK!!! :)

Calibrating delay loop, it's very fast... Please update git server for source...tnx.
[Touch2 ROM Development] kipill:
its from this sources https://github.com/kipill-nn/Kernel-for-Mega/tree/mei_mod
[Touch2 ROM Development] victorpinx:
they wanted to try how long it takes
[Touch2 ROM Development] malmaldomal:
hi i'm new here

my english is very bad so i can't uderstand very much what you're saying.

the project seemed stucked and i saw this on youtube, maybe it helps, and i don't know, i'm not a developer and don't understand very much where are you stucked.

caNT post the link, so searh "How To - Install Android On HTC Mobile Phones" and watch the first video

is de megandroid.rar a beta that works?

we have one htc mega at home and my sister really wants to have an android device

hope you find the solution soon

will be glad of donating you some money when i see android running fine on my device
[Touch2 ROM Development] dracro:
I've try to install megandroid.rar but it's running and show "waiting for SD Card"

what SD card is it?
[Touch2 ROM Development] Auwia:
unplug & plug your sd card...
[Touch2 ROM Development] Pipuhhh:
Prepare SD CARD

"ARM9 has Crashed" that's the next step?
[Touch2 ROM Development] dracro:
thanks dude... but after that i press restart button and try to re-install it again, it passed the SD card process but now it's stuck with

[607.718156 ] perflock_notifier_call : cpufreq recover policy 480000 528000

i've waiting for it about 20 mins now

can anyone tell me what number is going to the end?
[Touch2 ROM Development] untouchables221:
this is some serious progress i think. for me it is not working too. after "waiting for sd card" i unplug and plug again after that somethings happen. it says kernel panic and some stuff i dont understand. than here is the most beautiful moment for me: when i plug usb cable it works :D windows 7 recognized my phone as android phone than installed htc dream drivers. i think i am gonna cry :D
[Touch2 ROM Development] dracro:
is that real?!!
[Touch2 ROM Development] victorpinx:
when we try android on our touch 2?
[Touch2 ROM Development] untouchables221:
i mean usb works :) still not booting.
[Touch2 ROM Development] dracro:
but we are close , right? :)
[Touch2 ROM Development] :
Need a test?

Well...

Now I have a XperiaPlay but I kept my touch 2, can someone pm me and explain me (slowly ^^) how to try the current version?

thanks!
[Touch2 ROM Development] untouchables221:
yes! i beleive kipill and other friends can make it.

its stucks at the same place for me, too. i think that is cpu speed.
[Touch2 ROM Development] kipill:
Really? I have win 7 too, but in my case its not work... I have:"Usb device not recognized" I install Android drivers and HTC Sync but nothing :confused:
[Touch2 ROM Development] untouchables221:
i did it when it says "waiting for sd card"

i didnt unplug-plug sd card. just plugged usb cable and it is recoqnized at that step. but if i unplug-plug sd card it continues booting than stucks at "hsusb: RESET ->ONLINE". in this step and after that, usb cable doesnt work if you plug it.

why it freezes at this line?? "perflock_notifier_call : cpufreq recover policy 480000 528000"
[Touch2 ROM Development] victorpinx:
I'm anxious to try Android when we?
[Touch2 ROM Development] tatwah.mui:
Try ADB

Hi, if android usb gadget can be recognized, pls try in Ubuntu/other linux os, in shell, run 'lsusb -v' to test whether adb is enabled.

If so, we can debug Android OS with 'adb logcat'.
[Touch2 ROM Development] untouchables221:
okay i am gonna try that
[Touch2 ROM Development] dracro:
wish it work!!
[Touch2 ROM Development] untouchables221:
i think this is what we need :

"Bus 001 Device 004: ID 0bb4:0c01 High Tech Computer Corp. Dream / ADP1 / G1 / Magic / Tattoo"

tried lsusb - v with latest ubuntu.

this is the all:

Bus 001 Device 009: ID 0bb4:0c01 High Tech Computer Corp. Dream / ADP1 / G1 / Magic / Tattoo

Device Descriptor:

bLength 18

bDescriptorType 1

bcdUSB 2.00

bDeviceClass 0 (Defined at Interface level)

bDeviceSubClass 0

bDeviceProtocol 0

bMaxPacketSize0 64

idVendor 0x0bb4 High Tech Computer Corp.

idProduct 0x0c01 Dream / ADP1 / G1 / Magic / Tattoo

bcdDevice 1.00

iManufacturer 3

iProduct 2

iSerial 0

bNumConfigurations 1

Configuration Descriptor:

bLength 9

bDescriptorType 2

wTotalLength 32

bNumInterfaces 1

bConfigurationValue 1

iConfiguration 0

bmAttributes 0x80

(Bus Powered)

MaxPower 256mA

Interface Descriptor:

bLength 9

bDescriptorType 4

bInterfaceNumber 0

bAlternateSetting 0

bNumEndpoints 2

bInterfaceClass 8 Mass Storage

bInterfaceSubClass 6 SCSI

bInterfaceProtocol 80 Bulk (Zip)

iInterface 4

Endpoint Descriptor:

bLength 7

bDescriptorType 5

bEndpointAddress 0x01 EP 1 OUT

bmAttributes 2

Transfer Type Bulk

Synch Type None

Usage Type Data

wMaxPacketSize 0x0200 1x 512 bytes

bInterval 0

Endpoint Descriptor:

bLength 7

bDescriptorType 5

bEndpointAddress 0x81 EP 1 IN

bmAttributes 2

Transfer Type Bulk

Synch Type None

Usage Type Data

wMaxPacketSize 0x0200 1x 512 bytes

bInterval 0

Device Qualifier (for other device speed):

bLength 10

bDescriptorType 6

bcdUSB 2.00

bDeviceClass 0 (Defined at Interface level)

bDeviceSubClass 0

bDeviceProtocol 0

bMaxPacketSize0 64

bNumConfigurations 1

Device Status: 0x0000

(Bus Powered)
[Touch2 ROM Development] jiangxue:
I get 'start android. waiting for sdcard'

i use megandroid.rar

for the first times,i get memory fire

second times, i get arm9 has crash

tired times, in strarting.media cycle,at last i get arm9 has crash.

four time i get starting android. and. waiting for sdcard.

there is my problem.

waiting for sdcard is waiting for sdcard's ext partition?

why not no linux logo?

megandroid.rar has android system?
[Touch2 ROM Development] tatwah.mui:
bNumInterfaces=1 and bInterfaceClass=8 Mass Storage

So unfortunately, from above ouput, there is no ADB interface.
[Touch2 ROM Development] untouchables221:
thats too bad. worth to try anyway.
[Touch2 ROM Development] victorpinx:
Some progress ??
[Touch2 ROM Development] aloysius987:
i think its closed alr...
[Touch2 ROM Development] bob8x:
If I had understand correctly we had passed from Haret doesn't work on our device to haret now works but we need to rebuild android for our( now yours because I've passed mine to my sister for an Inc S ;) ) device..
[Touch2 ROM Development] mostur:
ıs there anyone who uses android system for the htc mega???please it s urgent,,how can I install it???
[Touch2 ROM Development] :
Don't feed the troll!

Android is not finished!!!!

read the first post!!!