yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] Mazout360:
Okay here's my best attempt so far with the kernel. It goes to the second LG logo and hangs there. Tried with the hackfest and a dirty port of P990 CM10.

If you want to try debugging it, get a logcat, try with different builds, go for it. If you get any results please PM me or post back. As i mentioned earlier, a kmsg and cmdline from another device might help here. Please take one or two minutes to send it to me.

So...

If it works, I will be sharing to you my tweaked updated to 3.0.8 version of the new 2.6.39 LG kernel. This is what I'm posting here. Don't worry about the dual logo, that is because the old bootloader works with RGB565 and the newer kernel is RGBX8888 (thanks to wkpark for the info :p).

What I got so far...

- Framebuffer initialized properly

- SPI driver reintegrated (thanks to King-Nai for the help!)

- RIL drivers reintegrated

- The kernel is confirmed to work on this device

Of course, it doesn't boot to the OS yet. But I feel we're close now.

I NEED debug messages. In the last days I did 100s of betas and I'm working somewhat blindly now.
[T-Mobile LG G2x] G2xer:
I've got a spare G2x and some free time in the next week or so. What would be the proper way of doing debug messages?
[T-Mobile LG G2x] LostInNorth805:
You would need to do logcats, there is a All in one tool in xda that does that. Search through the news feed of Xda and look for All in on logcat. It only works for Ubuntu.
[T-Mobile LG G2x] churd83:
There is an all in one tool that does logcats on windows too.

Here it is

http://xdaforums.com/showthread.php?t=1944776

Also this one

http://xdaforums.com/showthread.php?t=1886562
[T-Mobile LG G2x] deathmaker06:
I wouldn't mind helping over the winter break. I have a month off after this semester ends and will have tons of time to get ubuntu/linux whatever it is that I need installed and help :D. Besides I'd rather help than just sit around and complain. Action speaks louder than words!
[T-Mobile LG G2x] buru898:
You don't need Linux, look one post above yours...
[T-Mobile LG G2x] Mazout360:
Okay I have two choices right now...

- Either I get debug messages from my kernel, and the kmsg and cmdline from a p990 with the base kernel installed. For this I don't think you will be able to get a logcat since the kernel hangs too soon in the booting process but there should be a kernel crash dump...right now I don't have time to do this myself since I got my finals :/

- I continue to work blindly and make betas after betas until I get a working combination of parameters, which I will host online and require beta testers.

EDIT oh I almost forgot...if somebody has time to work out a port of cm10 by fixing the init and settings for the p999 from a p990 build that would definitely save us some time and give us a more solid base to work on!
[T-Mobile LG G2x] apolkosnik:
Good work Mazout360! I've tried your kernel on my build and I only got the two penguins :). I'm giving it another try from CM github sources, this time around mr1-staging branch.
[T-Mobile LG G2x] TheEnternal:
thanks again Mazout!
[T-Mobile LG G2x] apolkosnik:
Please check the OP, new stuff added.
[T-Mobile LG G2x] Mazout360:
Nice to see we're not alone on this :p We'll definitely get these jellybeans before christmas!

Personally I tried it and I did not get any ADB. Are you sure you parsed the androidboot.serialno variable to a random number ?
[T-Mobile LG G2x] phitch:
Well done!
[T-Mobile LG G2x] apolkosnik:
Adb works on my linux box:

adam@storm:~/Downloads$ adb devices

List of devices attached

????????????	device

