PDA

View Full Version : AndroidAthenaProject1.0


mistadman
19-05-2008, 06:49 PM
Introduction:

I am proud to introduce "AndroidAthenaProject1.0" on behalf of the Athena Project Team! We have successfully ported Android to the Athena (More info about the Athena (http://wiki.xda-developers.com/index.php?pagename=HTC_Athena)). This will be the official thread for optimizing and working out bugs related to Android on the Athena.
YouTube Demo (http://www.youtube.com/watch?v=HtlcCQSRmiA)




News:

05/28/2008 - New update available: (Athena-Android "All-n-1" Release) (More Info (http://forum.xda-developers.com/showpost.php?p=2242471&postcount=19) and even more info (http://forum.xda-developers.com/showpost.php?p=2212805&postcount=4)). This update adds touch screen support and screen rotation applet. Video driver still needs a lot of work. Screen updates are slow. Coding decent video drivers will be my next priority and if anyone is willing to give a hand, please let me know. Thanks!





Athena/Android Resources:

Download Android for the Athena (x7500/x7501/Ameo/etc...): Latest Release (http://forum.xda-developers.com/showpost.php?p=2242471&postcount=19) or Here (http://forum.xda-developers.com/showpost.php?p=2212805&postcount=4) (Click here (http://forum.xda-developers.com/showpost.php?p=2212805&postcount=4) for instructions)

Git: https://github.com/mistadman/android-athena/. This should be easier for us to manage changes. Enjoy!!

Diff and .Config (05282008): Download (http://forum.xda-developers.com/showpost.php?p=2242471&postcount=19)





Project Status:


Keyboard (not started) (A USB keyboard can be used for testing while we wait for drivers. See this post (http://forum.xda-developers.com/showpost.php?p=2213932&postcount=49))

Touch screen (done):

More info (http://forum.xda-developers.com/showpost.php?p=2231185&postcount=16)
Testing/Bug fixes

Phone (not started)
Video(in progress):

Correctly implement pan_display() function (double buffering)
Speed improvements

Sound (in progress)
Wifi (not started)
Bluetooth (not started)
GPS (not started)
Camera (not started)
Sub-display (not started)
Accelerometer (not started)

Android Application Functionality(in progress):

RotateView Applet added: (More info) (http://androidzaurus.seesaa.net/article/76612103.html)
This applet lets you rotate the screen. Unfortunately, due to incomplete video driver, video performance takes a serious hit during rotation.






Contribute:

If you would like to test or can contribute to one of the outstanding issues above, please let us know. Also, marthynovak has posted quick and dirty guide to testing our releases. See this post (http://forum.xda-developers.com/showpost.php?p=2212805&postcount=4) for more information.






-----

mistadman
19-05-2008, 06:50 PM
This post has been reserved!

mistadman
19-05-2008, 06:51 PM
This post has been reserved...

marthynovak
19-05-2008, 07:27 PM
Here is small how to to start android on Athena.By mistadman


Download Android for Athena here(last build): http://rapidshare.com/files/118229739/Android-Athena-05282008.exe.html
free method(please use only when you cant you rapidshare) http://gymjs.net/~m.novak/Android-Athena-05282008.exe

Once downloaded, unzip and copy the unzipped files to a SD Card. The root of your SD Card should have these files:

haret.exe
default.txt
zImage
initrd-android

Once you have verified the files listed, insert the SD Card in to your Athena. From there just load up Windows Mobile and browse to your "Storage Card" in "File Explorer". Click on the file called "haret.exe", and once the program has loaded; click run.

Just remember that this is work in progress!

more info:
its only the system,the keybord is not working,screen isnt working.Just remember that this is work in progress!

Here is some plan what must we do(by mistadman):

1.) Add some Ati specific 3D acceleration (Double Buffering, Rotation).
2.) Optimize Power Saving...
3.) Add/repair touch screen driver.
4.) Add/create keyboard driver.
5.) Add sound
6.) Add phone driver support (be able to make a call).
7.) Add Wifi Driver.
8.) Get the camera working maybe?!?!

more also here:http://forum.xda-developers.com/showpost.php?p=2242471&postcount=19

LTxda
19-05-2008, 07:58 PM
_-Reserved-_

LTxda
19-05-2008, 08:01 PM
__-Reserved-__

boinger66
20-05-2008, 03:51 AM
--reserved--

boinger66
20-05-2008, 03:52 AM
__reserved__

lennysh
20-05-2008, 12:06 PM
-= Reserved =-

lennysh
20-05-2008, 12:10 PM
As you can see on the post located here (http://forum.xda-developers.com/showpost.php?p=2213637&postcount=303), they've written a simple onscreen keyboard. Maybe he'll give you the source for it and it wouldn't be hard to implement it into this kernel for future releases...

LTxda
20-05-2008, 04:59 PM
Let's pull all of our resources together and make this happen. Whoever can contribute let's post here and let's try to get a 1.0 final out ASAP.

Thanks in advance to everyone for helping where you can.

Areas of interest for developing the project:

- Graphics
- Sounds
- Drivers (highest priority of course)
- Apps
- Functionality (highest priority of course)

If you can provide a driver or something that fits in the categories above, please post a description...a how-to....and a link to a RapidShare download. Thank you all in advance.

mistadman
20-05-2008, 06:58 PM
Now we are talk'n! LOL!


- Graphics
- Sounds
- Drivers (highest priority of course)
- Apps
- Functionality (highest priority of course)


Just remember though, we do not want to duplicate Google's efforts... What I mean is that Google OS/Middleware (Android) will be in direct competition with the iPhone, Symbian, Window Mobile, etc. That means we can expect things like onscreen keyboards, SMS apps, Office Apps (probably complements of Google Docs/Google Gears), mapping/GPS software (Google Maps), a camera app, etc... (See: http://reviews.cnet.com/4520-9239_7-6546759-1.html for more info) And that’s not to mention some of the great work already being done by Third-Party Vendors (Android Developer Challenge: see: http://phandroid.com/2008/05/10/adc-round-1-winners for more info). Heck, look at what was done on the iPhone... And it was/is "closed source"!

I believe the IMPORTANT thing is that we provide a stable kernel for Google's "Middleware". I envision that most of the kernel work will revolve around driver development (in order of priority): (Here is a pictorial representation of the software stack:http://i.i.com.com/cnwk.1d/i/bto/20080521/android_stack_540x387.jpg, as you can see the kernel is the base to which all other software depends on.)

Keyboard
Touch screen
Phone
Video
Sound

And of course:
Wifi
Bluetooth
GPS
Camera

Long term objectives:
Sub-display
Accelerometer


Of course there will need to be work done on Android itself... Maybe we will need to develop applications custom to the Athena Hardware. At the very least, we will have to provide Android with a way to talk to hardware via kernel icotls (e.g. Camera Settings, Video Settings, etc…). So having some with inside knowledge of Android will help. Not sure though, because I haven’t hacked on Android (yet ;-) )...


Once the kernel/drivers are stable I believe Android will be a better fit for the Athena than WM6 could have ever be.

What do you guys think?


FYI: Looks like Google is already improving Android: http://www.talkandroid.com/99-adc-finalists-receive-android-sdk-snapshot-access/

marthynovak
21-05-2008, 03:46 PM
i will have new develop version of Android soon.i hope so.so maybe it could be better for this project.i will let you know!

LTxda
21-05-2008, 04:08 PM
i will have new develop version of Android soon.i hope so.so maybe it could be better for this project.i will let you know!

Check your PM. :)

marthynovak
24-05-2008, 10:20 AM
we should look here,there are plany of informations about android.its for vogue,but i think that something we can use.they said that touchscreen is working now

http://forum.xda-developers.com/showthread.php?t=382265

also see this.its on screen keybord included in the zimage.i cant try it right now,im away and my athena is not with me.
http://forum.xda-developers.com/showpost.php?p=2213637&postcount=303

also see this updates
http://it029000.massey.ac.nz/vogue/

http://forum.xda-developers.com/showpost.php?p=2191014&postcount=344

mistadman
25-05-2008, 06:51 AM
Just to let you guys know, I have been working on the touch screen driver. I pretty much have it working perfectly, expect for the fact that the touch screen works in the horizontal position even though Android boots vertically. I am pretty sure I will not be much longer before I release an update.

Also, if anyone is working on any particular issue related to porting Android to the Athena, please let us know. The more the merrier!

The main thing is that we wouldn't want to duplicated efforts or if someone is working on an issue we could match you up with someone doing the same thing. This would speed development a great deal. Two heads or better than one! On the main page I will post updates as to where we are with each issue.

And thanks to everyone who is either showing interest or encouragement!

marthynovak
25-05-2008, 10:18 AM
Maybe you should give to each update a date.So they can know what is new and what is old.I tried to do someting with video driver,but no luck at all.ï can do more when i will be back home.

edit:we have(with mistadman) decided something about marking releases.he will tell everything to you.thx

mistadman
26-05-2008, 03:07 AM
Hello everyone,


I am trying something new... Even though there has been some progress with this project, I am re-releasing the original Android release as an All-in-one executable for testing. If all goes well, we will be releasing further updates in this fashion. If you are testing, please post feedback on this thread.

This will help make testing easier, because there will be less files to mess with, and anyone new to testing will not be easily confused. Also the "All-n-1" release will be dated, which should also minimize confusion.

If anyone has any suggestions, or any better ideas, let us know. Thanks!

Here is a the link to the "All-n-1" re-release: http://rapidshare.com/files/117520672/Android-Athena-05172008.exe.html

***NOTE*** There is nothing new with this release, other than the fact its all merged in to one file for easier testing.

mistadman
28-05-2008, 09:05 AM
Hello everyone... I'm back with a new update! I finally got the touch screen working! Still have a lot of work left of course.


If you want to play with it, you can get it here: http://rapidshare.com/files/118229739/Android-Athena-05282008.exe.html. This is an "All-n-1 Release". Just copy the exe to your sd card and run. After clicking, it could take up to 20 seconds to boot. Be patent!


As always, this is work in progress... Thanks for testing!


Here is the patch and .config:

sss888
29-05-2008, 01:20 AM
thanks very much it's working fine and waiting for keyborad and wifi

fards
29-05-2008, 08:55 AM
Hello everyone... I'm back with a new update! I finally got the touch screen working! Still have a lot of work left of course.


good job!
that works very well indeed, much more responsive than I ever thought it would be.

ltxda, any idea if 'the insider' has got a working build of android off the dream or whatever it's called..

marthynovak
29-05-2008, 04:31 PM
keybord will be soon.i hope.i think we will need more phone functions then wifi.

Ken Beoughter
29-05-2008, 06:48 PM
Whenever I try to download the most recent release via RapidShare all I ever get when I try the "Free" download is a message to wait some period of time which even after the time specified expires I get a message that a download is already in progress (which it isn't). If I open a new browser window I get the same results, usually with a different period of time that I need to wait.

Is there any other way to get these releases?

marthynovak
29-05-2008, 09:52 PM
okey i will make a free download.see fourth post http://forum.xda-developers.com/showpost.php?p=2212805&postcount=4


edit:free download added

Brau0303
31-05-2008, 12:57 AM
Any major milestones on this?

Cheers
BR

marthynovak
31-05-2008, 10:52 AM
i think only problem is returning back from some kind of menu in android by pushing widnwos start key.but everything is working(on touchscreen)

kowen
08-06-2008, 12:53 PM
This is so nice :D I just tried it for the first time. Looks very promising.
I hope that development will continue, and future android will run.
Thanks def. team, keep up the good work ^^

pof
15-06-2008, 05:26 PM
Accelerometer (not started)



You might want to have a look at the code from the HTC Shift accelerometer:

http://pof.eslack.org/blog/2008/06/05/gsensor-joy-htc-shift-g-sensor-joystick-linux-kernel-module/

AFAIK the chips on both devices are very similar, very minor differences by looking at both datasheets.

fards
16-06-2008, 01:05 AM
You might want to have a look at the code from the HTC Shift accelerometer:

http://pof.eslack.org/blog/2008/06/05/gsensor-joy-htc-shift-g-sensor-joystick-linux-kernel-module/

AFAIK the chips on both devices are very similar, very minor differences by looking at both datasheets.

Looks like a prime opportunity to create handheld marble madness..

ice_coffee
16-06-2008, 03:52 PM
Looks like a prime opportunity to create handheld marble madness..

That game comes with the HTC diamond by default !

This is an excellent project, I look forward to seeing it completed !

famsanr
24-06-2008, 03:41 AM
I hope not to be disturbing. I really don't know what android is. Can somebody give me a light about this topic? I have my device, my Athena and wanted to try recently software. Thanks for answering.

galt
24-06-2008, 03:59 AM
I hope not to be disturbing. I really don't know what android is. Can somebody give me a light about this topic? I have my device, my Athena and wanted to try recently software. Thanks for answering.http://en.wikipedia.org/wiki/Google_Android

famsanr
10-07-2008, 02:12 AM
http://en.wikipedia.org/wiki/Google_Android

Cheers! Thanks a lot for the link.

Oberth
17-07-2008, 11:39 AM
Hi Mistadman,

First up congrats on getting Android up and going must make time to try it out one day am looking forward to seeing if it could become a fully fledged replacement to WM (just to have something different)

I don't know if you have seen this thread over in the upgrade forum http://forum.xda-developers.com/showthread.php?p=2416171&posted=1#post2416171 where a few folk have been trying to replace the microdrive with a 1" flash unit.

We have not had much luck due to the drives not showing up as they are not formatted so there is no filesystem for windows to pick up on but I was wondering if Android can see the microdrive as yet and if there exists a way to format and or edit partitions on it?

If this is a possibility with Android it could be the key to getting flashdrives running on our units so any help from yourself or one of the other dev types would be much apreciated :)

marthynovak
17-07-2008, 09:51 PM
i will look on this thing as soon as i have time.

fards
25-07-2008, 02:24 PM
Looks like martin in nz has been making progress with his vogue, how easy is it to port across?

http://it029000.massey.ac.nz/vogue/

Update(23/5/08): You can now make and receive audio calls. The phone should vibrate when a call is received. Press the red button twice to hangup. You can also calibrate the touchscreen by holding the camera button down (so that the keyboard is showing) while tapping the top right and then the bottom left of the screen. Do this while running the pointer location app in dev tools to check that it works. The keyboard now is the same as on the emulator.

Update(29/5/08): SMS text send and receive now works. This was a little more tricky, I had to convert between GSM and CDMA SMS formats. My code doesn't support all encoding formats so it is possible that it won't work for operators other than Telecom New Zealand, let me know. The emulator doesn't include an SMS application so I wrote a very small bit of android code just to test SMS. Start the sms app to send a message, received messages are just displayed for a short time. Remember this app is just for testing, when the final software is released I'm sure it will have a fantastic threaded sms application. I have taken the API Demos out of the initrd and added the world clock and SMS tester.

Update(6/6/08): I've fixed the browser problems, the G icon should appear now and data will work much more reliably. I've also added support for switching off the panel backlight. Click the power button and then tap on "Turn Off Screen", This doesn't put the machine into a very low power state but it does let you use it as a phone. I carried it around yesterday and the battery lasted about 12 hours. Don't select power off, it will disable the buttons.

Update(20/6/08): I've rewritten the touchscreen and keyboard drivers, the keyboard is much more usable now. I've also updated the SMS test app so that you get a notification for each received SMS message, pull down the notification bar to see your messages. Sometimes the runtime crashes if you have too many notifications so be careful. The browser works fine with radio version 3.37 but may not with others. The clock now works, but android doesn't know your timezone so displays GMT. The phone will charge when you plug in the USB but it doesn't know when it's fully charged so don't leave it plugged in for too long. (I can't believe this would be harmful to the phone - it must happen when wince crashes).

Update(14/7/08): The SD driver now works, this means you don't have to run everything from an initrd and your settings will be saved across reboots. It also means that the titan should boot (though I haven't tried it and the keyboard won't work), titan owners let me know. To use the new version, download the android.zip file below. In it are 6 files, put system.img(128M) and data.img(128M) onto the sd card in your phone (the "\Storage Card" folder), put zImage, default.txt, haret-0.5.1.exe and initrd.gz anywhere you like and then run haret. The data.img file holds your settings and applications, it's just an ext3 filesystem so on a linux box you can mount it to add applications and import contacts etc..

Update(24/7/08): I've repackaged the files in android.zip and updated a few things. Now you don't need to copy 256M to your SD card, just put system.gz and data.gz on the card and the first time it boots they will be extracted to system.img and data.img (thanks to Kevin's initramfs installer for the idea). Keep your data.img if you have saved anything on it and delete system.img to use the new stiff. Audio in calls should be better, vibrate on receiving calls and SMS should work better. When the screen is off only the power button should wake it up. SDHC cards should work better. Volume up and down are not left and right any more because i'm working on audio, they are useful for zooming in the browser too.

AllGamer
27-07-2008, 09:15 AM
Wow! this is so cool, to actually see it on action on our phone model.

I can't wait for it to be complete, and have full funtiionality, i'll definitely be a nice change from WM6 to Linux :D

thynk
21-08-2008, 02:36 AM
This project gives me hope that we HTC owners will have a fully functional Android ROM to replace WM6 after it goes to market.

Many thanks to the work that has been put into this, I'm downloading to give it a try right now :)

cmonex
21-08-2008, 06:23 AM
Looks like martin in nz has been making progress with his vogue, how easy is it to port across?


sorry, the vogue is completely different hardware. luck is google android supports the vogue's chipset


anyway, if keyboard driver is not done for athena maybe I can take a look sometime.. I'm quite interested in getting that one working and I have ideas how.

coconuts
01-09-2008, 12:43 PM
Hello everyone
It' s a very good project
Can you tell me how to intall the patch and .config
thanks

goodluckje
26-09-2008, 07:58 PM
will the g1 rom be useful to get android working on our athena?

cr2
27-09-2008, 12:18 PM
anyway, if keyboard driver is not done for athena maybe I can take a look sometime.. I'm quite interested in getting that one working and I have ideas how.

This driver is already written for hermes.

cr2
27-09-2008, 12:19 PM
will the g1 rom be useful to get android working on our athena?

Maybe. Because of the android applications, and the 54mbit wifi driver.
But it will be even more useful to get android working on diamond and raphael.

goodluckje
27-09-2008, 11:15 PM
Maybe. Because of the android applications, and the 54mbit wifi driver.
But it will be even more useful to get android working on diamond and raphael.

why those two?

graey
28-09-2008, 09:03 AM
why those two?

I believe the chipset on those devices is (as good as) identical ;)

grlayouts
13-10-2008, 11:46 AM
is anyone still working on this?

cr2
13-10-2008, 06:03 PM
why those two?

they have the same msm7201A CPU

cr2
13-10-2008, 06:05 PM
is anyone still working on this?
on the linux kernel for athena - yes.
android ? don't know, i'm not that much into java.

fards
22-10-2008, 11:36 AM
Google have released the full source now, looks promising except for the HVGA part.....

http://source.android.com/release-features



About Android's operating system:

* Based on Linux 2.6.25 for ARM.
* Platform currently expects ARM V5T or better architecture. Support for earlier architectures could be added, but CPUs without an MMU would be difficult to support.
* A set of kernel enhancements are provided to support Android. The patches include alarm, ashmem, binder, power management, low memory killer, kernel degugger, and logger.
* While the platform is designed to be chipset agnostic, and will run on virtually any ARM-based Linux kernel environment, version 1.0 of the platform has been tested and verified on the MSM 7K chipsets. Over time we expect to see support for other major chipsets. Kernel patches for MSM based chipsets are also available.
* FAT32 file system is supported.
* Support for TCP/IP (TCP, UDP, etc).

A minimal reference bootloader for the supported chipset is provided. It is capable of booting Linux from RAM, debugger, and NAND Flash.

About Android's support for debugging:

* Debugging native code is supported via GDB (GNU Project Debugger) over USB.
* Debugging managed code is supported via any JDWP-compatible debugger over USB.
* Logging and crash logs supported for debugging.

Supported hardware

* The platform will run on almost on any ARM based Linux kernel environment.
* The platform requires a minimum of 128 MB of RAM and 256 MB of Flash memory. An OEM may want to support more Flash memory to make it possible to download more third-party applications to user devices.
* The platform will interface with a baseband radio stack provided externally via a Radio Interface Layer (RIL).
* 802.11 b/g Wi-Fi
* Standard USB interface, including USB 2.0
* Bluetooth 2.0 EDR (Enhanced Data Rate)
* Camera for still and video capture
* Removable storage

Supported display

* HVGA resolution
* 16 bit color depth
* Landscape and portrait orientation, including dynamic runtime switching
* Finger-based touchscreen navigation

netventure
03-11-2008, 07:56 AM
Hi,

I've built Andriod 1.0 from source and have tried to run it on my Athena but to no luck yet. Here is how I'm building:

1. Get entire source from Google
2. cd mydroid
3. make
4. cd kernel
5. make ARCH=arm msm_defconfig
6. set path: PATH=$PATH:~/mydroid/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin
7. make ARCH=arm CROSS_COMPILE=arm-eabi- bzImage

I've used msm_config and also tried mistadman's .config file but neither of them worked for me. I do not get past the initial screen "loading kernel.." or something like that

Are there any specific parameters that need to be set in default.txt for haret to work?

-NV

helionce
09-11-2008, 02:13 PM
Hello Mistadman,

I have a idea to improve backlight experience. Could you check the thread
http://forum.xda-developers.com/showthread.php?t=436944
Thank you!