PDA

View Full Version : [PRJ][OS]Linux and Android on HTC Diamond "NOT YET WORKING"


Pages : 1 2 [3] 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

NikPraskaton
27th October 2008, 10:22 PM
Im not lasy to read.. as Im reading this topic for some time but for fresh readers.. it would be great to have all the newest infos, updates etc.. on the first post.. Can someone do that? Thanks..

sorrowt
27th October 2008, 10:26 PM
great work!! it runs perfectly on mz diamond!!!

I have ques, where can i find the Haretlog on the device?

marios96
27th October 2008, 10:34 PM
Im not lasy to read.. as Im reading this topic for some time but for fresh readers.. it would be great to have all the newest infos, updates etc.. on the first post.. Can someone do that? Thanks..

Wiki page, that gets updated: http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux

NikPraskaton
27th October 2008, 10:35 PM
Works on mine Diamond too. I get to the keyboard thingy :)

<0>Kernel panic - not syncing: Attempted to kill init!
Rebooting in 3 seconds...


LOL

milfadoodle
27th October 2008, 11:04 PM
Awesome job druidu and netripper. I keep checking this thread way to often for what's good for me. Do you have a repository or something where we can follow the work more in detail and get the source code?

n.mowberry
27th October 2008, 11:12 PM
I just watched a video on android in action, http://www.youtube.com/watch?v=ePc6pSdn3vQ

I cannot wait, this OS is everything that Windows is not.

Vector-SS
27th October 2008, 11:20 PM
Nice, loaded up very nicely and quickly all the way to the virtual KB.

I'm probably going to get flamed for this, but I'll give it a go anyway :D

What is the relation between Linux and Android? I don't get it? I read some people saying Android is now a reach away - how come?

Riel
27th October 2008, 11:29 PM
Android runs on Linux :)

NikPraskaton
27th October 2008, 11:30 PM
Android looks promising... but I really dont like that white backgrnd :)

Vector-SS
27th October 2008, 11:31 PM
Android runs on Linux :)

LOL Thanks. That was quite easy.

Vector-SS
27th October 2008, 11:32 PM
Android looks promising... but I really dont like that white backgrnd :)

That's not good news at all. Guess my yellow spots will be visible in every single menu. :mad:

skiwithpete
27th October 2008, 11:59 PM
Just like to say, I tried it, and works a treat. Well done getting this far chaps.

A couple questions

a) Will we always need to boot Windows Mobile, then load haret? Or will there be a way to load straight into Linux.

b) What steps are needed to load a gui? Is that next?

Cheers,

P

Vector-SS
28th October 2008, 12:13 AM
^^ You mean completely eliminate WM? :D

I just read that the G1 does not support video recording, exchange support, and stereo bluetooth. Are those device limited or software?

NetRipper
28th October 2008, 12:15 AM
Just like to say, I tried it, and works a treat. Well done getting this far chaps.

A couple questions

a) Will we always need to boot Windows Mobile, then load haret? Or will there be a way to load straight into Linux.

b) What steps are needed to load a gui? Is that next?

Cheers,

P
a) For now, yes, perhaps in the future, no. Let's concentrate on getting it to work first... when wince isn't booted first, a lot of things have to be initialized by the linux kernel - we're currently benefiting from a lot of initialization done by wince... which makes it easier to make steps.

b) That's also where 'the next step' comes in, we need to start initializing things properly to be able to continue in a proper way. A gui would be nice and if i see it's possible, i'll certainly try, but in fact it's just being way ahead of where we should be ;)

Many things need to be done, that don't produce visible results directly. Drivers need to be written, but also the layer above that: drivers to make it possible for drivers to interact with hardware (such as i2c/proc_comm/smd drivers).

Anyway, as always, we'll report when there's progress ;)

skiwithpete
28th October 2008, 01:18 AM
Thanks for the quick reply Netripper. Best of luck in the coming hours and days, hope you're enjoying the process as much as the results. And respect to Druidu too.

You boys are really putting it out there for this small community, and by golly, we appreciate the hell out of you (and anyone who has helped and I don't know about too).

Cheers,

P

milfadoodle
28th October 2008, 01:30 AM
a) For now, yes, perhaps in the future, no. Let's concentrate on getting it to work first... when wince isn't booted first, a lot of things have to be initialized by the linux kernel - we're currently benefiting from a lot of initialization done by wince... which makes it easier to make steps.

b) That's also where 'the next step' comes in, we need to start initializing things properly to be able to continue in a proper way. A gui would be nice and if i see it's possible, i'll certainly try, but in fact it's just being way ahead of where we should be ;)

Many things need to be done, that don't produce visible results directly. Drivers need to be written, but also the layer above that: drivers to make it possible for drivers to interact with hardware (such as i2c/proc_comm/smd drivers).

Anyway, as always, we'll report when there's progress ;)

You have your sources up on the web somewhere, I'd like to take a peek in them?

NetRipper
28th October 2008, 01:57 AM
You have your sources up on the web somewhere, I'd like to take a peek in them?
Please be patient for just a little while, a git repository is being setup.

An ugly hack is here, but will be improved with ifdef's (or so) later on:
http://netripper.pastebin.com/f32811bc

To get you going (for raphael, may work on diamond too)... Using the git.android.com repository, the android-msm-htc-2.6.25 branch and the above patch, you should be able to boot when you set mtype to 1439 (halibut). There are some other hacks, such as disabling proc_comm and removing some annoying error messages in smd, but without that you should get at least console with just the irq patch.

For everything else, wait until git is up :)

milfadoodle
28th October 2008, 02:08 AM
Please be patient for just a little while, a git repository is being setup.

An ugly hack is here, but will be improved with ifdef's (or so) later on:
http://netripper.pastebin.com/f32811bc

To get you going (for raphael, may work on diamond too)... Using the git.android.com repository, the android-msm-htc-2.6.25 branch and the above patch, you should be able to boot when you set mtype to 1439 (halibut). There are some other hacks, such as disabling proc_comm and removing some annoying error messages in smd, but without that you should get at least console with just the irq patch.

For everything else, wait until git is up :)

Thanks a lot man. Are you setting up a proper project page somewhere with bug reporting and all or just a repo?

EDIT: What I'm trying to say is: make it easy for people to contribute =) Thanks a lot for the job you guy have put in for the community!

doc31
28th October 2008, 03:20 AM
Mine its hangs that the same point as his... any ideas anyone.
I'm running basically a stock sprint rom.

console handover: boot [htc_fb0]-> real [tty0]

NetRipper any idea about the above....

nashmage
28th October 2008, 05:16 AM
so from what im reading does none of this work on the sprint diamonds/touch pros?

nashmage
28th October 2008, 05:36 AM
I am using Diamond_Linux.exe and mine does the exact same thing.

I'm running a completely stock sprint rom.

I also have a sprint diamond and i have tried to run it a few different times but everytime i get that same exact thing. If someone could help out us sprint owners that would be great :D

qetuR
28th October 2008, 08:58 AM
I know it sounds hard, and probebly anoying; but in what time spectra are we talking about if you continue your development at current speed to get Android working on the Diamond? A month, perhaps two?

Just curiouse.

NetRipper
28th October 2008, 09:27 AM
NetRipper any idea about the above....
Sorry, doesnt ring a bell for me. Needs more research on why it hangs there.

NetRipper
28th October 2008, 09:30 AM
Thanks a lot man. Are you setting up a proper project page somewhere with bug reporting and all or just a repo?

EDIT: What I'm trying to say is: make it easy for people to contribute =) Thanks a lot for the job you guy have put in for the community!
Just the repo for now.

Riel
28th October 2008, 10:32 AM
I know it sounds hard, and probebly anoying; but in what time spectra are we talking about if you continue your development at current speed to get Android working on the Diamond? A month, perhaps two?

Just curiouse.



I think these are the stupidest questions. Make the thread unnessesary annoying.

zaphyr
28th October 2008, 11:05 AM
I think these are the stupidest questions. Make the thread unnessesary annoying.

yes, and so does your reply...and now even my reply to your reply...so let's just ignore them...mkay... :rolleyes:

computerguru
28th October 2008, 02:54 PM
I also have a sprint diamond and i have tried to run it a few different times but everytime i get that same exact thing. If someone could help out us sprint owners that would be great :D

Once the repo is set up, and a link is provided to download the source code changes (unless the interrupt timer change is the only change that was made to the base Google code), I'll take a crack at debugging the Sprint-based Diamond issues (since my phone is doing the same thing.)

NetRipper
28th October 2008, 03:02 PM
Once the repo is set up, and a link is provided to download the source code changes (unless the interrupt timer change is the only change that was made to the base Google code), I'll take a crack at debugging the Sprint-based Diamond issues (since my phone is doing the same thing.)
That'd be great. For sprint touch pro users the irq patch should be sufficient to get the framebuffer to initialize. I believe for diamond too. Druidu chose to use the trout (g1) mtype for diamond, so I can't be sure. It would require some more modifications. I'm kind of curious if current diamond owners are able to use the raphael package as well.

godzirra
28th October 2008, 03:05 PM
That'd be great. For sprint touch pro users the irq patch should be sufficient to get the framebuffer to initialize. I believe for diamond too. Druidu chose to use the trout (g1) mtype for diamond, so I can't be sure. It would require some more modifications. I'm kind of curious if current diamond owners are able to use the raphael package as well.
I tried using the raphael package on my stock sprint diamond and it never got past the Haret yellow loading bar.

Pixel du Rezo
28th October 2008, 03:07 PM
I'm kind of curious if current diamond owners are able to use the raphael package as well.
I tried it on my Diamond (the Diamond_Linux.exe is running fine) and it's not working...

rl2000
28th October 2008, 03:17 PM
Just tried the Raphael package on my stock diamond, the diamond version worked but the Raphael halts at:

drivers/rtc/htcosys.c: unable to open rtc dev (rtc0)

Isn't that the Real Time Clock?

computerguru
28th October 2008, 03:20 PM
That'd be great. For sprint touch pro users the irq patch should be sufficient to get the framebuffer to initialize. I believe for diamond too. Druidu chose to use the trout (g1) mtype for diamond, so I can't be sure. It would require some more modifications. I'm kind of curious if current diamond owners are able to use the raphael package as well.

Cool. I'm in Microsoft Sharepoint training until 4:00 PM EST (some fun stuff let me tell you...lol), but I will try to get started on it tonight. :cool:

computerguru
28th October 2008, 03:22 PM
Just tried the Raphael package on my stock diamond, the diamond version worked but the Raphael halts at:

drivers/rtc/htcosys.c: unable to open rtc dev (rtc0)

Isn't that the Real Time Clock?

Yeah, after the Diamond version didn't work, tried the Raphael version...didn't work as well.

NetRipper
28th October 2008, 03:41 PM
Thanks for trying raph on diamonds. Not sure why it hangs on rtc. It gives the same error on raphael but continues anyway.

Can sprint diamond users, that don't get passed the haret loading screen, also run the package with an empty 'earlyharetlog.txt' file, so that a haretlog.txt is created? The sprint touch pro has RAPH800 as identifier, the diamond might not be known yet by Haret.

godzirra
28th October 2008, 03:50 PM
Thanks for trying raph on diamonds. Not sure why it hangs on rtc. It gives the same error on raphael but continues anyway.

Can sprint diamond users, that don't get passed the haret loading screen, also run the package with an empty 'earlyharetlog.txt' file, so that a haretlog.txt is created? The sprint touch pro has RAPH800 as identifier, the diamond might not be known yet by Haret.

Here's what I got when I tried that. It still froze at the "HaRET: Booting Linux ..." screen with almost a full yellow bar.

Bandit13
28th October 2008, 03:58 PM
Here is my Haret Log running raph on my stock diamond

My id is different

rl2000
28th October 2008, 04:01 PM
I think I got it booted this time, I'll try again to verify. Only problem was the red dot in the upper right corner wasn't there so I could calibrate the screen. Is the only way out of haret a reset?