Don't have much time today to do any digging, see dmesg and logcat in the op.
[T-Mobile LG G2x] Rafase282:
I rated 5 starts and clicked the newsworthy button, maybe that will help get other dev to look this way.
[T-Mobile LG G2x] envisiblenbk:
Please don't rage on this comment I am new to this developing stuff, but from what I have read so far people say its easier to port p990 sources to p999 than su666 sources to p999 and I just read on p990 thread they have the official ics out for them today. so, like a week or two, then source codes are out and hopefully that will make it easier to port? I don't know much about devs so this is just a guess but official ics for european o2x is definitely out.
[T-Mobile LG G2x] lamdaman:
http://m.gsmarena.com/android_40_ics_update_for_lg_optimus_2x_is_now_available-news-5172.php
[T-Mobile LG G2x] Mazout360:
This is good news. If we don't get the SU660 source to work the P990 one *should* be less difficult to port to the P999. Though, for now, we still have a build that works on the P990 but doesn't on the P999 so nothing is guaranteed.
[T-Mobile LG G2x] envisiblenbk:
Yeah just passing on the information haha. Btw, you should teach me android coding, I did some python and I really enjoyed it but never got around to moving onto bigger platform due to school and what not.
[T-Mobile LG G2x] ayysir:
Same thing I was thinking, and I would love to learn too
[T-Mobile LG G2x] apolkosnik:
Ok, fourth build uploaded, check the OP. The damn thing seems to be working, the only things messed up are radios, and battery meter.
[T-Mobile LG G2x] khanh1289:
Very impressive... good progress guys!

Sent from my Nexus 4
[T-Mobile LG G2x] apolkosnik:
I'm stunned myself, that the fourth build worked like this. I guess I'll have to try put in couple of the blobs from p999 and see if the radio starts working.
[T-Mobile LG G2x] phitch:
Try merging the hackfest blobs into it?
[T-Mobile LG G2x] GeneralCrocket:
Great job!

So this kernel has HA and everything but broken radios?
[T-Mobile LG G2x] Mazout360:
Just tried it. You pinpointed the problem! congrats :p

Is your repo up to date ?
[T-Mobile LG G2x] apolkosnik:
The vendor blobs are from ics p990, so that's why the radios are broken. You can try to replace couple of them with the ones for p999, and report back, to make it easier for me.
[T-Mobile LG G2x] apolkosnik:
Naberus was nice enough to PM me with the following (Hopefully he gets his 7 more posts in general forums soon):
[T-Mobile LG G2x] DankoFGL:
I don't know if someone say it.before but is a baseband compatibility problem...

Enviado desde mi Sensation Z710e usando Tapatalk 2
[T-Mobile LG G2x] Mazout360:
Yes we reimplemented the radio driver and it seems in the same shape that it was with the older kernels (in terms of compiler errors, since we could not try it)

I may push these fixes to your repo if you'd like.

PM me
[T-Mobile LG G2x] calebjhamby:
Is that, by chance, a cwm flashable zip?
[T-Mobile LG G2x] apolkosnik:
Yes, I flash it twrp, just make a backup first.
[T-Mobile LG G2x] Core Memory:
Now that ICS for the European P990 is released, won't it be easier to implement ICS/JB by waiting until the source code is released then using it to help?
[T-Mobile LG G2x] calebjhamby:
It was awesome to actually have it boot. :good: I was going to try out the camera but it doesn't see the SD card. Anyway, I really appreciate how much work you guys are putting into this. Is there anything an average user like me can do to help? Logcats maybe? Anyway, thanks again.
[T-Mobile LG G2x] Mazout360:
Adampk..here's my RIL fix flashable CWM zip. You may include it in your build if you want, that will save you some time (it also changes the screen resolution to something more...hum..user friendly in my opinion :p).

Though, you need to change your kernel makefiles in order to compile the TS0710MUX driver (I think it is in the BSSQ drivers folder). You will not get any RIL or radio whatsoever if this is not included. Same for the MDM6600.

As I told you earlier if you do not want to lose time with this we already have all of this included in our kernel build.

I'm trying to compile CM10 right now but I've got syncing issues so that's why I'm posting that here.

EDIT : RIL fix also included another wireless.ko module to try to fix wifi, but it doesn't work either. I'm investigating on this.

EDIT : Implemented wrong wireless module by error...compiling another one right now...

