Motorola Development Community

Member Login

Quick Search



Android OS gPhone's OS concept, Andriod!


Reply
  #11  
Old 08-06-2008
MANUP456's Avatar
Theme GURU
 
Join Date: Jan 2008
Location: Danbury,CT
Posts: 1,715
Thanks: 158
Thanked 376 Times in 194 Posts
Default

Looking foward to a full working product.
__________________
I got a MAN-UP lifestyle.
Reply With Quote
  #12  
Old 08-08-2008
wyrm's Avatar
caffeine addicted
kernel plumber
 
Join Date: Jan 2007
Location: Brazil
Posts: 387
Thanks: 8
Thanked 17 Times in 15 Posts
Send a message via MSN to wyrm
Default

Hi androidezx,

I am looking at your code and I have some comments:

1. android-a1200-pcap.patch replace all ezx_pcap_write register writes with just a 0 write to REG_INT_SEL. Writing values to registers without knowing their meaning is bad and can harm your phone (seriouslly!). I marked this Alex Zhang contributions long ago when he contributed this code to us with the /* wrong */ comments and there was a good reason for that.

2. android-touchscreen.patch Also not a good idea. You cant just enforce the raw TS samples to the range accepted by android. You have to do filtering and calibration. You can write an userspace daemon for this (or use tslib, altough i dont know if you can use it with android), that outputs to a Uinput device file, so android can read correct data from /dev/input/whatever.

3. Consider updating your OpenEZX patchset to our git latest version. A lot of stuff have changed latelly, and this is the code which will be submitted to mainline linux. (not to mention some cool new features).

4. the BP stuff. The trick here is that once put on flash mode (when you enter the bootloader) you cant put BP to work again without a power cycle. So, to get BP working, you have to flash a secondary bootloader on your phone, look for gen-blob on my people.openezx.org home page. You will have to flash it to the kernel partition on your phone, and everything will be much easier
Reply With Quote
  #13  
Old 08-08-2008
MotoFans NWBE
 
Join Date: Jan 2007
Posts: 13
Thanks: 3
Thanked 12 Times in 3 Posts
Default

I got Android running on my a780!

Thanks to androidezx for his help .

I've tested Android with:
- androidezx patchset and rootfs.
- e680 and a780 kernels/modules.
- configuring a780 keycodes.
- Adding ApiDemos.apk (you can see for example OpenGL demos ).

@androidezx. I don't know why, but the red ciclon only appears on screen if I telnet into the phone and write something with my PC keyboard. It sounds very strange but I've done many tests and if I don't telnet into the phone and don't press some keys, then the red ciclon doesn't show up or it lasts many seconds.

I've also tested it with gen_boot (many thanks to wyrm) but my phone is switched off after a minute. I have the same problem with other kernels and rootfs like Openmoko or Qtopia.
@wyrm: do you know why? If I do the same thing with boot_usb everything goes fine (as you can see in the video).

@wyrm, For your info, I've installed dual boot, and the second "kernel" is flashed with gen_boot, so this way, I can start 2.4 kernel without transflah card.

I agree with wyrm, it good be nice to use latest patches.

@androidezx I can try to help you with a780 although I don't have enough C/Linux skills to make patches

I've uploaded a video on YouTube:

[ame="http://www.youtube.com/watch?v=ntycTJosBHA"]YouTube - Android on a780[/ame]
Reply With Quote
  #14  
Old 08-09-2008
wyrm's Avatar
caffeine addicted
kernel plumber
 
Join Date: Jan 2007
Location: Brazil
Posts: 387
Thanks: 8
Thanked 17 Times in 15 Posts
Send a message via MSN to wyrm
Lightbulb

Quote:
Originally Posted by jorgesmm View Post
I've also tested it with gen_boot (many thanks to wyrm) but my phone is switched off after a minute. I have the same problem with other kernels and rootfs like Openmoko or Qtopia.
@wyrm: do you know why? If I do the same thing with boot_usb everything goes fine (as you can see in the video).
The phone switch off is a good signal it means that BP was waiting for AP to start communication, as AP doesnt, BP asked the power-off. Sort of a watchdog.

With boot_usb the bootloader puts the BP on flashmode, in this case the watchdog is not active.

To stop the watchdog, simply open() all /dev/mux* devices early at boot (before loading android). This is enough to keep the phone on. (and to talk with bp; cat /dev/mux<i> and you will see some nice modem messages).

Quote:
Originally Posted by jorgesmm View Post
@wyrm, For your info, I've installed dual boot, and the second "kernel" is flashed with gen_boot, so this way, I can start 2.4 kernel without transflah card.
Good idea, altough it propably slows down a lot the sartup of your phone.

I will change gen-blob to load the default kernel from flash instead of the mmc to allow use without a card. Thanks for the idea.
Reply With Quote
  #15  
Old 08-10-2008
MotoFans NWBE
 
Join Date: Jan 2007
Posts: 13
Thanks: 3
Thanked 12 Times in 3 Posts
Default

@wyrm

I've done some tests but still happens the same.
I've executed cat /dev/mux*& and this is the only thing Ive seen:

+MBAN: Copyright 2000-2002 Motorola, Inc.
+CIEV: 1,0

I've also tested with OpenMoko and Qtopia (altough both rootfs use ezxd and I think it opens all /dev/mux, ins't it?).

What else can I do?
Reply With Quote
  #16  
Old 08-11-2008
MotoFans NWBE
 
Join Date: Aug 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can anybody port android on rokr E2?

Last edited by honking; 08-11-2008 at 03:47 AM.
Reply With Quote
  #17  
Old 08-11-2008
MotoFans NWBE
 
Join Date: Jul 2008
Posts: 21
Thanks: 0
Thanked 24 Times in 8 Posts
Default

