PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Titan Development (http://forum.ppcgeeks.com/forumdisplay.php?f=57)
-   -   Linux/Android working on Titan (http://forum.ppcgeeks.com/showthread.php?t=31930)

thakidc 07-18-2008 12:00 PM

Re: Linux/Android working on Titan
 
Sorry if this has been covered but Google maps has a menu to search and other things as well as the browser. Its kinda hard to get to work, its not one button...

Let me explain, When I first booted this I went into the browser and tried typing. Nothing worked but some keys would move the cursor, so I started mashing keys and... a menu pops up.
I think its the "left arrow" and the "K" button at the same time, but I mash that entire area of keys amd it works pretty reliably.

Like I said sorry if this is covered but I didnt see it anywhere that I recall.
Hope this helps someone.

Edit: Its definately the "left arrow" key and the "M" key, hit them at the same time then wait a second, a menu should pop up.
If you hit them twice it wont show since the same cobo of buttons closes the menu.

Good luck ill try to post some pics later tonight.

dishe 07-18-2008 12:05 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by EtherealRemnant (Post 349243)
\
The Android app is pretty cool just because it shows that there is actual TRUE hardware acceleration running on the device. You can touch the globe and spin it faster, in a new direction, etc.
...

This is obviously still a really early pre-alpha release but I'm impressed with how far its come in such a short time and I'm really excited to see the full power unleashed on our devices and others in the near future!

The spinning globe screen IS pretty cool, however this is not hardware acceleration at all.
The titan is capable of something as simple as a texture-mapped spinning sphere in Windows Mobile as well.
In fact, if you've ever tried to run Quake on your Titan, you'll find that you can have smooth graphics with far more polygons on the screens before it starts to slow down, and simple 3D games like Wolf3d and Duke Nukem actually play as smoothly as they did on PC.
check out this video from the Tilt playing these games:
http://youtube.com/watch?v=jBQco1NoE7Y&feature=related

Remember, the tilt has the same CPU speed and hardware acceleration problems as the titan due to the Qualcomm chipset.

That spinning globe proves NOTHING, sadly. In fact, if you touch the screen while spinning it, you'll notice that the display slows down to almost a crawl (a problem with our device drivers that was demonstrated at HTC Class Action's website by playing Quake with touchscreen controls). You have to remember that Android/Linux here needs Windows Mobile to run, which means that it is relying on certain underlying components like the SD driver, Sound driver, input and display drivers, etc... So since there aren't HW accelerated drivers for WM, Android won't "magically" have them.

Quote:

Originally Posted by taxilion
all we really need, though, is someone with some linux kernel development experience and a mogul handheld to spend some time on it, and I can see this as becoming a full blown fully usable replacement OS.

Yes, but we need to also break free of our reliance on the already-considered-problematic WM drivers for our chipset. If someone were to create drivers for our hardware that did away with all the slowdowns and hangups that plague the current HTC handsets, we'd have a solid winner as an alternative.
(On a side note, I played with a Treo 800w for a day to do a review on the device, and I have to say I forgot how smooth WM can be with properly configured HW and SW)

Then again, if we had proper hardware acceleration available, we could apply the same thing to WM and the whole thing would really be a moot point...

EtherealRemnant 07-18-2008 01:18 PM

Re: Linux/Android working on Titan
 
Android does not rely on any underlying Windows drivers. The whole purpose of HaRET is to knock Windows out of memory entirely and dedicate the entire device to Android or a linux distro.

The reason the globe slows down is because its kinetic..... not because of touchscreen lag. If you touch the globe to the right of the center (remember, our screens aren't perfectly aligned) and don't move the stylus at all (takes a second to get it right), there is no screen jumpiness like you get in WinMo with graphics and the touchscreen.

gnatsstang 07-18-2008 01:36 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by EtherealRemnant (Post 350062)
stang, there was really no reason to repost that... I linked to that exact post in my previous post...

sorry. didnt c it. was doing my good for the day though. i like to research everything b4 i say n e thing . sorry for the toe-stepping 0-)

mike6043 07-18-2008 02:57 PM

Re: Linux/Android working on Titan
 
if you press the left arrow and m wile veiwing the today screen it gives you the option of background settings but says the action is not supported if you press it in contacts you get the option of new contact or dialer if you press it wile on the dialer you get the option of clear all recent calls or veiw contacts if you press it wilein the browser u get the options goto, bookmarks, windows, history, refresh, and more. thats all ive found so far

dishe 07-18-2008 03:00 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by EtherealRemnant (Post 352166)
Android does not rely on any underlying Windows drivers. The whole purpose of HaRET is to knock Windows out of memory entirely and dedicate the entire device to Android or a linux distro.

The reason the globe slows down is because its kinetic..... not because of touchscreen lag. If you touch the globe to the right of the center (remember, our screens aren't perfectly aligned) and don't move the stylus at all (takes a second to get it right), there is no screen jumpiness like you get in WinMo with graphics and the touchscreen.

You're only partially correct, I think.

I admit I'm not familiar with all of the internal workings of HaRet, but Linux doesn't magically have support for our hardware, the code has to be taken from somewhere.
It is my belief that this was built around the drivers available for the Vogue, which would imply that they have the same limitations and problems as the originals.

I am aware of the "kinetic" nature of the globe. You misunderstood me.
If the globe smoothly ran slowly, I'd agree with you. But the frame rate slows down, not the globe- that is, you start skipping frames almost to the point that it becomes a slide show (3 frames per second maybe) until you let go of the screen. Then the framerate picks up.
That's a driver error that's been existant since HTC started using the new Qualcomm chips, and has been documented on various sites and blogs regarding the acceleration problems.

EtherealRemnant 07-18-2008 04:39 PM

Re: Linux/Android working on Titan
 
dishe - my Android test does not have a framerate drop when I touch the screen with my stylus, at least not to something like 3 FPS. I know the framerate drop you speak of but its nowhere near as dire on my device. By the way, I've seen this activity on every touchscreen device in existence in one form or another. The touchscreen takes up a fair amount of CPU cycles and naturally will slow everything down when its being used.

And no, HaRET knocks Windows Mobile and all of its drivers out of RAM and fires up a linux kernel.

I've built an Android kernel from the ground up and it specifically asks you what support to build - Ie., MSM7500 chipset, touch screen, etc.

All of the drivers that run Android are true linux drivers and Qualcomm and Google have worked together to bring about the drivers along with additions from the Android developer community. Remember that demo device that Qualcomm was showing off at CTIA running Android?

avalon53 07-18-2008 05:35 PM

Re: Linux/Android working on Titan
 
keep up the good effort guys...i have it running on my mogul/titan also:headbang:Hopefully someone can get the hardbuttons working correctly.

It's nice to have an alternative to WM:)

kyppcgeek 07-18-2008 05:44 PM

Re: Linux/Android working on Titan
 
what programs are you using to edit these linux config files?

I'm running Ubuntu in tandem with Vista so I may be able to check them out.

thakidc 07-18-2008 06:03 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by mike6043 (Post 352322)
if you press the left arrow and m wile veiwing the today screen it gives you the option of background settings but says the action is not supported if you press it in contacts you get the option of new contact or dialer if you press it wile on the dialer you get the option of clear all recent calls or veiw contacts if you press it wilein the browser u get the options goto, bookmarks, windows, history, refresh, and more. thats all ive found so far

In the maps app you get a search, layers, directions... or something to that affect.

EGOvoruhk 07-19-2008 01:18 PM

Re: Linux/Android working on Titan
 
How are you guys calibrating your screen? I'm having a hell of a time opening programs on the scroll menu

Can someone post some known controls? Thanks!

EtherealRemnant 07-19-2008 03:28 PM

Re: Linux/Android working on Titan
 
You have to use the stylus for everything on Android right now... but to calibrate the screen, press and hold the camera button to bring up the onscreen keyboard, then take your stylus (still holding the camera button) and tap the very bottom left corner of your screen and the very bottom right corner of the screen. Then release the camera button and close the keyboard.

That at least aligns the keyboard decently... there is currently no way to totally fix alignment issues though.

00CericaRuss 07-21-2008 04:20 AM

Re: Linux/Android working on Titan
 
As far as key mapping.. i figured out the file to edit in the system.img and I'm trying to get a keymap via HaRET, but I'm getting fairly inconsistant results.
If anyone can get a good reading of the GPIO's from our keyboard/hardware buttons, I can try to cruft up a new file and add it in.
Also, I found the file for setting the timezone.. it's currently set to GMT.

lmk if anyone can be of help, or if the tytn/whatever else that has a keyboard that works with android and has a working system image and I can try to get that file from it an try to get the keyboard layout for it.

-Russ

00CericaRuss 07-21-2008 04:22 AM

Re: Linux/Android working on Titan
 
i really meant kaiser.. looking for their files as we speak

EtherealRemnant 07-21-2008 04:30 AM

Re: Linux/Android working on Titan
 
I tried getting the GPIOs for the Mogul and it was rather inconsistent too. Some GPIOS registered on more than one key for me... was that your result too?

I also remember some keys that inexplicably gave no GPIO response... even without ignoring any GPIOs... so I gave up on it, especially since Android wasn't actually booting on our devices yet anyway.

Also, has anyone else had issues running this on top of no2chem's pre-8? I had it working fine on pre-7 but I flashed pre-8 and now it boots, but I can't launch any apps, it just freezes... could have been a fluke. I'll redownload it tomorrow at work and see what's up.

00CericaRuss 07-21-2008 05:27 AM

Re: Linux/Android working on Titan
 
I did see inconsistant results w/HaRET where some buttons would show up in the console, and some wouldn't, and some would show the exact same thing as the others. I haven't messed w/phones in about 3 or so years, and I'm in the process of moving (less than 2 weeks from now) so my available time is a bit limited.

As far as I've played w/android on my 2gb sdhc (grabbed the kernel (zImage) from a post somewhere in the middle of this thread) and it runs great.
I have noticed if you hit the power key and say power off, the buttons stop working.
Also, I've noticed some webpages just don't load.
Wifi disables itself when you boot android (if you had it running in wm61)
Other than that, the os is great, fast, smooth and almost worth running full time.
Once we get a few things ironed out, and maybe some good knowledge dumps, we could probably get this running on our phones much better.

on a sidenote, is it possible to mount the zImage as a loop device? what fs type is it?
As for timezone, mount -o loop data.img tmp then edit /timezone in there.
As for keymaps, mount -o loop systemimg tmp then take a look at /usr/keylayout/qwerty.kl
I could be wrong on that, but you never know.. I couldn't find anything comperable in the kaiser files.

I'm currently running nexvision's iphone rom... one of my hardware buttons took a crap so i decided to get off my rom that built from nu2's kitchen just to test. but .. android boots and runs great

unvivid 07-21-2008 01:47 PM

Re: Linux/Android working on Titan
 
Alright, I d/l the zip file and manually updated the initrd and zImage files to get the keyboard alignment fixed. I get the the invalid argument error when booting but hey hey I've got console! Couple of questions:

1. Am I a complete idiot? How do I type with symbols on the keyboard? (note, this is one question, not two ;))

2. Is anyone here familiar with the zImage compression? I want to extract it on my box and edit the conf files and possibly expand the file support to work on my stock 512 card. I don't understand why it isn't mounting the card but I'm sure with a couple of tweaks any card would mount fine.



I also noticed people talking about the Red "Cyclone" or loading bar. That bar should only come up if you d/l the files seperately. The default.txt is different for those files and loads android directly. Which, unless you have vogue memory...

ryanbg 07-21-2008 03:12 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by unvivid (Post 355262)
Alright, I d/l the zip file and manually updated the initrd and zImage files to get the keyboard alignment fixed. I get the the invalid argument error when booting but hey hey I've got console! Couple of questions:

1. Am I a complete idiot? How do I type with symbols on the keyboard? (note, this is one question, not two ;))