rl2000
28th October 2008, 04:08 PM
Okay, it did work, I don't know what I changed except add the earlyharetlog.txt file. Anyway I've added the log files for both programs. I have a stock diamond from denmark. If you need any other information just ask :)

NetRipper
28th October 2008, 04:24 PM
Diamond wasn't supported by HaRET yet, but it boots as it falls back to generic MSM arch. So haret shouldn't be a limitation.

So far there are two new identifiers for diamonds: "DIAM500" and "HTC Touch Diamond P3700". You should also be able to find this under: start -> settings -> 'system' tab -> device information -> 'identify' tab -> "Model No.", so you don't need to start haret to find this info.

If you have a diamond and a different 'model no.' than the the ones above, post it here. It's not a deal-breaker, but it's nice to have haret recognize it correctly.

NetRipper
28th October 2008, 04:26 PM
I think I got it booted this time, I'll try again to verify. Only problem was the red dot in the upper right corner wasn't there so I could calibrate the screen. Is the only way out of haret a reset?
When the Linux kernel boots, Windows Mobile is no longer running, nor is haret, so you can't 'exit' haret. You could perhaps 'shutdown', 'reboot' or 'init 6', haven't tried that yet ;)

Btw you have to touch the touchscreen first once before you can calibrate.

rl2000
28th October 2008, 04:40 PM
Mine is a diam100 and is reqignised as "HTC Touch Diamond P3700". I've tried "exit" and "reboot", both caused kernel panic. shutdown -h now isn't found :) Haven't tried init 6 either :)

To explain: On the diamond haret the red dot in the upper left corner is there, on the raphael haret it isn't. However, I just pressed the top corner anyway and it calibrated with the same precision as the diamond one.

hillsdale
28th October 2008, 06:40 PM
raph800 some dumps attached

mmu.zip is "dump mmu"
smem.zip is "pwf smem 0x1f00000 0x100000"

Addicteddddd
28th October 2008, 07:18 PM
some progress,i guess ^^

Stillmatic
29th October 2008, 03:13 AM
sooo....port Android yet NetRipper? lol

itsallsubliminal
29th October 2008, 04:44 AM
so to try out the kerne,l i just get the file from the wiki for my diamond, put it on my phone and run it?

cuz when i do that i get the "... framebuffer ... " in green at the top and then the white text goes down only about 1/3 of the screen with the last line being "Console handover: boot[htc-fb0] -> real [tty0]"

could it be my "sprint" diamond having this problem? God i hope not, that means it won't work with cdma if this is the problem :(

any ideas? do i need other files too?

dcordes
29th October 2008, 04:45 AM
I pushed the druidu and NetRipper kernel code for the htc diamond and htc raphael to the new branch htc-msm-2.6.25 (http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-msm-2.6.25) at git.linxutogo.org . it is a clone of the g1 branch (http://git.android.com/?p=kernel.git;a=shortlog;h=android-msm-htc-2.6.25) from git.android.com with their code added.

in order to build check the kaiser kernel building instructions at http://forum.xda-developers.com/showthread.php?p=2269384#post2269384 and make sure you rpleace the branch htc-msm with htc-msm-2.6.25 and defconfig_htckaiser with defconfig_htcraphael (for both, raphael and diamond because they both use the raphael machine for now)

enjoy

edit: you can find a build of that code at http://linuxtogo.org/~lgorris/builds/zImage-htcraphael-20082810-07

rl2000
29th October 2008, 09:22 AM
Dcordes, nice! I'm trying it right now, does it take a long time to boot as right now it's stuck with this "kit" like red bar and the kayboard blinking in the corner. I had this located on the internal SD card of my diamond, I don't know if that should influence anything.

NetRipper
29th October 2008, 09:49 AM
You can find that latest build of dcordes in a linload version of haret here (http://www.netripper.nl/raphael/raph_20081029-00_cleanups.exe). An unpacked version is here (http://www.netripper.nl/raphael/raph_20081029-00_cleanups/) (make sure you modify default.txt to have it say bootlinux instead of ramboot at last line).

Also note that diamond and raphael use the same kernel now. They should both boot to shell with the supplied .exe above.

Dcordes, nice! I'm trying it right now, does it take a long time to boot as right now it's stuck with this "kit" like red bar and the kayboard blinking in the corner. I had this located on the internal SD card of my diamond, I don't know if that should influence anything.
Android is not working yet..... no point in trying the android initrd.

Oh and, just a quick thank you for dcordes for his time on getting the git up. :)

rl2000
29th October 2008, 09:58 AM
Awesome!

Even though it doesn't boot all the way and halts at the splash screen I still think you guys do a great job. I've been using linux since 98, however I have no experience with kernel drivers beyond compiling but still, if you need any help or testing just look me up!

Rich1974
29th October 2008, 10:35 AM
Hi guys.
I'm new to this thread. I have also tested the latest android_linux posted 27.10. And it works great. The only thing is when I calibrating the screen, the red dot's not showing (that I can see anyway). Is it posible to enlarge the on-screen keyboard little? :D

Is there any progress on accessing the internal storage? :o

Thanx for the good job druidu and Netripper and ofcourse all the other people that is helping.

Have a good day everyone. :)

----------------------------
HTC Diamond and QTek S200

dcordes
29th October 2008, 11:55 AM
I also vote for NetRipper and druidu checking out the NAND (internal storage) driver on raphael and diamond. It should be easy to do. Just build with mtd support (use halibut kernel config bits for nand and mtd configs) and see if it gets you /dev/mtd? with readable data. on the kaiser that works. we just didn't sort out the partition table...

edit: to whoever tries that: playing with nand can be harmful

sibbor
29th October 2008, 12:08 PM
@dcordes
Can you please update the first post with the progress made with Linux @the Diamond/Raphel by druidu and NetRipper. Perhaps provide a link to the wiki page?

Would be great! And that way we can keep this thread as clean as possible. :D

Btw, it sounds pretty scary with the NAND stuff, but I'm up for some testing when someone typed some code for it ;)

cr2
29th October 2008, 01:02 PM
Btw, it sounds pretty scary with the NAND stuff, but I'm up for some testing when someone typed some code for it ;)

It should not be scary if you do not write anything to NAND.