EDIT : Arrgh bricked my device...gotta have to wait for my hackintosh to finish compiling CM10 before I get to windows and NVFLASH it back....
[T-Mobile LG G2x] G2xer:
Well I flashed the builld and Rilfix2 above on my spare g2x. The OS is smooth no doubt about it. I was unable, however, to succesfully do a log cat. I tried using Android Ultimate Toolbox Pro but it states no device is connected. I also used aiolog which would just state "killing adb.....daemon succesfull". Any ideas? Good Job on this guys. After booting it, the rest should come easy to you geniuses!

Edit: Okay since I didnt manage to get that to work I sideloaded the alogcat app through usb and installing through the file explorer. Attached is my log. Hope it helps :)https://www.dropbox.com/s/djtlkqfpa4v4q00/alogcat.2012-07-19-15-36-16-0700%5B1%5D.txt
[T-Mobile LG G2x] apolkosnik:
Looks like your phone was able to get an IP. Awesome.
[T-Mobile LG G2x] Mazout360:
Seems like the RIL fix works...or the logcat entries are from the last boot with the rom you had before...
[T-Mobile LG G2x] Yuvin:
Hm.. Time to flash this and see if I have any luck with the RIL fix. You're able to get back into CWM, and restore a backup, correct?
[T-Mobile LG G2x] Mazout360:
Don't worry about this, the bootloader is not affected by any means by flashing a rom.

Sadly (or maybe not?), there's no luck in devving and we got to rework the build to get a working RIL...
[T-Mobile LG G2x] Волк:
Going to flash this later (unless there's another update) anything in particular we should test or get logs for? (Other than the obvious radio?)
[T-Mobile LG G2x] noahk423:
Wow! Well, all I can say is that it pains me to re-flash CM7, because CM10 is freaking awesome! It looks like there's not very many things that need work now; the radio/RIL, camera, and maybe some small stuff. Other than that, great job. I really appreciate what you guys are doing! Thanks.
[T-Mobile LG G2x] Волк:
There's already a ril fix.

http://xdaforums.com/showpost.php?p=35192145&postcount=274
[T-Mobile LG G2x] noahk423:
I didnt get a signal or anything...
[T-Mobile LG G2x] Yuvin:
The best rom I've used so far.. with my limited testing, I can verify that Bluetooth works fine.
[T-Mobile LG G2x] Mazout360:
Forget the RIL fix. This is a kernel driver issue it will not work. If you want to change your screen resolution to 220 use it but it's mostly for anybody compiling CM10 with the fixed kernel.
[T-Mobile LG G2x] G2xer:
Ill rewipe and flash again with the rilfix3 as well then upload that logcat to be sure. The prior rom was Shendu (Cm7 base) will report back in a few

Edit: Alright here is the new log cat. I used bluetooth to send it to my GingerbreadG2x just fine . Recieving files failed though due to "lack" of an sdcard https://www.dropbox.com/s/kehjil00u7ktn6t/bluetooth_content_share.html
[T-Mobile LG G2x] envisiblenbk:
wow you guys are fantastic. Respect to you guys haha hopefully oneday I can contribute something like this.
[T-Mobile LG G2x] tonyp:
Awesome work already! Subscribed.
[T-Mobile LG G2x] Magikarp:
You guys are spectacular, thank you for believing in the G2x :)
[T-Mobile LG G2x] TiGuy82:
Why not join the team? :)
[T-Mobile LG G2x] jnhsd0319:
Good luck! And thank you :thumbup::thumbup:

I see hopes agian for g2x to get fully functioning ICS/JB

Btw is this 4th try daily usable?
[T-Mobile LG G2x] G2xer:
No.
[T-Mobile LG G2x] m_malyszko:
Wifi

Wifi doesnt seem to work. Bluetooth is fine. Is there anything I/we can do to help fix wifi?
[T-Mobile LG G2x] Yuvin:
The devs are working on it. Also, most apps don't detect the SD card as mounted, yet it does show up in File Managers.
[T-Mobile LG G2x] apolkosnik:
Quick fix for the sdcard issue... Edit /system/etc/vold.fstab and change a "2" at the end to a "0".