2. Is anyone here familiar with the zImage compression? I want to extract it on my box and edit the conf files and possibly expand the file support to work on my stock 512 card. I don't understand why it isn't mounting the card but I'm sure with a couple of tweaks any card would mount fine.



I also noticed people talking about the Red "Cyclone" or loading bar. That bar should only come up if you d/l the files seperately. The default.txt is different for those files and loads android directly. Which, unless you have vogue memory...

1. Do you even have the keyboard working?
2. Isn't it just Gzipped?

00CericaRuss 07-21-2008 03:14 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by ryanbg (Post 355379)
2. Isn't it just Gzipped?

it is gzipped, but I'm unable to mount it... not sure what the fstype is.

anyone compile a kernel yet? If so, you could probably see what it is via the output of the compile

ryanbg 07-21-2008 03:18 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by 00CericaRuss (Post 355384)
it is gzipped, but I'm unable to mount it... not sure what the fstype is.

anyone compile a kernel yet? If so, you could probably see what it is via the output of the compile

I think I read somewhere it's ext2 but I am not sure. Try that.

00CericaRuss 07-21-2008 03:26 PM

Re: Linux/Android working on Titan
 
doesn't seem to be ext2
sudo mount -t ext2 -o loop zImage tmp/
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


VFS: Can't find an ext2 filesystem on dev loop0.

