[Android Software Development] gregnapola:
Hello everyone,

I'm starting this 3d to support a porting "project" for the LG Ks20. Now I own an HTC Sapphire and I'm really happy with it, thanks to Google Android OS...and it would be so nice to have it running in our phone: it has a quit good hardware specs to run it, and I know it runs well on HTC ELF (Yes, the ELF, not only the Vogue :) ), wich specs are worse than Ks20's, so why don't give a try?

About a year ago, in Kaiser Android developing thread, I found that someone (spocky :) ) was able to run Vogue's android kernel on Ks20, than i tried it and just stop there... just curious. Then, in theese days, I reconsider this project and I began to investigate...As far as I know there's a lot of porting project on msm7200-based devices, and ks20 hardware is very closer to other phones...so I think we have some chances!

This is the situation:

- Lg Ks20 can run earlier (0.8 ver) vogue kernel and Niki's kernel with Haret, but only within RamDisk...so reading images files from SD doesn't work as Haret doesn't recognize it. This is the 1st big issue, as we can't load and run the last bigger 1.0,1.1,1.5 android rootfs'images directly into RAM...

- Touch screen doesn't work

- Usb network doesnt' work, so you can't login trough ssh so there's no input options after the kernel is loaded; you can try to boot Angstrom distro on Ks20: it works, but without input method you can't even login

Basically you cant' do anything for now, just boot the image and try running 1 or 2 applications...but this is a good start, and it means that it could be done! We have a bootable kernel, an LCD working and you can see Android graphical interface on the ks20.

now the first thing is to have a complete list of Lgks20 GPIOs. This can be done using HARET. I try to get the list using a Haret version that recognize msm7200 as msm7500 (they're pretty similar), and I obtain these results:

HARET#1 watch gpios 10
Beginning memory tracing.
Watching GPIOS(00): Addr 92b00800(@a9200800)
Watching GPIOS(01): Addr 92a00c00(@a9300c00)
Watching GPIOS(02): Addr 92b00804(@a9200804)
Watching GPIOS(03): Addr 92b00808(@a9200808)
Watching GPIOS(04): Addr 92b0080c(@a920080c)
Watching GPIOS(05): Addr 92b00834(@a9200834)
Watching GPIOS(06): Addr 92a00c20(@a9300c20)
Watching GPIOS(07): Addr 92b00838(@a9200838)
Watching GPIOS(08): Addr 92b0083c(@a920083c)
Watching GPIOS(09): Addr 92b00840(@a9200840)
Watching GPIOS(10): Addr 92b00810(@a9200810)
Watching GPIOS(11): Addr 92a00c08(@a9300c08)
Watching GPIOS(12): Addr 92b00814(@a9200814)
Watching GPIOS(13): Addr 92b00818(@a9200818)
Watching GPIOS(14): Addr 92b0081c(@a920081c)
000.000 GPIOS 92b00800=0
000.000 GPIOS 92a00c00=1f0005d
000.000 GPIOS 92b00804=4000
000.000 GPIOS 92b00808=12200
000.000 GPIOS 92b0080c=0
000.000 GPIOS 92b00834=0
000.000 GPIOS 92a00c20=1f00050
000.000 GPIOS 92b00838=1f04008
000.000 GPIOS 92b0083c=3c1a208
000.000 GPIOS 92b00840=0
000.000 GPIOS 92b00810=f
000.000 GPIOS 92a00c08=fc0c2
000.000 GPIOS 92b00814=1feff09
000.000 GPIOS 92b00818=423660d
000.000 GPIOS 92b0081c=0

....

[B]007.466 GPIOS 92a00c20(213)=1d00050
007.606 GPIOS 92a00c20(213)=1f00050[/B]

So, when I press the Joypad Down, for example, it shows me the last 2 values, and so on...

My questions:

- Now, why there are only 14 GPIOs available while on Ks20 service manual are more than 90?

- is GPIO(00) a list of GPIOs 0 to 15 maybe? ...GPIO(01) 16-31 etc?

- According to Ks20 service manual The Joypad correspond to GPIOs 33 to 40...So what's 213 ?

- Why aren't there GPIOs changes when I touch the touchscreen (but yes, can get irqs trought "wirq" command )

- Maybe I have to re-compile haret forcing it recognize the msm7200 , or Ks20 MTYPE? If so, how to do it?

The next goal is to get SD and usb net interface working

Thanks to all people that will help me... :)

(To try it , unzip the attachment in the link below to your sd card in one folder, then run Haret and tap "Run"; maybe you have to press some buttons during boot to get it loading...don't know the why...)

Useful links:

http://mikechannon.net/PDF Manuals/LG/LG KS20 Service Manual ENG_1123_1.0.pdf - a lot of useful infos, expetially for Qualcomm msm7200 CPU

http://www.megaupload.com/?d=LBNQVSP8 - Android 0.8 Bootkit; basically the same of HTC Nike :)