Afterwards the last line should look like this:

dev_mount emmc /storage/sdcard0 8 /devices/platform/sdhci-tegra.3/mmc_host/mmc0
[T-Mobile LG G2x] LostInNorth805:
CatLog for the devs!
[T-Mobile LG G2x] apolkosnik:
OP updated with #5.
[T-Mobile LG G2x] ayysir:
Lol damn just when I moved onto a galaxy s2. If any devs want to buy my g2x pm me so you can use it as a Dev device.

Also the 4.2.1 changes sdcard the mounts so internal I think mounts as 0 or legacy
[T-Mobile LG G2x] LostInNorth805:
1 more log for the devs, this is the radio log from build 5
[T-Mobile LG G2x] Mazout360:
Thanks for the logcats!

It seems that my kernel was in working state a while ago, as the bootloader fixes were already there. I tried to compile adampk's kernel from the sources and it did the same as every betas I did, which is to hang at the boot logo.

So...I guess mac OS X doesn't like to compile the 2.6.39 kernels...

I'm tired of wasting my time with Apple crap, I'm installing Ubuntu. Hopefully I will get radio fixed by about one hour or two.
[T-Mobile LG G2x] pvnr2008:
Waiting to flash on my G2x as soon as radio fixed. Thanks a lot.
[T-Mobile LG G2x] n30wav3:
Mazout and Adam.... u guys have achieved the virtually impossible.... the way u guys have worked on the root causes e.g specific hardware rather than the device.. no doubt u can work on any device .... I propose u should team up and include a rom Dev in ur team .... seriously u hv a bright future ... best of luck

And most importantly Thanks alot!
[T-Mobile LG G2x] SefEXE:
I'm removed from my G2x, but I keep checking back here every few days. I knew this day would come! You guys are amazing.

Hopefully this keeps moving forward! My girlfriend would love CM10 on the G2x I'm sure.

Once again, you guys are amazing... Awesome!
[T-Mobile LG G2x] Mazout360:
Sorry guys I don't have enough free time today to compile and test my kernel. I have created a patch file for adampk to apply on his kernel that should enable RIL and radio and activate calls and SMS (along with my RIL fix). I do not know if it works but it's definitely worth a try.

Oh BTW I'm using star_p999_defconfig and not cyanogenmod_p999_defconfig so you might have to change your .config origin file.

EDIT : Almost forgot...here's the MDM6600 driver. It goes in /Drivers/Spi
[T-Mobile LG G2x] phitch:
AwwwwwwwwwMAZING!
[T-Mobile LG G2x] fduong97:
About the battery meter issue...is it a kernel issue or a driver issue?
[T-Mobile LG G2x] mk2rimar:
Is there directions on how to install this i see so much things to download lol....tx in advance
[T-Mobile LG G2x] GeneralCrocket:
Wow, you guys are amazing!

Let's finish this!
[T-Mobile LG G2x] Mazout360:
Drivers are imbedded in the kernel.

This kernel only comes with the SU660 battery driver, which might simply not be compatible with the P999. If P990 users are also experiencing issues with the battery meter, then that might explain why.

I already tried to fix that but the star battery driver uses the older kernel functions, which are not compatible with the newer one.

If it's an OS issue, then well it will be fixed someday for sure.
[T-Mobile LG G2x] fduong97:
Is there any way we can take the battery meter solution from the hackfest kernel?
[T-Mobile LG G2x] Mazout360:
Nope. Hackfest kernel is based on the GB kernel and uses the older NVRM/NVODM functions with a bunch of hacks to make it work on ICS. That's why it lacked a lot of functions like a fully working hardware acceleration capability on the newer OS.
[T-Mobile LG G2x] GeneralCrocket:
I'd like to test this. How do I do it?
[T-Mobile LG G2x] noahk423:
Ill say it again, I can't thank you guys enough, I got to use fully hwa jelly bean before this phones support died away, or I got rid of the phone, but now its been reborn with you guys. Awesome work bros!
[T-Mobile LG G2x] Mazout360:
Well....