cdigitaldetroit 07-21-2008 03:37 PM

Re: Linux/Android working on Titan
 
Did you try ext3? I know the data.img is.

ryanbg 07-21-2008 03:43 PM

Re: Linux/Android working on Titan
 
If you have console, did you try running fdisk or something? Try jffs2

EtherealRemnant 07-21-2008 04:55 PM

Re: Linux/Android working on Titan
 
To answer the earlier question, yes I've built a kernel... but honestly its a royal PITA because you don't really know what you need and what you don't... and I built this back when Android was not running on the Mogul when I was trying to slim down initrd. I got it to dump to console and left it at that.

unvivid 07-21-2008 05:37 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by ryanbg (Post 355379)
1. Do you even have the keyboard working?
2. Isn't it just Gzipped?


Yes, I have the keyboard working, but it doesn't seem to act like any I've used. I've tried holding the keys, toggling alt/symbol (doesn't seem to do anything symbol related). It's limiting my usage of console. Otherwise I would think I could rewrite the mounting script. I did go and download the most recent versions of zImage and initrd. Maybe my updated versions do not work correctly. But if I load the old zImage then the keyboard doesn't display correctly.

http://cs-alb-pc3.massey.ac.nz/vogue/zImage
http://cs-alb-pc3.massey.ac.nz/vogue/initrd.gz