Quote:
Originally Posted by wyrm View Post
Hi androidezx,

I am looking at your code and I have some comments:

1. android-a1200-pcap.patch replace all ezx_pcap_write register writes with just a 0 write to REG_INT_SEL. Writing values to registers without knowing their meaning is bad and can harm your phone (seriouslly!). I marked this Alex Zhang contributions long ago when he contributed this code to us with the /* wrong */ comments and there was a good reason for that.

Wyrm: Thanks for your advise! I will avoid it as the following code change.

2. android-touchscreen.patch Also not a good idea. You cant just enforce the raw TS samples to the range accepted by android. You have to do filtering and calibration. You can write an userspace daemon for this (or use tslib, altough i dont know if you can use it with android), that outputs to a Uinput device file, so android can read correct data from /dev/input/whatever.

Wyrm: You are right. The right way is that filtering/calibration should be done before writing touch drive datat to /dev/input/event1. But Android file system reads raw x/y coordination info and pressure info from /dev/input/event1. There is some difficulty in calibration. Hope that someone finish this task. Here I just do rough calibration for demo purpose.

3. Consider updating your OpenEZX patchset to our git latest version. A lot of stuff have changed latelly, and this is the code which will be submitted to mainline linux. (not to mention some cool new features).

Wyrm: Could you tell me where I can get this latest git version patchset? Thanks!

4. the BP stuff. The trick here is that once put on flash mode (when you enter the bootloader) you cant put BP to work again without a power cycle. So, to get BP working, you have to flash a secondary bootloader on your phone, look for gen-blob on my people.openezx.org home page. You will have to flash it to the kernel partition on your phone, and everything will be much easier
Wrym: I saw there was one gen2bp.patch under people.openezx.org/wrym. I want to know whether it is the source of gen-blob (including A1200) which was located in people.openezx.org/wrym/gen-blob. Thanks
Reply With Quote
  #18  
Old 08-11-2008
wyrm's Avatar
caffeine addicted
kernel plumber
 
Join Date: Jan 2007
Location: Brazil
Posts: 387
Thanks: 8
Thanked 17 Times in 15 Posts
Send a message via MSN to wyrm
Default

no, it is not.
gen-blob is on svn.openezx.org/trunk/src/blob/gen-blob.

The latest git patchset is on git://git.openezx.org/openezx.git please note that some patches are still not on this version, this is the case with ts0710mux driver, so you will have to port it from the svn.openezx.org patchset.

Last edited by wyrm; 08-11-2008 at 02:55 PM.
Reply With Quote
  #19  
Old 08-12-2008
MotoFans NWBE
 
Join Date: Jul 2008
Posts: 21
Thanks: 0
Thanked 24 Times in 8 Posts
Default

Finally, let keypad work on Android (tested with A1200) fully. Original a1200 keypad matrix code swapped unexpected. Now I transform this keypad code matric from 6*5 to 5*6 and keypad interrupt can be received and keycode event can be sent to /dev/input/event1 correctly.

Another infor for your reference: Android uses /system/usr/keylayout/qwerty.kl to map raw keypad event to internal android key event. You can get internal android key event code from Emulator. Here is what I got from emulator.

Home key: 0x66 (102)
Menu key: 0xE5 (229)
Back key: 0x9E (15

Five direction navigation key:
Up key: 0x67 (103)
Down key: 0x6C (10
Left key: 0x69 (105)
Right key: 0x6A (106)
Center key: 0xE8 (232)

Call (Send) key: 0xE7 (231)
Hangup(End) key: 0x6B(107)

Certainly, we cannot send these key event to android application. Instead, we should send raw key event to android application from keypad driver, then android application received these raw key events and mapped them using qwerty.kl. For example, if we want to specify one key (like Camera key of A1200) as Call (Send) key, we can get this keyevent code of Camera (in my testing, I assigned 231 to Camera key). Then do mapping in qwerty.kl via specifying "key 231 CALL WAKE_DROPPED" is ok. In other words, we must map our keyevent code to internal android keyevent name (like CALL in this example).

The below is the mapping between keyevent name used in qwerty.kl and real keyevent android required:

Keyevent Name in qwerty.kl Android key
HOME Home key
SOFT_LEFT Menu

DPAD_UP Up key:
DPAD_DOWN Down key
DPAD_LEFT Left key
DPAD_RIGHT Right key
DPAD_CENTER Center key

CALL Call (Send) key
ENDCALL Hangup(End) key
Reply With Quote
The Following User Says Thank You to androidezx For This Useful Post:
sabrod (10-20-2008)
  #20  
Old 08-12-2008
MotoFans NWBE
 
Join Date: Jul 2008
Posts: 21
Thanks: 0
Thanked 24 Times in 8 Posts
Default

Audio still not work on A1200 Android. (I have no more time to focus on it. Currently, busy working on A1200 BP bring-up).

Wyrm,
Does audio work on A1200 with latest openezx git patch?

Thanks!
Androidezx
Reply With Quote
 
Reply

Tags
a1200, andoid, ming, porting

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Games to porting to A1200/E6 superfly86 Moto Gamers 4 4 Weeks Ago 03:37 PM
MWC 2009: World second andoid phone (HTC magic) (video) sushjames Android News 3 02-17-2009 05:08 PM
I have a problem during I am porting Linux 2.6.24 to my A1200. lig4net Android OS 0 12-14-2008 03:52 AM
PROJECT: Porting EzxEmu (SNES + GENESIS) to A1200. dehzinho A1200 General Chat 7 11-05-2007 11:23 PM
Q: Porting Gaim or Kopete work on A1200? RusBiT A1200 General Chat 2 10-04-2007 11:22 PM

 
Advertisement

Partner Links





Web Analytics