1) Get a Linux/Ubuntu/OS X machine

2) Read and follow http://source.android.com/source/building-kernels.html

2a) Sync repo git://github.com/CyanogenMod/lge-kernel-star -b jellybean

b) Use a patch function (patch p1 < blahblah.diff) to patch the repo with my file and the one from OP in a terminal

c) Copy the files in Drivers/SPI

d) Copy the defconfig in Arch/arm/configs

3) use cp ./arch/arm/configs/blahblahblah_defconfig .config when in the root of the kernel to make a new config file from defconfig in a terminal

4) compile the kernel as in step 2

5) Install DSIXDA kitchen

6) Extract the boot.img from CM10 build 5

7) change zImage with the one you got from step 4 (should be in /arch/arm/boot/)

8) Rebuild the boot.img using the kitchen

9) Replace the new boot.img in the build 5 zip, rezip, and try

10) Have fun learning kernel dev :p

I think that's the easiest way to try what I have posted earlier ;)
[T-Mobile LG G2x] mk2rimar:
I would like to know this to....tx

Lol nothing simpler than that....like flashable zip hehe :D

Good job devs i gona love my g2x even more than i alredy do....
[T-Mobile LG G2x] qpinto:
And wow! This thread is made me put my g2x on the charger! If there is any possible way I could help, let me know !
[T-Mobile LG G2x] tahahawa:
Look one post above you.
[T-Mobile LG G2x] tonyp:
You can use vorks anykernel flashable zip to flash the zImage without including it in the boot.img beforehand :)

Just take e.g. the kernel installer by harsh and replace the zImage and kernel modules inside.
[T-Mobile LG G2x] tahahawa:
Good idea Tony I guess we just forgot.
[T-Mobile LG G2x] justjackyl:
wouldn't it be great if this collective of devs could beat RC to something he has not done yet?

This is just awesome guys.

Really, I'm taken aback with all of this. Awesome...purely awesome. Your almost there.

G2x-CM7 Nightly 11/25/12 Build, Trinity ELP Kernel
[T-Mobile LG G2x] redmonke255:
This is amazing. I'm really impressed, not just by your guys's skill but also your dedication.
[T-Mobile LG G2x] AndroidKills:
I went from Jelly to gingerbread and now i think i'll be going back to Jellybean for this!

:good:

Edit -

Oh snap, this is amazing and so smooth. Can't wait till you guys fix problems like the cell radio, but other than that this is really good progress!

5 stars, and news worthy!
[T-Mobile LG G2x] johnwazhere:
So hard to go back to Gingerbread:'( Lol
[T-Mobile LG G2x] rrroach:
Thanks so much guys! :)
[T-Mobile LG G2x] fduong97:
Has anyone tested the cell radio fix that Mazout posted earlier? Is there any way someone can upload a flashable zip? Thanks.
[T-Mobile LG G2x] ssuds:
Oh. My. God. I had stopped checking XDA for a few weeks as I had been really busy and had basically given up hope. And now I see this. You guys are amazing! Keep up the amazing work! :good:
[T-Mobile LG G2x] TiGuy82:
I don't think all the devs involved in this project feel that they arenin a competition but It's really amazing their work! Even when our hopes were only on "RC".
[T-Mobile LG G2x] Yuvin:
Yep, developers must work with each other, not against each other. Anyways, I knew this day would be here and I'm happy I didn't sell my G2X for a N4. Now I guess it's time to spend 30 Dollars and fix the digitizer on this. (: Love the rom Adam and Mazout!
[T-Mobile LG G2x] Mazout360:
My build environment doesn't work for this kernel...I get compiler issues even on Ubuntu.

Could somebody try to compile adampk's github, put the zImage output in Harsh's kernel or one of my beta zip and post it here or try it ? I can't fix anything before I set my build environment accordingly...
[T-Mobile LG G2x] keclaw:
Thank you great work guys !!!