I've tried opening zImage in every compression tool I know of in Linux/Windows. So far no go. And every way I've tried to mount it seems to fail too. Google hasn't provided any real info beyond that I can dd it.

andril 07-21-2008 05:44 PM

Re: Linux/Android working on Titan
 
anyway to get this working on the 6700 by chance

l33tlinuxh4x0r 07-21-2008 06:10 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by andril (Post 355588)
anyway to get this working on the 6700 by chance

off topic but I thought that linux was already booting on the 6700.

00CericaRuss 07-21-2008 06:26 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by ryanbg (Post 355430)
If you have console, did you try running fdisk or something? Try jffs2

ahh.. haven't tried jffs... I don't have any mtd support in my kernel right now so it looks like i have to compile some modules.

I'm moving in the next couple weeks so I'm a bit busy w/packing and organizing stuff, but I'll try to make some progress on some of this

00CericaRuss 07-21-2008 06:36 PM

Re: Linux/Android working on Titan
 
eh.. found a box at work that has it in the kernel... going to try to mount on there

unvivid 07-21-2008 08:11 PM

Re: Linux/Android working on Titan
 
Hmm, even after formatting my stock 512 trans flash at home I'm still getting an invalid partition error... Interesting. How is everyone else formatting there cards? I've used both windows gui and windows cli with sectors set to 512.

00CericaRuss 07-21-2008 08:15 PM

Re: Linux/Android working on Titan
 
eh.. still haven't been able to mount the zImage.
Well.. i should say i was able to mount it, but i was unable to read anything from the mount point... *shrug*

l33tlinuxh4x0r 07-21-2008 09:23 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by 00CericaRuss (Post 355774)
eh.. still haven't been able to mount the zImage.
Well.. i should say i was able to mount it, but i was unable to read anything from the mount point... *shrug*

The zimage is the actual kernel. AFAIK you cannot mount and edit it you need to recompile it. the initrd can be decompressed and edited though.

unvivid 07-21-2008 10:34 PM