cijoml
29th October 2008, 01:42 PM
I pushed the druidu and NetRipper kernel code for the htc diamond and htc raphael to the new branch htc-msm-2.6.25 (http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-msm-2.6.25) at git.linxutogo.org . it is a clone of the g1 branch (http://git.android.com/?p=kernel.git;a=shortlog;h=android-msm-htc-2.6.25) from git.android.com with their code added.

in order to build check the kaiser kernel building instructions at http://forum.xda-developers.com/showthread.php?p=2269384#post2269384 and make sure you rpleace the branch htc-msm with htc-msm-2.6.25 and defconfig_htckaiser with defconfig_htcraphael (for both, raphael and diamond because they both use the raphael machine for now)

enjoy

edit: you can find a build of that code at http://linuxtogo.org/~lgorris/builds/zImage-htcraphael-20082810-07

Dcores great work! BTW could you update
http://www.handhelds.org/moin/moin.cgi/SupportedHandheldSummary

?? THX

Global_Inferno
29th October 2008, 02:53 PM
I've tried the latest release (marked 28/10/08) and it loads up to the red dot going across the screen, then continues to do that till I reset the device. Not working, but damn, it's getting close!! :D

Let me know if there's anything I can do to help ;)

godzirra
29th October 2008, 03:08 PM
With the newest version (raph_20081029-00_cleanups.exe) it boots up and gets to the point where it says the following:

[0.150000] console handover: boot [htc_fb0] -> real [tty0]

Then stops.

dcordes
29th October 2008, 03:44 PM
Dcores great work! BTW could you update
http://www.handhelds.org/moin/moin.cgi/SupportedHandheldSummary

?? THX

Thanks but the kudos belongs to duidu and NetRipper. I have no access at handhelds.org wiki.

computerguru
29th October 2008, 03:48 PM
With the newest version (raph_20081029-00_cleanups.exe) it boots up and gets to the point where it says the following:

[0.150000] console handover: boot [htc_fb0] -> real [tty0]

Then stops.

That's a problem we've noticed with the stock Sprint rom on the diamond. I'm looking into it (since my phone is doing the same thing.) :cool:

cijoml
29th October 2008, 05:12 PM
Thanks but the kudos belongs to duidu and NetRipper. I have no access at handhelds.org wiki.

Registration is free. There should be mentioned each port we make so everybody can check progress

Klopfer`
29th October 2008, 05:13 PM
sry, i read this thread but i dont understand everything ^^
so my question is:

How can i emulate Android on my Diamond, or what should i Download?!?

thx ^^

Toug
29th October 2008, 05:16 PM
sry, i read this thread but i dont understand everything ^^
so my question is:

How can i emulate Android on my Diamond, or what should i Download?!?

thx ^^

Android is not running yet, people here is trying to make it working.

skiwithpete
29th October 2008, 05:17 PM
sry, i read this thread but i dont understand everything ^^
so my question is:

How can i emulate Android on my Diamond, or what should i Download?!?

thx ^^

You can't run Android yet, a couple of guys are working on it though.

For now tho, you can test out the kernel and haret - by downloading a package from here

http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux

All the best,
P

Klopfer`
29th October 2008, 05:17 PM
Android is not running yet, people here is trying to make it working.

but why some people got videos and screenshots from the os?
dont understand that ^^

NetRipper
29th October 2008, 05:17 PM
sry, i read this thread but i dont understand everything ^^
so my question is:

How can i emulate Android on my Diamond, or what should i Download?!?

thx ^^
You can't yet. It'll take quite some time before there will be a usuable Android available for Diamond/Raphael.

Klopfer`
29th October 2008, 05:23 PM
You can't yet. It'll take quite some time before there will be a usuable Android available for Diamond/Raphael.

so do you think it will be only a version for emulate or it will be a bootable version?

Toug
29th October 2008, 05:28 PM
Thanks but the kudos belongs to duidu and NetRipper. I have no access at handhelds.org wiki.

The HTC G1 cannot be found is this site. It's a little strange.

thingr
29th October 2008, 05:29 PM
ultimate goal is a bootable native Linux ROM without the need to have Windows Mobile or any other OS installed, but for the moment the task is to get an emulated Linux up and running using Haret.

Toug
29th October 2008, 05:34 PM
but why some people got videos and screenshots from the os?
dont understand that ^^

The only pictures you saw are Diamond running Linux kernel (A lot of work is need to run Android) or HTC G1 running android (This mobile is sold with android).

NetRipper
29th October 2008, 05:35 PM
ultimate goal is a bootable native Linux ROM without the need to have Windows Mobile or any other OS installed, but for the moment the task is to get an emulated Linux up and running using Haret.
HaRET does not emulate an environment for Linux to run "inside". It actually shuts down the OS and boots the Linux kernel. A ROM version is really for in the future - if possible. It'll take much more hardware initialization before even attempting it.
but why some people got videos and screenshots from the os?
dont understand that ^^
Those are videos and pictures from the android phone (T-Mobile G1 / HTC Dream) or some other phones that are already ported, but not the Diamond or Raphael.

kState
29th October 2008, 07:24 PM
this screenshoot (http://kedar.palmlinux.cz/htc/htcraphael-android.jpg) is from Raphael :)
anyway for now android only boot for test, not for real usage ! many people work on it, now is not time for ask for android.cab ;) is time for waiting, or trying for people that know what is linux, kernel, and missed/problems drivers.. :)

keerttttt
29th October 2008, 07:34 PM
this screenshoot (http://kedar.palmlinux.cz/htc/htcraphael-android.jpg) is from Raphael :)
anyway for now android only boot for test, not for real usage ! many people work on it, now is not time for ask for android.cab ;) is time for waiting, or trying for people that know what is linux, kernel, and missed/problems drivers.. :)

That's like android v0.8 that i see there...

itsallsubliminal
29th October 2008, 08:30 PM
I also vote for NetRipper and druidu checking out the NAND (internal storage) driver on raphael and diamond. It should be easy to do. Just build with mtd support (use halibut kernel config bits for nand and mtd configs) and see if it gets you /dev/mtd? with readable data. on the kaiser that works. we just didn't sort out the partition table...

edit: to whoever tries that: playing with nand can be harmful

i'm cool with testing on my sprint diamond too.. nand being harmful as to what, The internal storage being completely fried? Thats not a big deal, i've got bros in stores that'll switch me out ina heart beat :D

itsallsubliminal
29th October 2008, 08:31 PM
That's like android v0.8 that i see there...

agreed, what happened to the version out of the G1?

sensorama
29th October 2008, 10:05 PM
agreed, what happened to the version out of the G1?

whas more interesting.... whats up with the image and how much progress has the person responsible done?

Toug
29th October 2008, 10:13 PM
Is it not more easier to start with a G1 dump and to change the drivers that need to? The G1 hardware should be very near from the diamond one.

clovis
30th October 2008, 02:07 AM
I´ve read on the wiki/blog that you are using the G1 Framebuffer code, i think this is very good....however I´ve also read that you have to write own touchscreen code.

Is this a temporary workaround or is there no way to use the G1 driver?

If you have to many code in the Diamond/Raphael branch then it will be harder to maintain these device´s code up to date with the main branch.

btw...good work. I wonder if we will have GSM/GPRS code working before I change to another phone :).

clovis
30th October 2008, 02:12 AM
Which toolchain are you using?
(i´ve never seen Android code and build scripts....if there are any)

clovis
30th October 2008, 02:37 AM
another Android noob question.
have you researched into USB drivers?

(just thinking: usb + ppp + (inetd or telnetd) == faster development)

clovis
30th October 2008, 02:42 AM
looks that stylus sensor is working :)
docking the stylus in the phone is the same as pressing "9" + "Home".

kState
30th October 2008, 02:51 AM
whas more interesting.... whats up with the image and how much progress has the person responsible done?

i only boot files published on url in this thread ;)

clovis
30th October 2008, 02:54 AM
Is it not more easier to start with a G1 dump and to change the drivers that need to? The G1 hardware should be very near from the diamond one.

maybe (some drivers can be built within kernel), but (suppousing you can) you will be stuck with this G1 version.
if they can build own kernel for diamond/raphael, then we can evolve with android.

jaduvet
30th October 2008, 11:13 AM
Hi all,

I really would like to help out with this task of getting the Android up and running on our Diamonds. Unfortunately i guess it will not be so - this time - since I have not done any development for handhelds before.

But as you understand of this post I really like to get in to it. I have some university skills from programming in c, c++, Java and PHP - and i hope to get some use of those.

Is there any of you experienced :cool: programmers that would like to publish some useful links on where to start? I need ALL the basics :)
Maybe there is a discussion on this somewhere else? I am specifically interested in development of Android on the diamond, therefore the post here.

FYI:
I got a Swedish "3" Tuch diamond that I have not dared to do anything with yet... So basically - where do i start? Now when i have decided to try out to be useful to the Android community?

Questions I have is for example: What development environment do you use?
What are the risks for the hardware / and existing software? And how do i reset it if i mess it up?


Ps. Please be patient with noobs like me :D and I hope we see the Android up and running soon on our Diamonds

EDITED:
FYI I have read the thread - ALL posts(!) And YES i know one could find lots of posts with some info on what I could need to get started. But I still very much would like some nice :cool: programmer to sum up where to go to get the basics. Reading all 583 posts to understand where it is best to start is not the easy way to start being useful (that was my conclusion by reading ALL posts).

liamhere
30th October 2008, 11:27 AM
Hi all,

I really would like to help out with this task of getting the Android up and running on our Diamonds. Unfortunately i guess it will not be so - this time - since I have not done any development for handhelds before.

But as you understand of this post I really like to get in to it. I have some university skills from programming in c, c++, Java and PHP - and i hope to get some use of those.

Is there any of you experienced :cool: programmers that would like to publish some useful links on where to start? I need ALL the basics :)
Maybe there is a discussion on this somewhere else? I am specifically interested in development of Android on the diamond, therefore the post here.

FYI:
I got a Swedish "3" Tuch diamond that I have not dared to do anything with yet... So basically - where do i start? Now when i have decided to try out to be useful to the Android community?

Questions I have is for example: What development environment do you use?
What are the risks for the hardware / and existing software? And how do i reset it if i mess it up?


Ps. Please be patient with noobs like me :D and I hope we see the Android up and running soon on our Diamonds


start reading the thread...that may be a start....most things you need are here

jaduvet
30th October 2008, 11:51 AM
start reading the thread...that may be a start....most things you need are here
FYI I have read the thread - ALL posts(!) And YES i know one could find lots of posts with some info on what I could need to get started. But I still very much would like some nice :cool: programmer to sum up where to go to get the basics. Reading all 583 posts to understand where it is best to start is not the easy way to start being useful (that was my conclusion by reading ALL posts).

skiwithpete
30th October 2008, 12:09 PM
FYI I have read the thread - ALL posts(!) And YES i know one could find lots of posts with some info on what I could need to get started. But I still very much would like some nice :cool: programmer to sum up where to go to get the basics. Reading all 583 posts to understand where it is best to start is not the easy way to start being useful (that was my conclusion by reading ALL posts).

Go to the Freenode channel HTC-Linux

dcordes
30th October 2008, 05:20 PM
i'm cool with testing on my sprint diamond too.. nand being harmful as to what, The internal storage being completely fried? Thats not a big deal, i've got bros in stores that'll switch me out ina heart beat :D

well as cr2 said, as long as you do not write, everything is ok. to my experience linux doesn't do random things like writing to a device if you don't want it to. I will attach a zImage with nand enabled. you can boot it along with a console initrd and try hexdump /dev/mtd0 see if you get data. or use dd.

please only try if you are familiar with console use. in case you would do things like cat blblabla > /dev/mtd0 that would be the ultimate brickage cause I think the spl and all are at the very beginning.

here's the .config (http://linuxtogo.org/~lgorris/diffs/config-raphael-nand) I used to build this from the raphael git.

Nilfik
30th October 2008, 05:26 PM
Hi sorry if its a bit offtopic O:)...

But what about gps navigation? I guess TomTom and Navigon wont work on android devices or?

keerttttt
30th October 2008, 05:28 PM
Allright, so i've got android version 0.8 working.
It's a bit difficult to align the screen, but you'll have to do it while it's booting.

http://kedar.palmlinux.cz/htc/htcraphael-android.jpg

Maybe netripper can make something so that it aligns automatic.

Download the files here:
http://www.ebudget.nl/android08/

itsallsubliminal
30th October 2008, 05:51 PM
Allright, so i've got android version 0.8 working.
It's a bit difficult to align the screen, but you'll have to do it while it's booting.

http://kedar.palmlinux.cz/htc/htcraphael-android.jpg

Maybe netripper can make something so that it aligns automatic.

Download the files here:
http://www.ebudget.nl/android08/

this is great to hear, but freezes on my sprint diamond on boot kernel... you think you can do an edit so it can work with internal storage?? please? :D

teddyen66
30th October 2008, 06:04 PM
boots nicely on my Diamond :-)
GREAT NEWS :-)

sensorama
30th October 2008, 06:04 PM
Cool shit. Boots on my raphael.
Will check it on my diamond later tonight.

ampao
30th October 2008, 06:12 PM
Allright, so i've got android version 0.8 working.
It's a bit difficult to align the screen, but you'll have to do it while it's booting.

http://kedar.palmlinux.cz/htc/htcraphael-android.jpg

Maybe netripper can make something so that it aligns automatic.

Download the files here:
http://www.ebudget.nl/android08/
Tried the files keeeerrttt.

Still at HTC Linux framebuffer console.

Cant seem to get to the screen you posted. Any tips what to do from here? Thanks.

mcage
30th October 2008, 06:18 PM
Confirm working on my Diamond, but indeed screen calibration is way off.
Cool big step though!

Pixel du Rezo
30th October 2008, 06:23 PM
Download the files here:
http://www.ebudget.nl/android08/

Is it possible to know how to use it ?
Copy all the files to the root of internal storage ? in a new directory ?

Thx for the answer.

mcage
30th October 2008, 06:34 PM
Is it possible to know how to use it ?
Copy all the files to the root of internal storage ? in a new directory ?

Thx for the answer.

Can be in a folder of your internal storage. Run the exe and your done.

druidu
30th October 2008, 06:36 PM
Allright, so i've got android version 0.8 working.
It's a bit difficult to align the screen, but you'll have to do it while it's booting.

http://kedar.palmlinux.cz/htc/htcraphael-android.jpg

Maybe netripper can make something so that it aligns automatic.

Download the files here:
http://www.ebudget.nl/android08/

Good job!

I have to emphasize this:

Calibration works only for the keyboard. The data is still reported to the Linux kernel in raw, unprocessed form (as the calibration should be libts's job, the touchscreen library that is).

As I already said, touchscreen and virtual keyboard drivers are in early form, useful only for developers to run stuff in the shell to make the rest of the drivers work :)

Also, touchscreen IRQs don't fire in Linux, not sure why. There should be a very suggestive message if they do fire (with lots of !!!!!!!!!!) -- I only got it to fire like 2 times, completely random -- or you find a way to make them fire, please tell me to fix the driver (right now it polls the touchscreen 20 times a second).

Did you make any changes to the kernel to boot it or was it just the initrd? I can make some changes so that the touchscreen gives calibrated results.

Edit: initrd also works with my older kernel build. Any changes to the initrd, maybe we can make the 1.0 boot? :)

liamhere
30th October 2008, 06:41 PM
please note this is very early stages

if you don't know what you are Doing...YOU WILL BRICK YOUR DIAMOND.

Global_Inferno
30th October 2008, 06:53 PM
Just so that people who might be interested know, today I downloaded the latest *.bin's and voila! It let me get passed the loading screen and I could see my UI for the first time. I believe it then locked up mind.. as I couldn't seem to "do" anything; but it's better than an endless loading screen!? :D

EDIT: The version in the Repos (http://linuxtogo.org/~lgorris/index.php?path=raphael_and_diamond-bootkit/) doesn't seem to work, I still get the endless loading screen. However the one from here: http://www.ebudget.nl/android08/ does indeed work.

DimitrisC
30th October 2008, 07:01 PM
Just a thought. Maybe all you great programmers working on getting android to HTC Touch Pro/Diamond should form a team and work together and make this thread dedicated to this cause so that an account is set up and we can donate to your work. People donate around this forum for cooked roms so I think its only fair we donate for android as well.

itsallsubliminal
30th October 2008, 07:05 PM
Is it possible to know how to use it ?
Copy all the files to the root of internal storage ? in a new directory ?

Thx for the answer.

Can be in a folder of your internal storage. Run the exe and your done.

Rezo, if that works for you, let me know, cuz its not working with my cdma internal storage :(

raymondw
30th October 2008, 07:06 PM
Cool
Downloaded the files on the wat home ;)
Booted for the first to Android 0.8 when I entered my living.

Also tried my own compiled Android 1.0 version, also boots oke :)
Got the touchscreen part partly funtional and got the "taskbar" on and off the screen!

Get a quick dinner now and than to the attick to play some more.

itsallsubliminal
30th October 2008, 07:09 PM
Cool
Downloaded the files on the wat home ;)
Booted for the first to Android 0.8 when I entered my living.

Also tried my own compiled Android 1.0 version, also boots oke :)
Got the touchscreen part partly funtional and got the "taskbar" on and off the screen!

Get a quick dinner now and than to the attick to play some more. awesome!!! could you please make some adjustments so it will boot from cdma internal storage??? i will test, i hope its not too hard for you to configure

keerttttt
30th October 2008, 07:19 PM
Cool
Downloaded the files on the wat home ;)
Booted for the first to Android 0.8 when I entered my living.

Also tried my own compiled Android 1.0 version, also boots oke :)
Got the touchscreen part partly funtional and got the "taskbar" on and off the screen!

Get a quick dinner now and than to the attick to play some more.

please do share the 1.0rom!

jamesd256
30th October 2008, 07:23 PM
Tried it on my Touch Pro, seems to work.

I have no idea why I did it, as it probably helps no one. I just wanted to see the Android GUI :)

Very cool stuff, things are really moving these last days.

koboldx
30th October 2008, 07:25 PM
Cool
Downloaded the files on the wat home ;)
Booted for the first to Android 0.8 when I entered my living.

Also tried my own compiled Android 1.0 version, also boots oke :)
Got the touchscreen part partly funtional and got the "taskbar" on and off the screen!

Get a quick dinner now and than to the attick to play some more.

Can you upload that? (Unbelievable how I just _need_ to see a phone GUI i won't be able to use ;)

cheeers

lifegrasp
30th October 2008, 07:29 PM
I have been tracking this thread and with the success of Android(even though its v.8) ...I will get on the development train.

I installed files on microSD and internal memory on my Sprint Htc Touch Pro.
http://www.ebudget.nl/android08/

I launch it from file manager in windows mobile and it starts to boot.. WOW!

...but alas it stops half way through the screen at:
...
[ 0.140000] console [htc_fb-1] enabled
[ 0.150000] console: colour dummy device 80x30
[ 0.160000] console handover: boot [htc_fb-1] -> real [tty0]


thats it ... stops there.

Still very cool to see this kind of progress.

toenail78
30th October 2008, 07:33 PM
I launch it from file manager in windows mobile and it starts to boot.. WOW!
...but alas it stops half way through the screen at:

[ 0.140000] console [htc_fb-1] enabled
[ 0.150000] console: colour dummy device 80x30
[ 0.160000] console handover: boot [htc_fb-1] -> real [tty0]

thats it ... stops there.

yeah so it seems sprints version is a little different.. i have the same problem loading it on my cdma touch diamond from sprint as well... but yeah, i have to agree with you guys the speed that you guys are getting this done is amazing... good job homies

itsallsubliminal
30th October 2008, 07:46 PM
I also vote for NetRipper and druidu checking out the NAND (internal storage) driver on raphael and diamond. It should be easy to do. Just build with mtd support (use halibut kernel config bits for nand and mtd configs) and see if it gets you /dev/mtd? with readable data. on the kaiser that works. we just didn't sort out the partition table...

edit: to whoever tries that: playing with nand can be harmful
we need someone to do this... i wish i knew how to, but i dont but i will test

LeLapinVengeur
30th October 2008, 08:23 PM
when you touch the screen the pointer location is on the opposite on the Horizontal axis (mirror effect) :D

So you can play to ^^

computerguru
30th October 2008, 08:31 PM
I have been tracking this thread and with the success of Android(even though its v.8) ...I will get on the development train.

I installed files on microSD and internal memory on my Sprint Htc Touch Pro.
http://www.ebudget.nl/android08/

I launch it from file manager in windows mobile and it starts to boot.. WOW!

...but alas it stops half way through the screen at:
...
[ 0.140000] console [htc_fb-1] enabled
[ 0.150000] console: colour dummy device 80x30
[ 0.160000] console handover: boot [htc_fb-1] -> real [tty0]


thats it ... stops there.

Still very cool to see this kind of progress.

Yes...the Sprint phones still have a problem...because I haven't had a chance to check out the code yet :).

I just got the dev environment sat up last night, and got the source code installed via git. As soon as I figure out how to go through the kernel config for the diamond...lol...I'll take a look and try to figure out where it's failing at (it may not be during the console handover...but something happening after it...)

Trust me...I'm just as eager to get this running on my Diamond as well. The Android 0.8 screenshots on the Raphael are very inspirational...lol. :-D

rvbcrs
30th October 2008, 08:50 PM
Great, Great work guys I have to say! 0.8 boots up just fine! now I hope someone can share 1.0 so we can try that one too?

woggle
30th October 2008, 09:10 PM
working ok on my o2 xda ignito even the light sensor is working lol not tried anything else yet.

nextavenger
30th October 2008, 09:22 PM
n00b question but how does one go back to Windows Mobile ? do u press the rest button ?

Edit - android works fine for me

Edit 2 - pressed the reset button, windows mobile has loaded :)

spone1
30th October 2008, 09:49 PM
Just tested the 0.8 of Android on my MDA Compact IV - DIAM200.

It boots, although the onscreen keyboard is flickering quite a bit (probably a framebuffer thing) and it hangs for about 5-6 seconds on "console handover", then I see a red sideways-moving bar and finally the gui (including a wallpaper).

As soon as I attempt to do anything it seems to crash and doesn't repaint anymore. Occasionally I manage to slide down some kind of panel, but it doesn't contain any items or text (I assume that is intentional).

Is this the current state as it should be or should you be able to do some basic things?

BDWN
30th October 2008, 09:52 PM
Just tested the 0.8 of Android on my MDA Compact IV - DIAM200.

It boots, although the onscreen keyboard is flickering quite a bit (probably a framebuffer thing) and it hangs for about 5-6 seconds on "console handover", then I see a red sideways-moving bar and finally the gui (including a wallpaper).

As soon as I attempt to do anything it seems to crash and doesn't repaint anymore. Occasionally I manage to slide down some kind of panel, but it doesn't contain any items or text (I assume that is intentional).

Is this the current state as it should be or should you be able to do some basic things?

Exactly the same here on my DIAM100. Still pretty awesome tho :) .

jr_daza
30th October 2008, 09:57 PM
it boot, but i cant open any aplication, the oly thing that i can do was slide the top bar to the botom.

keep the goog work guys tks a lot

jeesus123
30th October 2008, 09:57 PM
Managed to get Android running on my Touch Pro, bit annoying to browse around as screen is like a mirror... like if you want to press button on right corner you need to tap screen from opposite corner.

Download link to package I used to boot Android if you want to play around:

http://rapidshare.com/files/159117622/android.rar.html

mirror

http://www.2shared.com/file/4189390/8a07c9ca/android.html


Some screenshots:

spone1
30th October 2008, 10:01 PM
@jr_daza
I suffer from exactly the same.

@jeesus123
What do you mean with 'like a mirror'?
edit: ah, your edit explains :)

druidu
30th October 2008, 10:05 PM
It's because of the touchscreen driver, it only sends raw, uncalibrated data to the kernel input system (and also mirrored on the X axes -- you would tap on the left of the screen and Android would get the tap on the right of the screen).

I'll try to fix the driver to work properly, but linuxtogo is very slow and seems it will take forever to download the repo.

I'd appreciate it if someone would post a working Android 1.0 initrd, I don't have time to look into that.

dexxa05
30th October 2008, 10:17 PM
Hi druidu,

How can i can get android 1.0 initrd??? How i can compile..?

Thx in advance

keerttttt
30th October 2008, 10:49 PM
Ok, first of all.. i didn't do that much to get 0.8 working, just toyed around with settings, expirimented a bit and compared different sources. The main credits go to guys lik druidu, netripper and other guys i'm forgetting for getting things like the framebuffer to work.

Besides that, it would be really cool to have a 1.0 initrd, could someone or rip it from the SDK (i thought that was possible, rom dumping scripts if they work should be in the dream forum under rom dump) or from the source version.

And as i understand, we are still miles away from a good working android 1.0 version, a lot has to be done, and we have to hope that that road isn't too bumpy ;)

Nevertheless, it's really cool to see android on my diamond, i love the high res :cool:

NikPraskaton
30th October 2008, 11:10 PM
This file is neither allocated to a Premium Account, or a Collector's Account, and can therefore only be downloaded 10 times.

This limit is reached. Damn!

keerttttt
30th October 2008, 11:14 PM
This file is neither allocated to a Premium Account, or a Collector's Account, and can therefore only be downloaded 10 times.

This limit is reached. Damn!

Que, which file?
Edit: I donno what that file really was, but you can download it from my site, the whole android 0.8 package:
http://www.ebudget.nl/android08/
I don't really have a tight bandwith limit ;)

NikPraskaton
30th October 2008, 11:16 PM
Managed to get Android running on my Touch Pro, bit annoying to browse around as screen is like a mirror... like if you want to press button on right corner you need to tap screen from opposite corner.

Download link to package I used to boot Android if you want to play around:

http://rapidshare.com/files/159117622/android.rar.html


Some screenshots:

This one..

keerttttt
30th October 2008, 11:23 PM
This one..
Yes well, what's the difference with that one and my android version on my site? I don't really understand what that file would do...

itsallsubliminal
30th October 2008, 11:25 PM
hey guys, what are you using to edit these files? and what file/files are responsible for the code enabling the cdma diamond to boot? I have ubuntu on my laptop and wana just take a look at these codes, tho i know very very little... gotta start somewhere :D

so if someone can direct me as to how to open/edit/view these files, it would be much appreciated!

NikPraskaton
30th October 2008, 11:26 PM
Nevermind.. I downloaded the other one. Didnt know there arent any differences.. Tnx for the link.

TripleQ
30th October 2008, 11:44 PM
http://it029000.massey.ac.nz/vogue/

There you can download a 1.0 initrd...
dono if we can use it? I tried too run it, with our own zImage..but we need sdcard access for that... (it says: cannot mount sdcard..)

[edit]
Thats because the 1.0 initrd is too large for use with haret, so we need to load a smaller one before this one, and load the 1.0 initrd from sdcard.

keerttttt
31st October 2008, 12:02 AM
Oh yeah, something else... i heard (and tried) you can also make/recieve calls, too bad the speaker and microphone don't work/ are missing drivers, but apart from that, nice ;)

keerttttt
31st October 2008, 12:08 AM
if it was possible to use the internal storage from our diamond....

komteks
31st October 2008, 12:55 AM
My latest haret log file attached.

I am getting past the haret booting linux screen and I now see the HTC Linux framebuffer console by druidu screen

When the linux boot stops the last line reads

[ 0.160000] console handover: boot [htc_fb-1] -> real [tty0]

Again this is on a 3 day old Sprint HTC Touch Pro

lifegrasp
31st October 2008, 01:10 AM
My latest haret log file attached.

I am getting past the haret booting linux screen and I now see the HTC Linux framebuffer console by druidu screen

When the linux boot stops the last line reads

[ 0.160000] console handover: boot [htc_fb-1] -> real [tty0]

Again this is on a 3 day old Sprint HTC Touch Pro


I am on sprint too..and having the same issues... how did you get that output log? where is it?

komteks
31st October 2008, 01:21 AM
You create an empty earlyharetlog.txt in the same directory as the haret.exe file.

When you run haret a haretlog.txt file will be created.

I am on sprint too..and having the same issues... how did you get that output log? where is it?

NetRipper
31st October 2008, 01:39 AM
You create an empty earlyharetlog.txt in the same directory as the haret.exe file.

When you run haret a haretlog.txt file will be created.
The log only goes up to the "go go go". It won't log anything regarding linux.

christofur84
31st October 2008, 02:13 AM
The log only goes up to the "go go go". It won't log anything regarding linux.


I get the same thing, any ideas?

firesoul76
31st October 2008, 02:16 AM
Hey people!

Hi to everybody! Let me tell to all....I'm amazed! My english isn't good enought and speak spanish because that i not usually write posts.

But, Congratulations for your big work here!!!!!

komteks
31st October 2008, 02:39 AM
The log only goes up to the "go go go". It won't log anything regarding linux.

Ok below is the entire Linux boot sequence. Hope it helps:


HTC Linux framebuffer console by druidu

k[ 0.000000] Linux version 2.6.25-00657-gb2297b2 (root@eagle) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-39) ) #1 PREEMPT Wed Oct 29 14:29:39 CET 2008
[ 0.000000] CPU: ARMv6-compatible processor [4117b362] revision 2 (ARMv6TEJ), cr=00c5387f
[ 0.000000] Machine: HTC raphael cellphone (aka HTC Touch Pro)
[ 0.000000] Memory policy: ECC disabled, Data cache write back
[ 0.000000] clock_init()
[ 0.000000] ACPU running at 528000 KHz
[ 0.000000] CPU0: D VIPT write-back cache
[ 0.000000] CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
[ 0.000000] CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on, Total pages: 23876
[ 0.000000] Kernel command line: root=/dev/ram0 ro init=/init console=tty0 mem=94M
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.140000] console [htc_fb-1] enabled
[ 0.150000] console: colour dummy device 80x30
[ 0.160000] console handover: boot [htc_fb-1] -> real [tty0]


What can be causing the problem?

nashmage
31st October 2008, 03:07 AM
Ok below is the entire Linux boot sequence. Hope it helps:


HTC Linux framebuffer console by druidu

k[ 0.000000] Linux version 2.6.25-00657-gb2297b2 (root@eagle) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-39) ) #1 PREEMPT Wed Oct 29 14:29:39 CET 2008
[ 0.000000] CPU: ARMv6-compatible processor [4117b362] revision 2 (ARMv6TEJ), cr=00c5387f
[ 0.000000] Machine: HTC raphael cellphone (aka HTC Touch Pro)
[ 0.000000] Memory policy: ECC disabled, Data cache write back
[ 0.000000] clock_init()
[ 0.000000] ACPU running at 528000 KHz
[ 0.000000] CPU0: D VIPT write-back cache
[ 0.000000] CPU0: I cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
[ 0.000000] CPU0: D cache: 32768 bytes, associativity 4, 32 byte lines, 256 sets
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on, Total pages: 23876
[ 0.000000] Kernel command line: root=/dev/ram0 ro init=/init console=tty0 mem=94M
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.140000] console [htc_fb-1] enabled
[ 0.150000] console: colour dummy device 80x30
[ 0.160000] console handover: boot [htc_fb-1] -> real [tty0]


What can be causing the problem?

This is a sprint phone right? i have a sprint diamond and i get the same thing...

komteks
31st October 2008, 03:16 AM
Yes. Sprint HTC Touch Pro This is a sprint phone right? i have a sprint diamond and i get the same thing...

itsallsubliminal
31st October 2008, 05:27 AM
cdma is the problem... hopefully we can get someone to try to figure this out. cuz as soon as android is on my sprint diamond, goodbye winmo and tf3d for a LOOOOOONG time lol

christofur84
31st October 2008, 08:58 AM
theres no time for sleep!

K_Hismoom
31st October 2008, 09:18 AM
That's a great success, guys. Congrats on that!

I have noticed an interesting thing. Even though I don't enter my PIN to access the SIM-card, the phone is able to receive calls. How can that be?

rl2000
31st October 2008, 09:21 AM
Because you already activated stuff like that in winmo and it boots on top of that I guess.

K_Hismoom
31st October 2008, 09:33 AM
Ah, sure. Didn't think of that.
Thanks for the info :)

g.lamprou
31st October 2008, 09:49 AM
I try the 0.8 first time see android in my diamond! Keyboard stack ok... but i think is a step forward...i think touchscreen not working yet but its a step is a good step!!!

Bandit13
31st October 2008, 10:13 AM
I try the 0.8 first time see android in my diamond! Keyboard stack ok... but i think is a step forward...i think touchscreen not working yet but its a step is a good step!!!

Touchscreen works but as a mirror (if u want to click left, clik right) because of drivers issue ;)

Sebastien

refl3x0r
31st October 2008, 10:44 AM
Hey Guys, isnt it possible to modify the touchscreen driver to map the x-coordinates mirrored? Are you possibly working on that yet?

NetRipper
31st October 2008, 11:04 AM
Hey Guys, isnt it possible to modify the touchscreen driver to map the x-coordinates mirrored? Are you possibly working on that yet?
I think druidu already mentioned he will modify the touchscreen driver to report calibrated results instead of the current raw output. Let's be patient. :)

sascha.egerer
31st October 2008, 12:06 PM
Hi!

I've started Android on my Touch Diamond. After that I've soft reset my device.
Since this reboot i can't execute the most of my applications. I get everytime the unsigned certificate errormessage. (don't know the message in english because it is a german device)

Can anybody help me? I don't want to hardreset my device.

Thx and please GET ANDROID RUNNING!!! :rolleyes:

[EDIT]
the user 'geh' got the same problem.
http://forum.xda-developers.com/showthread.php?t=383065&page=2

NetRipper
31st October 2008, 12:13 PM
Hi!

I've started Android on my Touch Diamond. After that I've soft reset my device.
Since this reboot i can't execute the most of my applications. I get everytime the unsigned certificate errormessage. (don't know the message in english because it is a german device)

Can anybody help me? I don't want to hardreset my device.

Thx and please GET ANDROID RUNNING!!! :rolleyes:

[EDIT]
the user 'geh' got the same problem.
http://forum.xda-developers.com/showthread.php?t=383065&page=2
Druidu has had this problem as well, and to my knowledge, he also had to hard-reset to solve the problem. He could install cabs, but not start most of the .exe's.

Not sure where this is coming from - may have to do with the Linux thing, or that windows mobile was saving something critical at the exact moment when Linux get's booted.

MasterOfDesasters
31st October 2008, 12:15 PM
same prob here as well :-)

dejant_9
31st October 2008, 12:21 PM
works fine on Xpurple 5b FRA. No "exe" problem after booting linux 6 time yesterday. We REALY need an other OS smoother and more "human friendly" than winmo. keep up the good work!! thanks

remi.rez
31st October 2008, 12:30 PM
My feedback.
I've booted the Android 1.0 package (I think, it doesn't llok like the one on the G1 though).
No booting poblem, but all I could do was pull down the task manger/switcher and bring it back up again. And the visual keyboard was flickering a lot.
No problem when I rebooted under WinMo
I used a Diamond with a 1.93 Rom (can't remember which one lol).

Very encouraging, and nice sharp UI apparently.
Can't wait.

1 question, what happens when booting Android 1.0 and where can I find it?
Cheers

keerttttt
31st October 2008, 12:53 PM
My feedback.
I've booted the Android 1.0 package (I think, it doesn't llok like the one on the G1 though).
No booting poblem, but all I could do was pull down the task manger/switcher and bring it back up again. And the visual keyboard was flickering a lot.
No problem when I rebooted under WinMo
I used a Diamond with a 1.93 Rom (can't remember which one lol).

Very encouraging, and nice sharp UI apparently.
Can't wait.

1 question, what happens when booting Android 1.0 and where can I find it?
Cheers

i think you're booting android 0.8, do you see a digital clock? or do you also se a large analog clock.

does it look like this: ?
http://arstechnica.com/news.media/android_phone.png

Or like this:
http://images.mirror.co.uk/upl/m4/sep2008/5/8/8E4FDDB4-BC56-4530-2E67ED1ED70F158C.jpg

ndCChris
31st October 2008, 12:58 PM
where's the link to android 1.0?

druidu
31st October 2008, 01:10 PM
Druidu has had this problem as well, and to my knowledge, he also had to hard-reset to solve the problem. He could install cabs, but not start most of the .exe's.

Not sure where this is coming from - may have to do with the Linux thing, or that windows mobile was saving something critical at the exact moment when Linux get's booted.

It seems some dll gets corrupted eventually (most internal apps can run, but no exe, even if it was already installed on your system). You were unlucky I guess, I attempted to boot the kernel like 500 times before it happened (no kidding :D).

remi.rez
31st October 2008, 01:19 PM
i think you're booting android 0.8, do you see a digital clock? or do you also se a large analog clock.


No, there's no clock, I'm on 0.8.
Does anyone manage to do anything under 0.8?
I can only play with the top 'curtain'.
Cheers

keerttttt
31st October 2008, 01:20 PM
It seems some dll gets corrupted eventually (most internal apps can run, but no exe, even if it was already installed on your system). You were unlucky I guess, I attempted to boot the kernel like 500 times before it happened (no kidding :D).

Hey Druidu, how hard do you think it will be to make the internal storage/storage card visible in linux.
The 1.0 rom is too big to load from haret, so we will have to boot that from the storage i guess... (and we need a storage driver sooner or later anyway).

g.lamprou
31st October 2008, 02:06 PM
Touchscreen works but as a mirror (if u want to click left, clik right) because of drivers issue ;)

Sebastien

Thanx i try it now!

Anyone link for 1.0?

remi.rez
31st October 2008, 02:32 PM
Thanx i try it now

Missed the fact that touchscreen works in mirror.
It MIGHT be easy to quickly fix.
Anyone figured how to close an app in Android 0.8 on the diamond?

rl2000
31st October 2008, 02:51 PM
Yes, just insert the stylus and pull it back out and you're back on the desktop.

daniel.bigred
31st October 2008, 02:56 PM
i've gotten the browser open in 0.8 but can't manage to type a search field.
good on all of you for keeping this thread alive... the diamond and raphael are perfect WM devices to run ANDROID.

hopefully we can get it to run properly, i am also willing to test new builds...

keerttttt
31st October 2008, 04:20 PM
i've gotten the browser open in 0.8 but can't manage to type a search field.
good on all of you for keeping this thread alive... the diamond and raphael are perfect WM devices to run ANDROID.

hopefully we can get it to run properly, i am also willing to test new builds...

if you align the virtual keyboard, you can use that one to type when you're using the browser, i thought a bar wil automatically pop up when you start typing.

Toug
31st October 2008, 05:33 PM
Am I blind?:) I can't find any links for Android 1.0.

Please let us dream :)

H3PO
31st October 2008, 06:19 PM
several pages ago, someone posted a rapidshare link (which is now broken) and a pretty slow mirror: http://www.2shared.com/file/4189390/...a/android.html

take a look into my blog, i'm now creating a mirror and i'll report any news regarding android on diamond / ignito.

remi.rez
31st October 2008, 06:34 PM
I'm pretty sure the one you have on your sever is 0.8.
1.0 won't boot for now because of the intdr (?) being too big (don't ask me more lol).

All i've understood is that it's necessary to get a working driver for the internal storage to be able to boot 1.0. I'm sure the great coders on the forum are hard at work for our greatest pleasure.

In the meantime, you should amend your blog.

jr_daza
31st October 2008, 06:35 PM
Hello guys, i could manage to enter to the applications with the mirror advice there is one called point locator that shows you the location of the stylus whet it touch the screen and show the coordinates, I also enter to the maps but no map appear and to the browser but when I restar the system window does not boot so I have to hard reset :(

But I will doit again…:)

christofur84
31st October 2008, 06:39 PM
So is it just a radio issue with the CDMA to boot linux?

H3PO
31st October 2008, 06:47 PM
Thanks, I corrected that. I didn't even check the release ;)

bloatboy
31st October 2008, 07:26 PM
A quick note on initrd (this is just general info, not all parts are specific to android).

The initrd file contains a filesystem that is loaded into ram (initial ram disk) and is passed to the kernel from the bootloader (in this case Haret, but on other systems grub/lilo/elilo/etc).

The initrd normally is very small and just contains things like drivers, device files, a handful of utilities. Just enough (normally) to mount the real filesystem and get the system going for real. As an example, I have a few initrd files for this pc that weigh in at about 3mb.

We need a bigger initrd for Android and haret loads because in the absence of a mountable filesystem, we need pretty much everything in the initrd. In theory, once we have a good nand driver, the android files can be put on internal storage and the initrd pared down, or even bypassed altogether in favor of the internal storage device/filesystem.

Editing an initrd varies based on how it is created, but in the case of

http://it029000.massey.ac.nz/vogue/initrd-android

it is extracted thusly:

$ mkdir work (make a little workspace for the initrd)
$ cd work

$ gunzip -c ../initrd-android | sudo cpio -i (unpack the initrd into the workspace - ubuntu users)

or

$ su (non ubuntu users)
# gunzip -c ../initrd.gz | cpio -i (non ubuntu users)

At this point, the initrd has been expanded into the workspace and you should see something much like this:

$ ls -l
total 132
drwxrwxrwx 11 danh danh 4096 2008-10-30 16:59 data
drwxr-xr-x 3 root root 4096 2008-10-30 16:59 dev
drwxr-xr-x 5 root root 4096 2008-10-30 16:59 etc
-rwxr-xr-x 1 root root 91952 2008-10-30 16:59 init
drwxr-xr-x 2 root root 4096 2008-10-30 16:59 proc
drwxr-xr-x 2 root root 4096 2008-10-30 16:59 sbin
drwxr-xr-x 2 root root 4096 2008-10-30 16:59 sys
drwxr-xr-x 12 root root 4096 2008-10-30 16:59 system
drwxrwxrwt 2 root root 4096 2008-10-30 16:59 tmp
drwxr-xr-x 3 root root 4096 2008-10-30 16:59 var

$ sudo du -c -h -s
36M .
36M total

At which point, you could make changes. When finished with your changes, you would repack the files.

$ sudo find . | sudo cpio -o | gzip -9v -c - > ../initrd-new

Having looked at this filesystem, I don't think there is much fat to cut and we may have to patch Haret to try and load a bigger initrd, and/or wait for a nand driver and try to put the files on internal storage and mount that instead.

microlomaniac
31st October 2008, 07:26 PM
Hey guys,

I first want to say that I'm really looking forward to you getting Android running on the Diamond! I am very dissapointed with my Diamond because it has more than 2x the speed in MHz but it feels slower than my good old xda neo (even with dutty's ROM)...

Anyway, since we're booting into Unix here, wouldn't it also be possible to boot into OSX at some point? I mean, the iPhone-OSX of course. How cool would that be, the iPhone software on a much better looking VGA device! Just a thought of mine.

Nevertheless, keep up the good work!! I'm planning on donating to those who get Android running, since it would certainly add to my Diamond's value.

Cheers and good luck,
Charles

Toug
31st October 2008, 07:43 PM
Thanks, I corrected that. I didn't even check the release ;)

Is it possible you post the 1.0 ?

computerguru
31st October 2008, 08:18 PM
Ok...from reading the various forum posts over the past couple of days...it looks like the Sprint issue is with CDMA. I know nothing about CDMA (other than it's the cell phone technology used by Sprint/Verizon/Alltel and doesn't use a SIM.)

I'll still take a stab at fixing it...but no promises...

lifegrasp
31st October 2008, 09:45 PM
Ok...from reading the various forum posts over the past couple of days...it looks like the Sprint issue is with CDMA. I know nothing about CDMA (other than it's the cell phone technology used by Sprint/Verizon/Alltel and doesn't use a SIM.)

I'll still take a stab at fixing it...but no promises...

Hey ... let me know how you attempt to fix.... I am trying to learn this whole hacking cell phones with Linux "thing". Be happy to test your code as well.

H3PO
31st October 2008, 09:48 PM
Does anyone know which drivers are currently compiled into the kernel? I wonder if it was possible to get a console session running on one of the network devices... If I remember right, the G1 has the same qualcomm chipset with integrated wlan - right? So it should be possible to get a network connection running.

Is somebody working on that already?

@Toug: I just mirrored the file which was posted at page 62 by jeesus123 (Entry 617 (http://forum.xda-developers.com/showpost.php?p=2843723&postcount=617))

@raymondw: you seem to be the first one to get the 1.0 running, could you please share your image?

marios96
31st October 2008, 10:32 PM
First of all, since this is my first post in this thread, a BIG thanks to everyone that contributes in the project.

I just want to mention something, that I am sure some will find interresting.
There is an open discussion in Android Community, if G1 support multitouch or not. Specifically, a user in this video (http://www.youtube.com/watch?v=urICBOt8wc8&feature=related) demonstrates the existence of multitouch by using the upper task bar in android. I can't be more specific, but if you see the video you will understand.

What is interesting though, is that I get (as most of you will get) the same reaction on my TP. Don't know if that means anything, but it's something for you to try untill the project is finished!

EDIT: Actually, I do know what that means... Android uses the touchscreen a lot different than WM... Windows Mobile seems sooo old...:(

willyy1991
31st October 2008, 11:03 PM
First of all, since this is my first post in this thread, a BIG thanks to everyone that contributes in the project.

I just want to mention something, that I am sure some will find interresting.
There is an open discussion in Android Community, if G1 support multitouch or not. Specifically, a user in this video (http://www.youtube.com/watch?v=urICBOt8wc8&feature=related) demonstrates the existence of multitouch by using the upper task bar in android. I can't be more specific, but if you see the video you will understand.

What is interesting though, is that I get (as most of you will get) the same reaction on my TP. Don't know if that means anything, but it's something for you to try untill the project is finished!

EDIT: Actually, I do know what that means... Android uses the touchscreen a lot different than WM... Windows Mobile seems sooo old...:(
This is not multi touch, my diamond does this too in the programs tab ;)

mytrinity
31st October 2008, 11:04 PM
Note that G1 as not the same type of touchscreen as most HTC phones have.
So it is possible that the Diamond will not support multitouch as the G1 does.

First of all, since this is my first post in this thread, a BIG thanks to everyone that contributes in the project.

I just want to mention something, that I am sure some will find interresting.
There is an open discussion in Android Community, if G1 support multitouch or not. Specifically, a user in this video (http://www.youtube.com/watch?v=urICBOt8wc8&feature=related) demonstrates the existence of multitouch by using the upper task bar in android. I can't be more specific, but if you see the video you will understand.

What is interesting though, is that I get (as most of you will get) the same reaction on my TP. Don't know if that means anything, but it's something for you to try untill the project is finished!

EDIT: Actually, I do know what that means... Android uses the touchscreen a lot different than WM... Windows Mobile seems sooo old...:(

rvbcrs
31st October 2008, 11:08 PM
First of all, since this is my first post in this thread, a BIG thanks to everyone that contributes in the project.

I just want to mention something, that I am sure some will find interresting.
There is an open discussion in Android Community, if G1 support multitouch or not. Specifically, a user in this video (http://www.youtube.com/watch?v=urICBOt8wc8&feature=related) demonstrates the existence of multitouch by using the upper task bar in android. I can't be more specific, but if you see the video you will understand.

What is interesting though, is that I get (as most of you will get) the same reaction on my TP. Don't know if that means anything, but it's something for you to try untill the project is finished!

EDIT: Actually, I do know what that means... Android uses the touchscreen a lot different than WM... Windows Mobile seems sooo old...:(

I'm sorry, but that is NOT multitouch, you see how the touchscreen forgets it previous position when you touch another finger somewhere else.. Nope.. this is no multitouch..

marios96
31st October 2008, 11:11 PM
Note that G1 as not the same type of touchscreen as most HTC phones have.
So it is possible that the Diamond will not support multitouch as the G1 does.

I really really doubt it... Multitouch support exists only in Capacitive screens. Both TP and Diamond have resistive...

PLEASE KEEP IN MIND THAT I NEVER IMPLIED THAT TP OR DIAMOND HAVE MULTITOUCH!

geh
31st October 2008, 11:19 PM
I'm sorry, but that is NOT multitouch, you see how the touchscreen forgets it previous position when you touch another finger somewhere else.. Nope.. this is no multitouch..

yes, the mousepad of my laptop react like that too.

quark1980
31st October 2008, 11:26 PM
yup, defenitly NOt multitouch, the video demostrating is the fact the screen middles out the input, in effect getting a valeu that lies between the fingers...

sure you can touch it more then one spot, but the value reading is just one value..
typical resistive touchscreen behaviour...

dont get ure hopes up pplz.. guys demostrating this sort of stuff and then claiming it much be multitouch, just because THEY cannot explain the behaviour is just utter nonsense...

geh
31st October 2008, 11:26 PM
Now, I'm here to find a solution for my current problem.

I've tried to boot Android on my Diamond, but I totally messed up the screen calibration process. I was unable to use the onscreen keyboard, and had to remove the battery to reinitialize my phone.
Since then, I cannot execute any non signed program (putty, total commander, ...) : when I try to launch one, I got a complain about non signed file or missing component.

To find a solution, I googled a little, and posted here too :
http://forum.xda-developers.com/showthread.php?p=2844228#post2844228

But I didn't find a solution.
Someone has an idea ?

geh
31st October 2008, 11:43 PM
Will code for food !

Just a joke. I will be happy to get rid of this crappy WM6. Do you have some links to useful pages/people, I can help with some C/Linux skills.

sazinas
31st October 2008, 11:47 PM
Will code for food !

Just a joke. I will be happy to get rid of this crappy WM6. Do you have some links to useful pages/people, I can help with some C/Linux skills.

Well as far as I know these guys: http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux
need some help porting android...:D

geh
31st October 2008, 11:56 PM
Well as far as I know these guys: http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux
need some help porting android...:D

Thanks, for sure it's a good start. I downloaded the .exe there.
But I did not find any contact link on this page !

sazinas
1st November 2008, 12:11 AM
Thanks, for sure it's a good start. I downloaded the .exe there.
But I did not find any contact link on this page !

Hmm, why don't u try contacting NetRipper (http://forum.xda-developers.com/member.php?u=284440) and druidu (http://forum.xda-developers.com/member.php?u=1267334).

(with apologies to both if they didn't want to be disturbed...)

NetRipper
1st November 2008, 12:17 AM
Thanks, for sure it's a good start. I downloaded the .exe there.
But I did not find any contact link on this page !
I think it clearly reads we can be found on #htc-linux on irc.freenode.org ;)

geh
1st November 2008, 12:58 AM
sazinas, netripper, thanks. I'm on the way !

druidu
1st November 2008, 04:28 AM
Ok, so I started playing with nand flash.

Tried to read from /dev/mtdblock0.
Conclusion is that you can't really read directly unless you make changes in the kernel. This is because by default Linux uses caching and will only make 512-byte requests. The driver only wants sizes a multiple of 2048 bytes. Opening /dev/mtdblock0 with O_DIRECT (which should bypass cache) gives invalid operation on read.

On the other hand, tried dumping /dev/mtd0 (which is a char device for accesing nand flash). First 2048 bytes are all 0xFF, so I'm guessing the driver's not reading correctly.

I also tried mounting /dev/mtdblock0 as Android's init does. DO NOT TRY IT unless you know what you are doing. After a lot of messages like:

msm_nand_read_oob %llx %x %x failed -64, corrected 0
(don't have the exact output, that's a paste from the printk)

It started at some point to do some erases (although I mounted as readonly so it shouldn't have touched the device), and after I restarted my device was bricked. With some help from cmonex on #xda-devs I managed to unbrick it (it seems I only had to reflash the OS image).

So, it is very important not to let the default Android init script mount /dev/mtdblock0 at this point because it will most likely brick it. (I mounted it myself, but at some point Android may do that if you boot it).

sfjuocekr
1st November 2008, 06:20 AM
Cool
Downloaded the files on the wat home ;)
Booted for the first to Android 0.8 when I entered my living.

Also tried my own compiled Android 1.0 version, also boots oke :)
Got the touchscreen part partly funtional and got the "taskbar" on and off the screen!

Get a quick dinner now and than to the attick to play some more.


Could you please link us towards the sources and/or share yours?

I've been working with Linux since 1998 and eager to lay my hands on Android!


Now that the framebuffer has been fixed, lets get working on gathering data on the rest of the hardware.


Could someone point me to the sources and patches needed for the Android kernel to compile it myself and maybe even the OS sources?

So far it seems to work great, just lacking hardware support but with datasheets and some hardwork that would not be much of a problem. All in all someone please kick me on my way to the sources and patches, will be spending lonely nights on this ><

sfjuocekr
1st November 2008, 06:47 AM
I pushed the druidu and NetRipper kernel code for the htc diamond and htc raphael to the new branch htc-msm-2.6.25 (http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=shortlog;h=refs/heads/htc-msm-2.6.25) at git.linxutogo.org . it is a clone of the g1 branch (http://git.android.com/?p=kernel.git;a=shortlog;h=android-msm-htc-2.6.25) from git.android.com with their code added.

in order to build check the kaiser kernel building instructions at http://forum.xda-developers.com/showthread.php?p=2269384#post2269384 and make sure you rpleace the branch htc-msm with htc-msm-2.6.25 and defconfig_htckaiser with defconfig_htcraphael (for both, raphael and diamond because they both use the raphael machine for now)

enjoy

edit: you can find a build of that code at http://linuxtogo.org/~lgorris/builds/zImage-htcraphael-20082810-07

Found it, gonna compile a new thread with all the useful links and know hows to get things organized.

... first sleep ><


/edit: http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux

teddyen66
1st November 2008, 08:19 AM
Ok, so I started playing with nand flash.

Tried to read from /dev/mtdblock0.
Conclusion is that you can't really read directly unless you make changes in the kernel. This is because by default Linux uses caching and will only make 512-byte requests. The driver only wants sizes a multiple of 2048 bytes. Opening /dev/mtdblock0 with O_DIRECT (which should bypass cache) gives invalid operation on read.

On the other hand, tried dumping /dev/mtd0 (which is a char device for accesing nand flash). First 2048 bytes are all 0xFF, so I'm guessing the driver's not reading correctly.

I also tried mounting /dev/mtdblock0 as Android's init does. DO NOT TRY IT unless you know what you are doing. After a lot of messages like:

msm_nand_read_oob %llx %x %x failed -64, corrected 0
(don't have the exact output, that's a paste from the printk)

It started at some point to do some erases (although I mounted as readonly so it shouldn't have touched the device), and after I restarted my device was bricked. With some help from cmonex on #xda-devs I managed to unbrick it (it seems I only had to reflash the OS image).

So, it is very important not to let the default Android init script mount /dev/mtdblock0 at this point because it will most likely brick it. (I mounted it myself, but at some point Android may do that if you boot it).

oh wow....lucky it could be saved.

NetRipper
1st November 2008, 03:55 PM
Found it, gonna compile a new thread with all the useful links and know hows to get things organized.

... first sleep ><


/edit: http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux
You're free to edit the RaphaelLinux page to make it more informative and point it to guides. That way we only need to point people to the RaphaelLinux wiki page instead of having multiple threads around.

[edit...]
And people, try not to mess with the /dev/mtd* nodes unless you really know what you're doing. Druidu's device was saved, but you may not be as fortunate.

Also note that the "internal storage" for Diamond devices is NOT on the NAND, so we do not really need to get NAND (=/dev/mtd*) working. It's probably more like a fixed SD card. Not sure if it is via the same interface as sd card on raphael though. We'll have to test that.

sfjuocekr
1st November 2008, 06:55 PM
You're free to edit the RaphaelLinux page to make it more informative and point it to guides. That way we only need to point people to the RaphaelLinux wiki page instead of having multiple threads around.

[edit...]
And people, try not to mess with the /dev/mtd* nodes unless you really know what you're doing. Druidu's device was saved, but you may not be as fortunate.

Also note that the "internal storage" for Diamond devices is NOT on the NAND, so we do not really need to get NAND (=/dev/mtd*) working. It's probably more like a fixed SD card. Not sure if it is via the same interface as sd card on raphael though. We'll have to test that.

NetRipper, editing the wikipage is the right step forward but as Ive just stumbeled upon the thread and read it for two days now I came to the conclusion we needed to markup a correct list first. No point in updating the wiki with outdated info, hence I made the other thread to give us a headstart.


Also like you already mentioned, don't mess with the /dev/mtd* devices. I highly suspect the Diamond to have another form of storage, did anyone open his Diamond to check whats inside there (maybe pictures)?



/edit:

/dev/mtdblock0 looks like the area where WM6x is held.

Druidu, yours got bricked after trying some erasing. Can you simply put the phone back into bootloader and reflash a WM6x ROM? If so inhabiting this area for use as our filesystem is the best step forward. We will need a bootloader for that tho.

Also the module for NAND seems to have its malfunctions, tho it is working.


/edit:

Noticed that by toying around with the "Pointer Location", that it shows a yellow dot with the right x coordinates ... strange thing is that the y location of that dot looks calibrated to the bottom half of the screen.

charm1718
1st November 2008, 11:28 PM
Sorry if this doesnt help but i came across this when i googled Androis OS on Raphael.
http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx

I'm not a programmer, just someone who would like to test Android out on his Touch Pro

genit
2nd November 2008, 01:25 AM
I'm new here! And I'm very much eager to port Android onto my HTC Diamond, not that the TouchFlo 3D isn't bad or anything, its a decent step covering up WM 6.1 UI in a friendlier package, that said, Android looks awesome from its potential standpoint, in the past week I've been reading this thread daily (meticulously in fact :D) , and am not keen on booting 0.8 on to my phone yet, for absolutely superficial reasons (UI is butt ugly) anyhow! I pose a couple of questions here just to satisfy my anticipation (if that makes any sense), plus I do have a bit of programming skills, emphasis on the BIT sections, by that I mean I know most of the Programming Languages, yet I admit that I'm a novice when it come to Linux and such, enough said.

Questions:
1.If I boot 0.8 and then restart will WM 6.1 boot normally?
2.Did anyone manage to get their hands on Android 1.0?

Thanks (and sorry for the babbling :P)

keerttttt
2nd November 2008, 03:54 AM
Sorry if this doesnt help but i came across this when i googled Androis OS on Raphael.
http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx

I'm not a programmer, just someone who would like to test Android out on his Touch Pro

Can someone maybe try these steps and upload that zimage/initrd?

marios96
2nd November 2008, 09:45 AM
I'm new here! And I'm very much eager to port Android onto my HTC Diamond, not that the TouchFlo 3D isn't bad or anything, its a decent step covering up WM 6.1 UI in a friendlier package, that said, Android looks awesome from its potential standpoint, in the past week I've been reading this thread daily (meticulously in fact :D) , and am not keen on booting 0.8 on to my phone yet, for absolutely superficial reasons (UI is butt ugly) anyhow! I pose a couple of questions here just to satisfy my anticipation (if that makes any sense), plus I do have a bit of programming skills, emphasis on the BIT sections, by that I mean I know most of the Programming Languages, yet I admit that I'm a novice when it come to Linux and such, enough said.

Questions:
1.If I boot 0.8 and then restart will WM 6.1 boot normally?
2.Did anyone manage to get their hands on Android 1.0?

Thanks (and sorry for the babbling :P)


1. Yes, once you restart your phone, WM6.1 will boot normally...
2. There seems to be a limitation as to the size of image that haret is able to boot. But I'am sure someone is working on it...

Ofcourse all of this have been answered several times in this thread...

kState
2nd November 2008, 02:05 PM
Can someone maybe try these steps and upload that zimage/initrd?

this step is only way to same zImage that is postet already in this thread... nothing about initrd or androis os..... people like Netripper, cr2, Druidu, dcordes work on it. Problem is with kernel drivers -> not working sd card driver -> not posible to read android from sd. Android 0.8 is small, this is posible read as initrd, but 1.0 is bigger -> not posible read as initrd.. :)

dexxa05
2nd November 2008, 03:28 PM
i have build it but they don't work:

http://dexxa05.free.fr/android/

keerttttt
2nd November 2008, 03:30 PM
i have build it but they don't work:

http://dexxa05.free.fr/android/

Of course not, this is only the zImage, you also need a Initrd.

Addicteddddd
2nd November 2008, 03:53 PM
the wiki page is very helpful to read upon, instead of this bloated thread, thank you for keeping it up to date guys i cant wait to see the progress :)

dexxa05
2nd November 2008, 03:56 PM
Of course not, this is only the zImage, you also need a Initrd.


Yes i know....

They stop to red dot...

This is the zImage from this tuto http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx

touch of jobo
2nd November 2008, 07:25 PM
As this is my first post, let me start by expressing my awe for the work done so far so quickly. That is pretty hard core. I'm very impressed.

I got a Touch Pro last week and stumbled upon this thread trying to find whether I could put android on it.


Here is what I did and what happened:

I built a zImage following the recipe that charm1718 found.
http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx

I used the set that keerttttt posted in post #588 (page 59) and put the newly built zImage in place.

It boots into android 0.8 and seems to work a bit better than the original zImage-clean-htc-msm-2.6.25 in keerttttts set.

I can launch the dev tools, enabling some debug output like # of processes, events, cpu load, ..
The pointer position app shows the touch screen is mirrored but otherwise accurate. The on screen keyboard is waaay off. When i drag the stylus around, I see which key is highlighted in red. This way I can use the home key to get back to the desktop. (I dont think I got the red key highlighting with the original zImage in keerttttts set.)

Some stuff I noticed:
- typing on the keyboard is off, as described above,
- When 'in' an app, not on the desktop, (so you have the dark background) dragging the stylus around 'draws' in little yellow pixels about 1/4th up (and of course mirrored).
- I have to tap twice. When I tap on the screen, it registers the click on the position of the last click. For clicking on an icon (or anything that sits in place) thats merely inconvenient and sometimes unpredictable but for popup menus (like some of the options in 'development settings') it just doesn't work..
- sometimes i get the 'power options' dialog seemingly out of nowhere and the only option is to turn off the radio (i dont know how to get back from screen blank or power down). These yellow pixels flicker in sync with the keyboard. (I think that 'about 1/4th up' may be the same factor by which the keyboard is off...)


For now I will read/play/tinker around some more and update when I find anything shocking.

Thanks and keep up the good work!

-Jobo

ermin15
2nd November 2008, 07:43 PM
the wiki page is very helpful to read upon, instead of this bloated thread, thank you for keeping it up to date guys i cant wait to see the progress :)

Everyone is welcome contributing to the wiki (http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux). Just scroll down and hit the edit-button.

lifegrasp
3rd November 2008, 04:21 AM
I have a full G1 rom .nbh file ... would that help?

TripleQ
3rd November 2008, 08:15 AM
How big is it?

Riel
3rd November 2008, 12:25 PM
Is any other phone-developsystem available like Opie a.o.?

druidu
3rd November 2008, 01:13 PM
I have a full G1 rom .nbh file ... would that help?

Just post it somewhere and link it, can't be bad to have one :)

Toug
3rd November 2008, 02:03 PM
Just post it somewhere and link it, can't be bad to have one :)

I think it coud be useful if some drivers can be picked up from it.

NetRipper
3rd November 2008, 02:18 PM
I think it coud be useful if some drivers can be picked up from it.
As far as I have seen so far from Android dumps (a partial .rar some time ago), only the wifi driver was included as module instead of compiled into the kernel. The kernel, except for some less-important drivers (i.e. Camera, which as far as I know is different from Diamond/Raphael anyway) is available anyway.

Of course a proper dump may contain some more interesting information, so please do post the link. :)

livefastdiefun87
3rd November 2008, 03:53 PM
Can we get a brief update every so often as to whats gone on rather than keep reading previous posts. What do we have up until this point. Progress report please :D

NetRipper
3rd November 2008, 04:06 PM
Can we get a brief update every so often as to whats gone on rather than keep reading previous posts. What do we have up until this point. Progress report please :D
Check wiki in my signature. It's where progress is kept (unless things have happened I don't know about).

alx5962
3rd November 2008, 06:52 PM
I compiled the kernel yesterday according to http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx,
but after 2 trys and 1 hour of loading, I'm always stuck at the 'red eyes' screen...
I even tried to use flight mode but no help.

NetRipper
3rd November 2008, 07:23 PM
I compiled the kernel yesterday according to http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx,
but after 2 trys and 1 hour of loading, I'm always stuck at the 'red eyes' screen...
I even tried to use flight mode but no help.
Change the "set CMDLINE" line in default.txt to read mem=96M instead of 64M.

alx5962
3rd November 2008, 07:33 PM
Change the "set CMDLINE" line in default.txt to read mem=96M instead of 64M.

wonderful! thank you
android booted in few seconds!

keerttttt
4th November 2008, 09:40 AM
wonderful! thank you
android booted in few seconds!

Android 0.8 i suppose?

sibbor
4th November 2008, 10:40 AM
Have anyone here recived the ROM dump in NBH format from lifegrasp - or anyone else for that matter - yet? Kinda curious about it.

Brought my USB cable for my Diamond to the work today, so I'm up for testing! Just had to test out Android 0.8, and I'm very pleased to see some progress. The "slider" worked, so did the buttons and the dialpad. Got some screen flickering due to the onscreen keyboard though.

And as always: keep up to good work guys!

EDIT: I've now also tested the .exe from the wiki (20081103 experimental) and it works out just like above.

drhades
4th November 2008, 01:47 PM
Yo, can somebody post the default.txt file for android 0.8 when i click it, it just opens.

BDWN
4th November 2008, 02:37 PM
Yo, can somebody post the default.txt file for android 0.8 when i click it, it just opens.

Right click, save file/page as?

sibbor
4th November 2008, 02:57 PM
Oops, nvm...

Addicteddddd
4th November 2008, 03:01 PM
real good job so far, i've sticky'd the wiki page and keep checking back for updates, will be coming on irc soon :]

touch of jobo
4th November 2008, 03:09 PM
(...)
The pointer position app shows the touch screen is mirrored but otherwise accurate. The on screen keyboard is waaay off.
(...)
- When 'in' an app, not on the desktop, (so you have the dark background) dragging the stylus around 'draws' in little yellow pixels about 1/4th up (and of course mirrored).
- I have to tap twice. When I tap on the screen, it registers the click on the position of the last click. For clicking on an icon (or anything that sits in place) thats merely inconvenient and sometimes unpredictable but for popup menus (like some of the options in 'development settings') it just doesn't work..
(...)
-Jobo


Ok, from looking at the touchscreen driver code, I am a little bit wiser than the other day... (just a little bit)

The virtual keyboard being off yet usable was due to calibration. Apparently, I accidentally calibrated the touchscreen to 1/4 of the screen height, whereas before I hadnt calibrated it at all... :o (The recipe is: tap anywhere to start calibration process, then tap top-left, then bottom-right. Be careful not to double tap or drag.)

I did 2 small changes to the driver code:

1: to un-mirror the screen

- input_report_abs(msm_ts_dev,ABS_X,absx);
+ input_report_abs(msm_ts_dev,ABS_X,calib_xmin + calib_xmax - absx);
(this does not cope with tapping outside the calibrated area)


2: to not have to tap twice (the 1st tap would get registered on the previous position)

report ABS_X, ABS_Y, BTN_TOUCH (in this order) rather than BTN_TOUCH, ABS_X, ABS_Y


That 2nd change makes it possible to tap on a popup menu without the 1st click outside canceling it: :cool:

http://members.home.nl/j0b0/popup.jpg

EDIT: zImage (http://members.home.nl/j0b0/zImage)

-Jobo

michbeck100
4th November 2008, 03:26 PM
Did you already commit your changes into the git? I'm eager to test this myself ;-)

EDIT: Found the lines by myself. Will try this now.

EDIT2: Works fine! It's a shame that Android 1.0 is not working yet. There's not much to do in 0.8 :-(

NetRipper
4th November 2008, 03:58 PM
I did 2 small changes to the driver code:
Nice job. Let me test that tonight and see if I can commit it.

sazinas
4th November 2008, 03:59 PM
One of the few videos showing Android on my HTC (http://www.youtube.com/watch?v=vm5OVv4lljQ) Touch Diamond
and how its usability (http://tinyurl.com/andr01d)

sibbor
4th November 2008, 04:00 PM
Did you already commit your changes into the git? I'm eager to test this myself ;-)

EDIT: Found the lines by myself. Will try this now.I want this too, but haven't get any experince with compiling Android/drivers... Care to help ;)? Looks briliant!!

michbeck100
4th November 2008, 04:13 PM
I want this too, but haven't get any experince with compiling Android/drivers... Care to help ;)?

Attached you will find the diff containing the changes you have to make.
Then follow the instructions in the wiki (http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux).

In the end you should have a your own zImage, which has to be referred to in the default.txt of haret.

Scribe
4th November 2008, 05:07 PM
Hi guys,

I'm interested in trying android out on my Touch Pro, does anybody know if this is possible?

Also where are we up to with the development? ie what have we got and what are the limitations to fully working android?

Many Thanks

touch of jobo
4th November 2008, 05:14 PM
I want this too, but haven't get any experince with compiling Android/drivers... Care to help ;)? Looks briliant!!

If you want help with having this too, I added a link to the resulting zImage (http://members.home.nl/j0b0/zImage).
If you want help building your own zImage from source (http://www.stdev.org/2008/11/01/GettingStartedWithAndroidOnTheHTCDiamond.aspx), browse back through this thread and/or the wiki (http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux).
(That's where I found all I know...)

-Jobo

CensoReDdD
4th November 2008, 05:33 PM
#1: to un-mirror the screen

- input_report_abs(msm_ts_dev,ABS_X,absx);
+ input_report_abs(msm_ts_dev,ABS_X,calib_xmin + calib_xmax - absx);
(this does not cope with tapping outside the calibrated area)
#
Does it works fine? On my Diamond the left part of screen does not answering on touchings anymore. And the right part are still responds, but still not correctly.
P.S. i've downloaded touch of jobo's zImage

NetRipper
4th November 2008, 05:36 PM
#1: to un-mirror the screen

- input_report_abs(msm_ts_dev,ABS_X,absx);
+ input_report_abs(msm_ts_dev,ABS_X,calib_xmin + calib_xmax - absx);
(this does not cope with tapping outside the calibrated area)
#
Does it works fine? On my Diamond the left part of screen does not answering on touchings anymore. And the right part are still responds, but still not correctly.
P.S. i've downloaded touch of jobo's zImage
You probably have to align the screen properly. When booted, tap the screen once, then the top left corner, then the lower right corner.

The new calculation uses the calibration info, so you'll need to calibrate it.

druidu
4th November 2008, 05:40 PM
Try this: http://git.linuxtogo.org/?p=groups/mobile-linux/kernel.git;a=commit;h=f3d355055b9c557f1868e7aeee07 a77fdf1eb86a

Can't test it as Android 0.8 seems to hang, maybe some kernel options are not right, but it should work much better (still calibrate with one tap then one tap upper-left then one tap lower-right).

jamesd256
4th November 2008, 06:00 PM
Hi guys,

I'm interested in trying android out on my Touch Pro, does anybody know if this is possible?

Also where are we up to with the development? ie what have we got and what are the limitations to fully working android?

Many Thanks

Good news! You can run the FULL Android on your Touch Pro!

The limitations are;

o You have to buy a G1 and secure it to the front of your Touch pro with tape
o G1's are really ugly

Seriously though, please have a look here (http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux#Currentx20.state):

You might want to have a tiny read of the thread as well.

sazinas
4th November 2008, 06:19 PM
Hi guys,

I'm interested in trying android out on my Touch Pro, does anybody know if this is possible?

Also where are we up to with the development? ie what have we got and what are the limitations to fully working android?

Many Thanks

If only you could read anything else but the last post...
Click here (http://wiki.xda-developers.com/index.php?pagename=RaphaelLinux) for an updated wiki.

Edit:I wish I could read the last post... :S

keerttttt
4th November 2008, 07:08 PM
Wow, really nice job, touchscreen works great now and it looks much faster with the correct touch method!

Great!

qetuR
4th November 2008, 10:34 PM
Wow, really nice job, touchscreen works great now and it looks much faster with the correct touch method!

Great!

Hmm.. Strange, I cant launch the latest .exe on my phone. Comes up an error message. But I could load the "old" 0.8 Android. Do I need to have the .exe in the folder?

NikPraskaton
5th November 2008, 12:53 AM
Ive got some problems with latest version too.. The on screen keyboard on the top of the screen keeps "blinking" all the time preventing me to tap any buttons on Android.. :)

Toug
5th November 2008, 09:59 AM
Hmm.. Strange, I cant launch the latest .exe on my phone. Comes up an error message. But I could load the "old" 0.8 Android. Do I need to have the .exe in the folder?

Android 1.0 cannot be load yet as there is a size limitation of the bin loaded by Haret.

Howell
5th November 2008, 11:20 AM
Can someone post an updated zImage or LinLoad so I can test the new touchscreen driver on my Diamond please ? The latest EXE works fine except the "mirror" bug ;)

It would be also great to add a part on the Wiki to tell what works or not in the current release.

Ex : with OK/NOK/Partial status

BOOT : OK
Touchscreen : Partial (mirror)
PHONE : ?
SMS : ?
Wifi : ?
BlueTooth : ?
etc...

jaapschaap
5th November 2008, 11:24 AM
This will be SO awesom, i just booted it and it looks great only mirrortouch and flashing keybord... But i quess thats a matter of time!

Someone how can put the mirror fix in a easy install launcher (don't know the name... edit: LinLoad shizzle :)).

koboldx
5th November 2008, 11:30 AM
Can someone post an updated zImage or LinLoad so I can test the new touchscreen driver on my Diamond please ? The latest EXE works fine except the "mirror" bug ;)

One page back, first post. Is it SO hard to _read_ the stuff the developers post?

It's really annoying to read the same kind of questions every day.

Cheers

Edit: Howell: I see, point taken.

ermin15
5th November 2008, 11:43 AM
It would be also great to add a part on the Wiki to tell what works or not in the current release.

Ex : with OK/NOK/Partial status

BOOT : OK
Touchscreen : Partial (mirror)
PHONE : ?
SMS : ?
Wifi : ?
BlueTooth : ?
etc...

Nice idea. You are very welcome to help out with the wiki. Just open it, scroll down and hit the Edit-button.

gebruikershaes
5th November 2008, 11:44 AM
Oh pleeease let us all have fully functional android on our diamonds before xmas :D:DD:

Riel
5th November 2008, 11:46 AM
omg stop that pathetic whining about finishing it :S

Howell
5th November 2008, 11:52 AM
One page back, first post. Is it SO hard to _read_ the stuff the developers post?

It's really annoying to read the same kind of questions every day.

Cheers

FYI : I do read ALL posts (from the very first of this topic 'til now) BUT as the post following the post you refer to was asking IF it works I thought the "mirror" correction was NOT implemented in the zImage provided... My mistake...

Nice idea. You are very welcome to help out with the wiki. Just open it, scroll down and hit the Edit-button.
I will... once I get a mirror bug free image (I will in a few minutes) and can play with it :D

I just wanted to know if my idea was interresting or not before working on it ;)

It will be my (little) contribution to this wonderful work :D

Howell
5th November 2008, 01:10 PM
OK the zImage provided works on my DIAM100 :D Thanks alot ;)

Wiki work and tests in progress...

sazinas
5th November 2008, 02:24 PM
Is there a linload version of the new zImage?
Or if there isn't, can someone write the commands to run it from the non-linload version (the one with the .txt)
Thanks!

daniel.bigred
5th November 2008, 02:41 PM
Is there a linload version of the new zImage?
Or if there isn't, can someone write the commands to run it from the non-linload version (the one with the .txt)
Thanks!
I agree with Sazinas, I've tried to edit the default.txt & change the kernel to the new zImage but it won't go past the initial loading page (i don't get to see the Duck icon).

Please could one of the more experienced users check on the scripting involved