I'm dreaming hahaha :p
[T-Mobile LG G2x] tonyp:
Okay, as I were just trying something out with the p990 kernel I thought I might be able to help you out.

According to Mazout360s instructions I did apply both patches (SPIRILFix.diff, star_kernel.diff), added the driver and compiled a quick p999 testkernel.

No idea if it works, no idea if I did use the correct files. I just did it to do you guys a favour.

Remember: I don't own a P999 and thus can't and won't fully participate in this process.

Download: http://goo.im/devs/tonyp/P999-stuff

Please post feedback if this does work at all. And don't forget to get logs.
[T-Mobile LG G2x] tonyp:
(Edit: Interesting, I thought my posts would get merged, I just wanted to easily create that fancy dividing line between the post above and this one hehe.

Maybe posts of RD's won't get merged? :D)

To better understand what you guys already did I read through the thread.

And, as mustangtim49, I just can't keep my feet still about n30wav3.

First:

@n30wav3: I don't know what problem you have with RC, but most of the stuff you posted in here are some crazy made up fantasies of yourself.

Pretty funny that later in this thread you accomplished others of posting assumptions, while most of the stuff you felt the need to post are not based on facts at all but are exactly that - your personal assumptions.

Second:

Again, something which isn't true that you post like a fact. As this is affecting me, I will correct it.

Yes, I did port an SU660 ROM to the P990. The SU660 kernel source already included a p990 defconfig which compiled perfectly.

But without any help from CM? Well, I used a patch by wkpark to adapt the kernel to the old bootloader. Unfortunately the device never came back from deepsleep, you had to pull the battery. So I pulled the build.

Then RC released his CM10 - and I took his patches to the kernel to fix this issue.

Harsh overtook the kernel work afterwards, but neither him nor me would have been able to fix the kernel without the work of RC - and thus without CM.

Sorry for the offtopic talk, but I just don't like it when people are posting their assumptions like they're some proven fact.

------------------------------------------------------

Oh and I did read my name here as well:

The hackfest kernel is there for quite some time now, I forked it before benee deleted his sources: https://github.com/tonypp/lge-kernel-star

But I doubt this will help you. As already mentioned here, it's just a forward-ported GB kernel.

Oh btw, I pushed the remaining hackfest source to my github a couple days ago (had some strange build errors unfortunately while trying to make a new PA build).
[T-Mobile LG G2x] Mazout360:
Thanks for your support!

I managed to compile the kernel successfully. The source was missing a correct config file.

Sadly my fix didn't work, so I'm getting back on it. Will repost back with results
[T-Mobile LG G2x] TiGuy82:
tonyp, focus on the most important!! :D

It's good to see you collaborating on P999 Kernel for CM10!
[T-Mobile LG G2x] joeyxl:
wow. this is amazing
[T-Mobile LG G2x] Волк:
Tony:

Sent you a PM. Just my contact info for if you want to throw me your builds for testing.

@Mazout just info'ing so you know there are others who are interested in helping as they can.
[T-Mobile LG G2x] tonyp:
Well, thanks for the offer, but as I already wrote in my answer:

I don't own a P999 - and I won't start debugging logs. My knowledge of the P999 is really low and trying to start development without the actual device usually results in a mess.

I don't think I'm capable of helping out here.

I only did a quick kernel build as Mazout360 had problems with his build system and no one else did a build - so I jumped in to help out.

As I already got the kernel source synced it only took a couple minutes to apply the patch files and build you the testkernel.

(reading through this mess of an offtopic thread took longer :p

On a serious note: I wonder when all those people cluttering up development discussion threads will notice that they're shooting theirselves in the foot and only harming the development of their device.

It takes way more time to skim though it and find the important and useful posts when everyone felt the need to state his own opinion or ask useless questions.

Actually, that qualifies for being added to my signature.)
[T-Mobile LG G2x] TiGuy82:
Is not easier if a GITHub was available for this project? And everyone applying their own patches? I'm not a developer but I was just wondering about this.