Re: Linux/Android working on Titan
 
makes sense, I assumed it was the other way around

ryanbg 07-22-2008 12:26 AM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by unvivid (Post 355765)
Hmm, even after formatting my stock 512 trans flash at home I'm still getting an invalid partition error... Interesting. How is everyone else formatting there cards? I've used both windows gui and windows cli with sectors set to 512.

I formatted with Explorer, so it shouldn't be too complicated to get it working. I am not really sure what's going on with this thing being so picky about which SD cards you use. I wonder if it has to do with allocation size?

EtherealRemnant 07-22-2008 02:41 AM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by l33tlinuxh4x0r (Post 355855)
The zimage is the actual kernel. AFAIK you cannot mount and edit it you need to recompile it. the initrd can be decompressed and edited though.

This is exactly correct.

You need to grab the Android kernel source....... I can tell you right now though, its highly unstable and getting a working kernel isn't an easy task. I'd leave it alone for now but if you know how to git the source, its git.android.com and the git repository is kernel.git

ryanbg 07-22-2008 03:27 AM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by EtherealRemnant (Post 356176)
This is exactly correct.

You need to grab the Android kernel source....... I can tell you right now though, its highly unstable and getting a working kernel isn't an easy task. I'd leave it alone for now but if you know how to git the source, its git.android.com and the git repository is kernel.git

http://git.android.com/?p=linux-msm.git for the MSM chipset source

unvivid 07-22-2008 01:27 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by ryanbg (Post 356099)
I formatted with Explorer, so it shouldn't be too complicated to get it working. I am not really sure what's going on with this thing being so picky about which SD cards you use. I wonder if it has to do with allocation size?

I see alot of other people are having issues too. I wonder if it's SD Driver related. I've tried every allocation size available. I've tried straight up FAT too. No difference. I've formatted through the phone using no2chem's Storage manager as well. Nothing seems to work. I'll have to see if I can pick up another SD card. If my linux box would just recognize my card reader I'd gpart it. Maybe have to play around a little more when I get home. If the wifey will let me.

EtherealRemnant 07-22-2008 01:51 PM

Re: Linux/Android working on Titan
 
Quote:

Originally Posted by ryanbg (Post 356194)
http://git.android.com/?p=linux-msm.git for the MSM chipset source

linux-msm.git is deprecated... better to get used to using kernel.git now rather than later.

wasupwithuman 07-22-2008 06:52 PM

Re: Linux/Android working on Titan
 
Ok... a few tips...
1. When booting haret, try to have atleast 20 megs of ram free... I dont know if it's nessessary... but it does help.
2. I normally do a soft reset right before i boot Android... Again.. helps clearing up the ram...
3. Try putting all the files in the same place... \storage Card (do not make a haret or android folder)
4. I haven't tried booting it on wm 6... but the stock sprint 6.1 rom that just came out... boots it up nicely... It takes my mogul about 23 seconds...
5. join the htc-linux chatroom on freenode... if you need some help...everyone there is really good at helping people out...
6. Take some time if you go in the chat room to thank DZO... this guy made it possible. I'd say donate some money via paypal... but i havent been able to find if he accepts donations.. (but maybe if we get enough people to donate he can buy a mogul and help us out...) just a thought...

As for the certain type memory sticks... I think it's just your guy's phone being picky... Cause it should run on any >2gb ... Try going and buying a brand new one... put all the files on the root of the directory and run it... Don't reformat it... just get the brand new one, extract the files from android.zip and run it from /storage card... Also... like i put in the above tips... do a soft reset before to free up some ram haret still needs some ram to boot... Try disabling alot of your start up programs... Also do the soft reset with the card in.. sometimes wm won't see the card if u put it in after it boots... try all that... It should work..

As of right now though.. if u cant get it to work... ur not missing too much.. there a few people trying to get the keyboard to work... until that happens... not much use... but dam it looks cool.

maxdamage2122 07-24-2008 08:39 PM

Re: Linux/Android working on Titan
 
all i have to say is wow. this has come a long way since the last time i was messing with android. couldn't even get it to boot before. wish i knew more so i could help out but keep up the good work guys i appreciate it.


All times are GMT -4. The time now is 06:53 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0