View Full Version : [Porting] ANDROID on LG Ks20
gregnapola
1st September 2009, 04:48 PM
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
....
007.466 GPIOS 92a00c20(213)=1d00050
007.606 GPIOS 92a00c20(213)=1f00050
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%20Manuals/LG/LG%20KS20%20Service%20Manual%20ENG_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 :)
mitsu3000gt
1st September 2009, 06:57 PM
nice work!!!!~..
guess seeing HTC sense working on ks20 won't be long...
keep up the good work
tentator
2nd September 2009, 03:36 PM
Wow cool!
I'll start immediately some work on my LG KS20!!!! ;)
tent:wq
gregnapola
2nd September 2009, 03:46 PM
Wow cool!
I'll start immediately some work on my LG KS20!!!! ;)
tent:wq
can you figure out how to modify the keypad definition using GPIOs infos provided by Haret and why it gaves me theese values instead of 1 or 0?
tentator
2nd September 2009, 05:07 PM
Hello everyone,
(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...)
http://www.megaupload.com/?d=PJ8DGFT8 - Android 0.8 Bootkit; basically the same of HTC Nike :)
Actually that zip should be uncompressed in the root (/) of the SD to work.. not in a folder..
But a part from that, the problem is that on mine I just get a linux boot screen till keyboard detection and then nothing.. after some seconds it just reboots in winmobile again..
so definitely it seems somehow worried about keyboard..
tent:wq
gregnapola
2nd September 2009, 05:32 PM
Actually that zip should be uncompressed in the root (/) of the SD to work.. not in a folder..
But a part from that, the problem is that on mine I just get a linux boot screen till keyboard detection and then nothing.. after some seconds it just reboots in winmobile again..
so definitely it seems somehow worried about keyboard..
tent:wq
It will have to be uncompressed in the root of SD; since we've not a rootfs to point to yet, uncompressing it to a folder or to the root doesn't matter for now (I'Ve just booted it within 2 subfolders and there's no problem).
Anyway, try to boot it kepping the jog up pressed; I can always boot ti with no probs
Joline
2nd September 2009, 08:46 PM
Hi,
I guess you already know this site: http://www.androidonhtc.com/start. But just for all the other... ;)
tentator
2nd September 2009, 08:46 PM
..uhm.. strange.. even by pressing the jog upwards during haret and boot I still get like the linux boot image staing there for some second and then th KS20 rebooting again into windows mobile...
when should I press it upwards? and what should it do?
btw, shouldnt there be something like system.img (or system.gz) in the image??
tent:wq
@Joline: well, but there is no support for KS20 in that site, right? ;)
gregnapola
2nd September 2009, 11:15 PM
..uhm.. strange.. even by pressing the jog upwards during haret and boot I still get like the linux boot image staing there for some second and then th KS20 rebooting again into windows mobile...
when should I press it upwards? and what should it do?
You shouldn't "keep" the jog pressed, you have to press it alternately
btw, shouldnt there be something like system.img (or system.gz) in the image??
As I wrote in the 1st post:
- 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...
Now, the 0.8 filesystem image is enough small to be loaded entirely into the RAM so initrd and the rootfs are "packed" into one file; since the Android images became larger, it was necessary to separate initrd from rootfs (packed in system.img or system.gz), but without working SD card driver the kernel, once loaded, cannot mount the partition in which the filesystem is.
gregnapola
2nd September 2009, 11:16 PM
Hi,
I guess you already know this site: http://www.androidonhtc.com/start. But just for all the other... ;)
Yes...I'm learning a loooooot of thing from that site...anyway , thank you :)
tentator
3rd September 2009, 01:32 PM
You shouldn't "keep" the jog pressed, you have to press it alternately
As I wrote in the 1st post:
- 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...
Now, the 0.8 filesystem image is enough small to be loaded entirely into the RAM so initrd and the rootfs are "packed" into one file; since the Android images became larger, it was necessary to separate initrd from rootfs (packed in system.img or system.gz), but without working SD card driver the kernel, once loaded, cannot mount the partition in which the filesystem is.
Sorry man, but still no success in booting that image, even by pressing up in different moments and repeatingly.. :( where can I find the lates source for 0.8 vogue? If you proviede a link I'd like to try to recompile the kernel myself and retry.. and in the video you posted in the other thread I noticed that you're also using a different HARET version, right? maybe it's that?
since we have the same phone it sounds strange that it doesn't boot on mine.. :(
tent:wq
gregnapola
3rd September 2009, 01:56 PM
Sorry man, but still no success in booting that image, even by pressing up in different moments and repeatingly.. :( where can I find the lates source for 0.8 vogue? If you proviede a link I'd like to try to recompile the kernel myself and retry.. and in the video you posted in the other thread I noticed that you're also using a different HARET version, right? maybe it's that?
since we have the same phone it sounds strange that it doesn't boot on mine.. :(
tent:wq
I'm sorry!!!! Maybe I uploaded the wrong files from my PC...I've TONS of kernel and images :-P ... now I'm uploading them from the folder in my phone, look at the 1st post when it's done ;). Haret is good though... sorry again
karim_31
3rd September 2009, 02:15 PM
same thing for me didn't start on mine
please tell us how to do step by step:)
gregnapola
3rd September 2009, 02:58 PM
same thing for me didn't start on mine
please tell us how to do step by step:)
Now it should works... :D Let me know...
tentator
3rd September 2009, 04:27 PM
I'm sorry!!!! Maybe I uploaded the wrong files from my PC...I've TONS of kernel and images :-P ... now I'm uploading them from the folder in my phone, look at the 1st post when it's done ;). Haret is good though... sorry again
Ok, something changed now at least.. ;) I downloaded this new one and I can get to the supercar-like red bar weaving on the screen, but then shortly after seeing for a short moment the android desktop it again reboots spontaneously.. what's it sort of watchdog? ;) Uhm... Maybe there some button trick that I did not get correctly? :D
Well but anyway if there is something to be compiled I'd also like to try that way..
tent:wq
PS: karim, do you notice the same?
PS2: I also noticed that the initrd image is a .zip file.. does it mean I need to decompress it first? Because looking at the header of it it does not seem zipped archive......
gregnapola
3rd September 2009, 05:32 PM
Ok, something changed now at least.. ;) I downloaded this new one and I can get to the supercar-like red bar weaving on the screen, but then shortly after seeing for a short moment the android desktop it again reboots spontaneously.. what's it sort of watchdog? ;) Uhm... Maybe there some button trick that I did not get correctly? :D
Maybe mine is "Magic" :P...seriously, my ks20 restarts only if I don't press anything, otherwise it stays on even for a day...Actually you can only open google maps app with this keymap
Well but anyway if there is something to be compiled I'd also like to try that way..
tent:wq
PS: karim, do you notice the same?
PS2: I also noticed that the initrd image is a .zip file.. does it mean I need to decompress it first? Because looking at the header of it it does not seem zipped archive......
http://forum.xda-developers.com/showthread.php?t=441999
here you can find what you're looking for; the initrd extension doesnt matter, it's a gzipped file but it's mounted as disk image. If you unzip it's about 32 MB large and you can't use it with older Haret version because of memory limit (from haret changelogs)
tentator
3rd September 2009, 06:06 PM
ok.. so then I definitely do something wrong with that joypad up key.. ;)
Could you give me some detailed hint on exactly when you press/release and how many times that key and what is on the screen when I need to do it (ok this sounds really silly altrough!! :P)
tonight I'm goint to try to recompile from git if there is a 0.8 three.. and I'll see what happens with that..
tent:wq
tentator
4th September 2009, 10:38 AM
Ok, two quick updates:
1) I was able to boot your android image by pressing the up joggle something like 5 times each 1-2 seconds while booting.. then I could move around the main menu for like 10 seconds and then it rebooted again anyway.. :( ok I definitely think ther's something with the keys or some watchdog biting..... uhm... (any reports from other users here?)
2) I wasn't able to compile by yesterday since the git repository had some problems and I was not able to clone from git the .config for vogue part in the build, will try later again..
tent:wq
d3thstalker
4th September 2009, 10:56 AM
It works! I managed to successfully boot up Android. Unfortunately, I couldn't do much. Here a clip of the boot-up process.
http://www.youtube.com/watch?v=pmH8H4wvTcE
gregnapola
4th September 2009, 11:21 AM
It works! I managed to successfully boot up Android. Unfortunately, I couldn't do much. Here a clip of the boot-up process.
http://www.youtube.com/watch?v=pmH8H4wvTcE
Yes, it works....but....please....I'm looking for the nswer in the firts pages. At least for the keymap I need to understand how GPIOs are organized to edit board-vogue-keypad.c or even de default *keypad.c file and map them correctly at least
gregnapola
4th September 2009, 11:29 AM
Ok, two quick updates:
2) I wasn't able to compile by yesterday since the git repository had some problems and I was not able to clone from git the .config for vogue part in the build, will try later again..
tent:wq
Today I'm going to set-up my linux machine to compile it from the git repository; you can use the kaiser .config too , as it has the same proc of our Ks20, and in all config file from vogue and kaiser the MACH_TYPE is set to msm7x00a. I can't understand why if we have the same proc (=the same GPIOs) we can't boot kaiser kernel! (give me a kernel panic)
omgwiiso
4th September 2009, 12:43 PM
cool.................
karim_31
5th September 2009, 10:56 PM
any progression ?,?????
tuanh1985
6th September 2009, 06:38 AM
do you have any picture of android on KS20 ??? :D
gregnapola
6th September 2009, 10:32 AM
do you have any picture of android on KS20 ??? :D
http://www.youtube.com/watch?v=l1UB9jLpwmw
any progression ?,?????
I've talked with dcordes on #htc-android IRC channel and it gives me some infos about GPIOs mapping;
- About "missing" GPIOs: we need to find the memory address where CPLD GPIOs and tell Haret to watch them and we could it through a memory dump
- I've downloaded a version of Haretconsole and now it recognize my Ks20 as "Generic msm7500 cpu", like Haret do....so it shows me GPIOs with their name (for instance: in1- .... = 0 )
If anyone knows how to map HW keys with given GPIOs in Board-xxxx-keypad.c file maybe a good start
d3thstalker
10th September 2009, 02:17 PM
Any progress/news guys?
karim_31
15th September 2009, 03:28 PM
did you try the hero android version ????
gregnapola
15th September 2009, 05:40 PM
did you try the hero android version ????
did you read at least the 1st post !? Did you read the RULES of this section?
If you read you would have seen that there's NOTHING you can do with 0.9 version!! No touch screen, no network, no radio, no sd drivers...HOW could e Hero ROM run on Ks20 if there are no basic functions implemented yet?!?!?
Please....this is a DEVELOPERS section...if you can't help at all don't post! So sick to see only useless post....in 3 pages! :confused:
randomblame
16th September 2009, 03:13 AM
I've been working on this for the lg incite, I'm getting no where slow. I've tried so many many different builds and default.txt configurations it's unreal. Always upon executing herat the screen simply freezes - it does not reboot, it does not show the linux consol it just stays on that windows explorer shot and it always makes a second start/task bar apear at the bottom of the screen.
herat log always gets to the "go go go" line but it never goes anywhere... any suggestions?
here is some heratconsole output
Starting haretconsole, trying to connect to 169.254.2.1...
======== Connecting to haret ========
Minimal virtual address: 00010000, maximal virtual address: 7FFFFFFF
Detected machine Generic ARM v6/generic (Plat='PocketPC' OEM='LGE')
CPU is ARM ARM arch 6 stepping 2 running in system mode
Enter 'HELP' for a short command summary.
HaRET(1)# set ramsize 8000000
HaRET(2)# set mtype 1667
HaRET(3)# set ramaddr 0x1000000
HaRET(4)# set ramsize 0x07000000
HaRET(5)# boot
boot KERNEL=zimage INITRD=
Opening file zimage
boot params: RAMADDR=01000000 RAMSIZE=07000000 MTYPE=1667 CMDLINE='root=/dev/ram
0 ro console=tty0'
Boot FB feedback: 1
Built virtual to physical page mapping
Allocated 232 pages (tags=5D200000/12b95000 kernel=5D201000/12b94000 initrd=5D2E
4000/12ab1000 index=5D2E4000/12ab1000)
Built kernel tags area
Built page index
Video buffer at 4A0003C0 sx=240 sy=400 mx=60 my=66
Video Phys FB=158003c0 Fonts=12aaf094
preload=2260@5D2E7000/12aae000 sj=5D2E7000 stack=5D2E5000/12ab0000 data=5D2E6000
/12aaf000 exec=12aae128
Reading 927920 bytes...
Read complete
_______________
this is such a fun tool setlcd and playsound are fun commands
watch gpios captures absolutely nothing but wirq works which leads me to believe it may be happening too fast to be captured
anyway all I neeeeed for now is some sort of linux output on the screen any help would be appreciated
vmixez
22nd September 2009, 04:58 PM
Cool Work
I hope that KS 20 could run android just like others.
Girvo
23rd September 2009, 12:58 AM
Loving the progress so far!
http://www.youtube.com/watch?v=v1etbtava-g
Interestingly, Linux has been ported to the KS20 officially (somewhat) it seems. Now if only we could get the drivers from that project :)
wxroyz
25th September 2009, 09:13 PM
Where can download the (0.8 ver) vogue kernel for KS20
Please help thanks.
dimi89
2nd October 2009, 08:32 PM
Touch screen is not working....I hope you ppl will fix it...
zeroflagnet
19th October 2009, 11:11 PM
good work.
i dont know if you know this kernel page:
http://www.htc-linux.org/wiki/index.php?title=Kernel
it looks like our phone has a MSM7200 (non A) processor, but spooky had developed his (windowsmobile) images from the Diamond Images. And the Diamond has an MSM7200A processor.
did you wrote with spooky, pehaps he knows som things you dont no.
have you ever tried to start with a other kernel and only the kernel without android.
there is a linux version for a ks20(limo 2 platform) but i think it is not really puplicated. -> http://www.youtube.com/watch?v=v1etbtava-g&hl=de and <-
this was a demostration of the limo platform (http://www.limofoundation.org/solutions/index.php -> demostrtion handset)
perhaps we can get the kernel or touch driver source
have you tried to catch some informations from the limo fundation.
where can i download the source code from your kernel and wich toolcain did you use. can you write or post some tutorials for haret and the other tools for ks20 hardwareinspection, because i dont know how you got into the gpio menu/overview in haret.
ps: after these few words, i realized my last english practice was years ago
spocky12
20th October 2009, 06:07 PM
@zeroflagnet : I based my earliest roms on Diamond ones because at that time they were the latest available roms. But it was only for windows mobile sys part, not oem/driver part. As you said, ks20's processor is different.
phamtuanchip
27th October 2009, 05:47 AM
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
....
007.466 GPIOS 92a00c20(213)=1d00050
007.606 GPIOS 92a00c20(213)=1f00050
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%20Manuals/LG/LG%20KS20%20Service%20Manual%20ENG_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 :)
Do you have any more detail introduction , how to setup android on the KS20, i have one and i would try it on.
majorasshole
27th October 2009, 12:04 PM
Updated Vogue build with Donut flavour : http://code.google.com/p/vogue-android/downloads/list
Things are really moving forward, but still kernel panic for KS20.
tentator
2nd November 2009, 03:01 PM
Hi,
so I'll say the first thing to do is to work a little bit with HARET and recompile it since it seems that no version explicitly working for 7200 exist (only 7500). In order to enable SD booting, letting GPIOs work etc..
Documentation :
http://handhelds.org/moin/moin.cgi/HaRET_20Documentation
Sources (see in section via CVS):
http://www.handhelds.org/moin/moin.cgi/HaRET
or via http:
http://code.google.com/p/android-kaiser/downloads/detail?name=haret.tar.gz&can=2&q=
and some additional download, binary only:
http://handhelds.org/%7Ekoconnor/haret/
after that (so basically playing with GPIOs and maybe enabling SD booting) it is not clear to me what would be the next step:
-running the android 2.0 for having touchscreen and USBnet support (maybe 2.0 android is having already this)? so the only need is to do a compact version of android 2.0 for initial ramdisk boot,
-or if the problem still would persist with android 2.0 not having USBnet and touchscreen so the real need here would be to code that support as a linux kernel driver...
will start to hack around HARET anyway first, but let me know,
tent:wq
kingrz
11th November 2009, 11:41 AM
Wow, your project is :eek:
We are working on porting Android on LG KM900 ARENA. http://androidarena.pytalhost.net/
We need all the help that you can give!!!
TNX
pichouss
15th November 2009, 06:19 PM
Hy all!
As zeroflagnet, I'm wondering were could we find the sources of this kernel?
Because this is the only one I saw booting on the KS20...
FYI, some attempts I made this week end :
I extracted the .config file from this "nearly working kernel", so read into it that the config file was generated on April 2008 and it's a 2.6.24 Kernel :
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.24
# Wed Apr 9 11:34:20 2008
I get kernel sources from http://git.linuxtogo.org/ (group mobile-linux branch htc-vogue)
first difference is that it'a a 2.6.25 kernel (I tryed to extract older version from this git, but even in january 2008 it was a 2.6.25...)
whatever, I compiled it using vogue defconfig :
kernel uncompress, display " booting the kernel." and nothing else... no debug...
Then I changed kernel configuration to make it like the one I extracted form the 2.6.24 "working kernel"
Compile (needed some tweaks into sources) and ... the same (kernel decompress, display " booting the kernel." but nothing happens)
I tried different MTYPEs (vogue, polaris, nike, kaiser), tried some tweaks in config file, boot options, add debug into mach init...
but nothing more, not event a kernel panic :(
sometimes I had a sort of flashing screen, then black screen... but no more, no debug, nothing...
So does someone have sources of this kernel?
or another one booting on KS20?
(or at least one making a Kernel panic, its a better start than the "nothing happen" I had)
---------------------------------------------
Edit : Yatta!
It started!!! (I mean kernel don't panic and I could launch android 0.8 initrd )
The biggest problem I had above was not due to the kernel but to my haret!
I change to the latest haret from
http://code.google.com/p/vogue-android/downloads/list
And modify default.txt to had "board-htcvogue.panel_type=3" in the command line (see attachment)
But...
colors are inverted (I guess this is just a little tweak, but no the priority for now...)
I had to disable gpio driver because it made a kernel panic
so it's worst because we don't have key up working anymore...
It's a first step, now I have a base kernel to work on it:)
Just hop I'll have some time next week end to work on the gpio driver...
I join config file extracted from 2.6.24 "working kernel"
And the config file for 2.6.25 that I made and allows me to compile the booting kernel
tentator
18th November 2009, 11:52 AM
Hi!
great work! Quick question how did you disable gpio? And how did you understand this was the issue?
tent:wq
pichouss
18th November 2009, 02:16 PM
I'm at work now so I can't look at my sources, but from memory :
how did you understand this (gpio) was the issue?
I had a kernel panic with in the crash message "gpio_event_probe"...
This is the probe function from gpio input driver
how did you disable gpio?
With the above quick analyse, I decided to simply disable it in config file... but it broke some dependencies in vogue arch source files.
So I made a quick'n dirty fix : just add a "return 0;" (or "return ENODEV;" don't really remember...) at the very beginning of gpio_event_probe function (into drivers/input/misc/gpio.c or something like that)
With that tweak, kernel source compiles but gpio driver doesn't load :D
dimi89
21st November 2009, 01:41 PM
Eny news for porting Android in KS20 ? I read all posts and was wondering are you ppl working on it ?:cool:
gregnapola
21st November 2009, 02:13 PM
Edit : Yatta!
It started!!! (I mean kernel don't panic and I could launch android 0.8 initrd )
The biggest problem I had above was not due to the kernel but to my haret!
I change to the latest haret from
http://code.google.com/p/vogue-android/downloads/list
And modify default.txt to had "board-htcvogue.panel_type=3" in the command line (see attachment)
But...
colors are inverted (I guess this is just a little tweak, but no the priority for now...)
I had to disable gpio driver because it made a kernel panic
so it's worst because we don't have key up working anymore...
It's a first step, now I have a base kernel to work on it:)
Just hop I'll have some time next week end to work on the gpio driver...
I join config file extracted from 2.6.24 "working kernel"
And the config file for 2.6.25 that I made and allows me to compile the booting kernel
Wow...that's great!! finally something REALLY interesting in this 3d ;)
Cant' you read from log what GPIOs are causing kernel panic? GPIOs mapping is the next goal for me now...and, as tentator wrote in a previous post, we should working on Haret first to let it recognize msm7200 cpu
ajclai08
24th November 2009, 07:33 AM
Wow...that's great!! finally something REALLY interesting in this 3d ;)
Cant' you read from log what GPIOs are causing kernel panic? GPIOs mapping is the next goal for me now...and, as tentator wrote in a previous post, we should working on Haret first to let it recognize msm7200 cpu
my htc device has a msm7200 (400mhz) and haret recognizes it..
pichouss
24th November 2009, 08:52 AM
my htc device has a msm7200 (400mhz) and haret recognizes it..
2.6.24 kernel, the one in the first post of this thread, has one working GPIO.
In my opinion, if one is working, there's no reason that the others don't.
I think this is just that KS20's buttons are not connected to the same GPIO's than on the Nike.
Thanks to the big KS20 doc we have, We know witch GPIO is working, and on witch GPIO are connected all the buttons, so it should be easy to modify the driver.
But to do so, we need to be able to re-do at least the same result than this kernel.
I'll post a global diff patch tonight, so some people could make some tests and continue to investigate what's the problem...
It should be good to have a git or svn repository...
gregnapola
24th November 2009, 06:05 PM
2.6.24 kernel, the one in the first post of this thread, has one working GPIO.
In my opinion, if one is working, there's no reason that the others don't.
I think this is just that KS20's buttons are not connected to the same GPIO's than on the Nike.
Thanks to the big KS20 doc we have, We know witch GPIO is working, and on witch GPIO are connected all the buttons, so it should be easy to modify the driver.
But to do so, we need to be able to re-do at least the same result than this kernel.
I'll post a global diff patch tonight, so some people could make some tests and continue to investigate what's the problem...
It should be good to have a git or svn repository...
There's a lot of smartphone/PDA with the same CPU of our ks20; BUT to get it work correctly we need to know how and where GPIOs are connected...probably Haret doesn't map all GPIOs because there's a cpld for extra GPIOs and we need to find it.
pichouss
24th November 2009, 10:23 PM
There's a lot of smartphone/PDA with the same CPU of our ks20; BUT to get it work correctly we need to know how and where GPIOs are connected...probably Haret doesn't map all GPIOs because there's a cpld for extra GPIOs and we need to find it.
We already know how and where GPIOs are connected, see "LG KS20 Service Manual ENG_1123_1.0" on first post
for example on page 53 we have all buttons to GPIO connections
this is a matrix type connection
On kernel 2.6.24 we could see that joystick_Up, volume_Down and Camera_focus are doing something (and the same action), on this table we can see that these 3 buttons are connected to GPIO38.
So we know that GPIO38 is working.
know is there a reason that haret map GPIO38 but not the others (GPIO33 to GPIO40) I don't know because I really don't know anything about haret and how it works... so if there's something to do in there I'll not be abble to do it... :(
I attached a diff patch with modifs I made to make kernel compile and boot
How to use it :
follow this guide to get an htc-vogue kernel snapshot
http://wiki.xda-developers.com/index.php?pagename=BuildTheKaiserKernel
then apply patch
use my config file (see one of my previous post)
Note : Maybe I took the wrong way and/or didn't start with a good base, if you think another kernel should be better to adapt for KS20 don't hesitate to participate!
martintzvetomirov
11th December 2009, 12:30 AM
Any progress :)
G0ggl3
19th January 2010, 05:46 PM
Going to be awsome, good luck with developing it man! ;)
alex27000
5th February 2010, 09:50 PM
any new for android on Ks20 ?
babyyim000
19th February 2010, 11:56 AM
i put your Android 0.8 Bootkit files to the sd card,it can login in the android。i come from china,O(∩_∩)O~
musungus77
21st February 2010, 01:38 PM
don't work in ram dick on ks20 :(
MolecularConnector
21st February 2010, 04:33 PM
This manual have all the gpios used on KS20
http://csmg.lgmobile.com:9002/swdata/WEBSW/KS20/AVDSBK/1.0/EN_KS20%20SVC%20ENG_1123[1.0].pdf
mushrom
22nd February 2010, 05:54 PM
might this help? ht.tp://forum.xda-developers.com/showthread.php?t=634782
babyyim000
24th February 2010, 04:04 AM
might this help? ht.tp://forum.xda-developers.com/showthread.php?t=634782
they have nbh files,but we can't use that~
ruubs
25th February 2010, 06:09 PM
just not on-topic but is it possible to port android to the Samsung I8910 HD?
sorry for the question
babyyim000
20th March 2010, 11:06 AM
nobody is here?
dimi89
28th March 2010, 03:02 AM
This thread is abandoned so i think it is useless to post your questions/requests here...
igord
28th March 2010, 03:41 AM
Try asking in diamond thread HW is similar,
pozdrav za zemljake
backlashsid
18th May 2010, 11:24 PM
no updates ??:(
hereticc
20th May 2010, 09:23 AM
Would be great to see a fully working android on the LG KS20 :D
kevin_diu
30th May 2010, 06:51 PM
any news?:confused:
HUCKI
14th June 2010, 10:30 PM
would be great ;) android is the best :D
ad2003
14th June 2010, 10:56 PM
Hi! Yeah - it would be really interesting to see it on the ks20! :-)
aren't there any news?
AD
alex27000
18th June 2010, 10:44 PM
the project is look abandoned
dimi89
30th June 2010, 02:21 PM
Thread is dead i dont know why are you ppl still posting ?
dswaggz
1st July 2010, 07:23 AM
getta tp2 retardz jk
Sent from my AOSP on XDANDROID MSM using the XDA mobile application powered by Tapatalk
arthurson
23rd November 2010, 02:08 PM
http://forum.xda-developers.com/showthread.php?t=711692
someone made xdandroid for htc machine, i will we can use this for our ks20 as well.
rotor-1
25th November 2010, 09:44 AM
Have you try it?
magikstar
27th March 2011, 02:32 AM
I've tested the method http://forum.xda-developers.com/showthread.php?t=802895 and the method http://forum.frandroid.com/topic/4582-tuto-mettre-rom-officielle-lg/ but it doesn't work,the processus stop cause error during upgrade.
The LG KS20 isn't very different by LG GT540
maybe work on this base
i wanted to test the method http://forum.xda-developers.com/showthread.php?t=732362 I've installed successfuly.I need to test with different setting to boot successfully
alphonse Magova
30th March 2011, 10:40 PM
Keep on working on plz!
Thx
dimi89
22nd May 2011, 03:10 PM
Magikstar did u successfuly run http://forum.xda-developers.com/showthread.php?t=732362 ?
manhab
20th June 2011, 08:47 PM
Magikstar did u successfuly run http://forum.xda-developers.com/showthread.php?t=732362 ?
how do uninstall it after that, what i have to do to go back to windows mobile
is it broke the mobile?lgks20
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.