yashsingh1/xdaforums huggingface dataset:
[T-Mobile LG G2x] Волк:
Is there a way to pack everything in a .img and dd it over then do the symlinks and permission setting?

I haven't looked at a kk ROM script, but by the sound of it it's primarily an issue with too old a recovery.
[T-Mobile LG G2x] apolkosnik:
Good point
[T-Mobile LG G2x] tonyp:
Cherrypick this:

https://github.com/tonyp/android_build/commit/7df7db305400719457d6d528c9c444cbf90b12ce

Then add this line to your boardconfig and compile again.

USE_SET_METADATA := false

This will avoid the newly introduced lines in the zip's updater-script.

You could manually adapt them as well by comparing it line by line to a cm10.2 version, but recompiling is easier.

Alternative: Compile a recovery with updated sources.
[T-Mobile LG G2x] apolkosnik:
I've incorporated the changes that tonyp suggested and it flashed ok. The problem now is that it doesn't even boot into the double lg logos.
[T-Mobile LG G2x] giveen:
This happend on my Dell Streak 7 when I was building 4.4 for it.

My assumptions are this:

1. We are using too old of a kernel and GCC 4.7 compiles it but incorrectly compiles it.

2. Switch to GCC 4.6 results in correct kernel compile but 4.4 fails to compile correctly.
[T-Mobile LG G2x] ayysir:
Still no data huh
[T-Mobile LG G2x] SpaceRanger69:
Sadly, still no data.. Never got working blobs from LG or nVidia.. :(
[T-Mobile LG G2x] apolkosnik:
Let's see...

In 2.6.32 kernels there was a line in ifx_n721_spi.c...

#define MRDY_DELAY_TIME 400 //20101127-1, , Change delay time for transcation : 1000us -> 400us

in 2.6.36 kernels that turned into:

#define MRDY_DELAY_TIME 100 // to throughput .. 400 //1000

Well, just building a fresh 10.1 ROM to test this...
[T-Mobile LG G2x] OffTheTimeline:
Sweet. I like when there's movement on this thread.

Sent from my G2X hoping for some CM 10 love...
[T-Mobile LG G2x] buru898:
Never!
[T-Mobile LG G2x] OffTheTimeline:
No new development here? *watches tumbleweed cross*

Sent from my dusty ol' LG-P999
[T-Mobile LG G2x] giveen:
Yeah, several of us attempted but without more information from LG, its just not going to happen. The radio will remain broken and therefor, useless.
[T-Mobile LG G2x] Yuvin:
Oh well, you guys gave it your best shot. We have to commend you guys for attempting to get this phone working, but like you said, without the LG blobs, it's pretty much impossible. :P So thanks for trying!
[T-Mobile LG G2x] baybars07:
Battery Problem

AWESOME ROM!! But, there is a battery problem. There is no battery status and there is only a ? on the status bar. When i go to phone status, it says 999%. Please fix this problem if you can do it. But thanks for the most perfect jelly bean rom for G2x!
[T-Mobile LG G2x] Ryginator:
Sadly, I think most developers have given up on the G2x, so there won't be any fixing anytime soon, I'd help if I could, but I don't know anything more than flashing a ROM and using the phone regularly. Anyways, it says that the batt(ery) indicator is broken at the top, and like I said earlier, it probably won't be fixed.
[T-Mobile LG G2x] Rafase282:
So to get up to speed RC stopped working on cm10 for p990 and variants?

Also still no dice with the kernel and jb so people are saying to try ics. For that would it be better genesis?
[T-Mobile LG G2x] sungersoo:
if you read his OP. He states that he is going to work with "people he knows" which is slower. He's not done.
[T-Mobile LG G2x] Rafase282:
Good thing I decided to buy the nexus 4 regardless of cm10. At least i'll have a great working phone so I wont get cranky with my p999 anymore.
[T-Mobile LG G2x] calebjhamby:
Deleted :)
[T-Mobile LG G2x] n30wav3:
Frankly speaking I dun think there is anything wrong with what u guys are calling drama there.... p990 has a much bigger userbase and a much bigger selection of baseband. No wonder there are different comments from different users. RC should have thought that well before he released his first nightly. Its not his fault too actually... even before the release there was alot of ACTUAL DRAMA that RC has the sources and a FULLY working rom well before the actual release (since February according to some extra intellectual people) and also that he was CLOSELY working with LG. Damn the lies... the fact that can clearly be seen now is that he started working on it the first day the stock rom was released and after when sources got released. He just had his self kang cm9 before that..... that's why expectations were already much bigger than what he has delivered in nightlies....

I'll blame those extra intellectual people more than the userbase for their complains

---------- Post added at 03:56 AM ---------- Previous post was at 03:47 AM ----------

One thing I wanna mention. I think it will be much more easier to port from the p990 EU version than su660 since we wont need to worry about the kernel pins. Just the partition and radio difference. Which a lot of Devs already know how to do that. And m thinking this also might be the reason of RC closing the thread. As the EU version reviews are MUCH MUCH BETTER than the SU660 port as almost everything is working out of the box so he may gonna work with that release now and show the world that he has done it

---------- Post added at 04:14 AM ---------- Previous post was at 03:56 AM ----------

This is what I call success... rather than living in ur ego and keep bragging about it

http://xdaforums.com/showthread.php?p=33916083

And this

http://xdaforums.com/showthread.php?p=33900010
[T-Mobile LG G2x] Rafase282:
Who is living in ego and bragging about it?
[T-Mobile LG G2x] MWBehr:
Ok bud, I'm going to shut you down here. RC, nor anyone who originally reported to us about him having a working leak said anything about having a leak for the p999, or that he was working "closely" with LG.

What was ACTUALLY stated was that he had a p990 leak and that it was given to him by LG with the understanding that he couldn't distribute it. Proof was given in the form of a screenshot BTW. To what degree he was "working with LG" was never divulged, people just made their own assumptions the same way people fabricated that he had a p999 leak as well.

Also, careful throwing around terms like "fully working". Nothing from LG has ever been fully working and that includes this ICS leak. In addition, even if it were fully working, that doesn't mean that CM9/10 would be fully working as you're talking about a completely different environment. CM incorporates tons of different devices in the same source as well as adding in tons of features and tweaks we all love and enjoy (Theme Manager chief among them).

I'm only going to briefly mention your implication that RC would even consider kanging or that he has a big ego for some reason. I don't know how long you've been a part of this community, but you obviously know nothing of this man. He can code circles around you and is a truly stand up guy. No one in this community thinks otherwise and you will not find the slightest bit of support if you continue the bashing of RC. You've been warned.

The reason why (if it is true, I haven't looked into it personally) that RC would be working only with people he trusts is because of all the moronic "bug reports" in the thread that's wasting his time. From those that I know actually know how to flash and evaluate a rom on the p990 side, it's actually pretty perfect. Basically all the "bug reports" at this point are user error.

In short, if you wanna futilely try to work on the project yourself, more power to you. Hopefully, at the very least, you learn just how difficult the task is in the process (the reason why none of the experienced devs are bothering). However, I suggest that you focus on your own work and keep any thoughts or comments about RC to yourself.
[T-Mobile LG G2x] justjackyl:
Amen!

Now everyone...take a Valium and shut up.

If cm9 or 10 shows up working for p999 than it shows up. If not...well...I can't name a single thing my phone could do on ICS/JB that it doesn't already do on GB/CM7.

Still a solid multimedia device regardless.

G2x-temasek CM7 build135.3 w/faux 054 kernel
[T-Mobile LG G2x] Andy:
Since I took over the G2x, I've noticed a few users who, while know a lot and have at some point contributed, now just choose to troll and attempt to start arguments.

I'll make this my final warning before you try to login and you find your account has been disabled. Stop with the bickering and petty flaming.
[T-Mobile LG G2x] DankoFGL:
My question, that i think that weren't answered yet... has someone try this kernel on a clean CM9 or ICS port on our G2X?
[T-Mobile LG G2x] Core Memory:
I contribute what I can and others should too instead of uselessly arguing about who did or didn't do whatever. I don't care who provides a working ICS or JB Kernel and/or ROM, just that someone does ASAP, which will provide others with the example/template to use in their development activities.
[T-Mobile LG G2x] justjackyl:
From my understanding, source was pulled from cm10, so I think that's why the focus is on cm10 to keep similar.

I may be wrong, on my tablet I can use cm9 kernel on cm10 rom with no issues.

but this is a best guess effort. Lol

G2x-temasek CM7 build135.3 w/faux 054 kernel
[T-Mobile LG G2x] n30wav3:
Hey..... the hell i wasnt talking about us. . Lol.... i would be an idiot if m sharing possible dev ideas here and say that we are bragging about anything. After all this is the only thread which might just works for us. I was talking about people who are bragging about the users and shutting of threads...... real devs just work n work hard regardless of the comments .... and replies....

Well..... I dun wanna continue that cuz of misunderstanding that some of the guys have... but please this reply of Urz.... uhhh whatever .. I could point u to all the proof I had abt my msg .... but leave ... some people have blind love.... not me

Not us .... why would I even say this to us man :)

---------- Post added at 06:33 PM ---------- Previous post was at 06:14 PM ----------

Well surprisingly .... we are so blinded by the love that no one replied on the possibility of porting of EU version or working on the EU version..... lol ...I mean seriously hard lovers some of us are.... anyway

RAFASE or ADAMPK if u wanna work on ics build what do u think cm9 would be best or EU version leak?
[T-Mobile LG G2x] Rafase282:
Looks like more audio problems than anything. I was able to get logs with a previous kernel, i cant remember well but i think it was something different from this.

Regarding ICS I was thinking using genesis since people seem to like it. HOwever, earlier I provided a link if anyone wants to port the stock. The problem is that the files need to be modified itself not just the kernel. Among the files, there must be a few libs or whatever that has references to the p990 that needs to be changed.
[T-Mobile LG G2x] n30wav3:
Yup but if we go to the stock European version, we will have very little to change rather than using the su660 which has very different hardware.... I just had that in my mind. As far as the partition is concerned .... the Guy who helped us out with dual boot may help us in changing the partitions on that EU ics leak for p990 .... its just we will only then need a rom expert that has experience working on both devices .. someone like Tony benee kashamalaga or owain
[T-Mobile LG G2x] MWBehr:
Here is a list of all the roms that were ported to the G2x in the past:

[P999][ROM][CM10] ParanoidAndroid v2.23 Hackfest JB [build8]

[ROM][GB 2.3.7][Port]MokeeOS R.282 Stable[10/05/2012]

[ROM][GB 2.3.7][Port]LewaOS R.282 Stable version [6/8/2012]

[ROM] [PORT] G2X-SINGH-UI v2.10.08 (MIUI Blazing Fast) 8/14/12

[ROM][PORT]Lezo OS-1.10.19-P999

[ROM] MIUI_V4 [Port] 2.7.27

[ROM][PORT]ShenDu-p999-v1.2-120817

[ROM][PORT]JoyOS-P999-1.2.2Maple

[ROM][PORT]LiGux-v4.0-Beta2-LG-P999-120827

[ROM][DianXin OS ICS G2x Port][2/17/12]

You'll notice that these are all AOSP/CM based roms. Also, if you review any porting guides, they all focus on the key point of using the drivers and kernel from an already fully functioning CM of the same version as the rom you wish to port.

This isn't to say that porting a stock rom is impossible without these pieces, but it takes a skill level on par with those that work on the CM project. I don't have that skill, so that's why I'm not helping. I can and have slapped together ports similar to those you see above, but that's not what we're talking about here. You will not be able to port that rom without writing a good amount of code yourself. Cutting and pasting isn't going to get it done.

I'm not trying to discourage anyone, just stating the truth.
[T-Mobile LG G2x] n30wav3:
Well.... Tony has just ported over the stock from su660 without any help from CM ..... harsh's kernel played the major role on that .... its a pure stock with original bootloader no cm bits whatsoever....so that means first thing is to work the kernel out with harsh
[T-Mobile LG G2x] Rafase282:
Yup, that's what I tried to said on my previous post. We don't have a fully functional ICS or JB rom so to get the port we will need to edit core files with reference to the device we will port from and change it to reference our devices.
[T-Mobile LG G2x] n30wav3:
Here u go

http://xdaforums.com/showthread.php?p=24739279

This can take care of the partition issue we might have in porting the rom.... NW just wanna hear harsh's reply on the kernel issue
[T-Mobile LG G2x] Rafase282:
So if I read correctly (I have been reading all day about the Tale of Genji), we canuse that to NVFLASH the port with the custom partition for our p999? I though there was a file somewhere in the rom that determines the partition scheme and such besides the physical partitions.
[T-Mobile LG G2x] n30wav3:
Not sure abt the port though but since it uses nv flash m damn sure we can use this to re-partition depending on what rom we are going to use. Remember that dual boot Dev gave us the similar thing to do change partition sizes. so that we can flash two roms at the same time. It should work similarly

EDIT : yup now that I think it is possible to embed this with a custom rom. Only we will have to mod the rom to be able to flash with nvflash

As for the file in the rom. I dun think that will be a problem since we have flashed all kind of roms custom, stock etc on dual boot structure and it worked regardless of the partition change

---------- Post added at 10:04 PM ---------- Previous post was at 09:56 PM ----------

another link we can use to resize as well as flashing cwm 6.0.CC

http://xdaforums.com/showthread.php?p=33599320

---------- Post added at 10:12 PM ---------- Previous post was at 10:04 PM ----------

Also u know what... I think marsgod kernel can be utilized now as now there is a way to crack the bootloader... only thing is I think that initially we will have to use it with stock ics only .... do someone wanna give it a try?

Re-partition+ Marsgod kernel + stock ics by Tony and harsh
[T-Mobile LG G2x] MWBehr:
That's because the su660 is much more similar to the p990 than the G2x is to either of those phones. In fact, the kernel is the only substantial difference between the p990 and the su660 (and it's really not all that substantial). If you don't believe me, ask Tony, or better yet ask yourself "Why would Tony have not ported it to the G2x as well?"
[T-Mobile LG G2x] n30wav3:
I know that. Infact the only major difference b/w su660 and p990 is the hardware keys .... but it should also be noted that p999 and p990 has only different radio and partition structure to be exact. what m saying is that marsgod compile p999 kernel from the original sources by fixing gpio.h for p999. And as said earlier the sources did contain the bits for p999.... and since partition settings are independent of the rom ... we have the kernel.... we know how to crack the locked bootloader. We know now how we can change partition ... so we can try the stock rom and see what the logcat say about that

EDIT : the problem is that this is my only and primary handset and with the job I need my phone to be working. So I cannot experiment as it will break the dual rom structure I have if someone can please go ahead and try the recipe I have mentioned
[T-Mobile LG G2x] lotherius:
NOTE: What I'm about to write is based on the state with GINGERBREAD PORTS, I know there are some new issues like the bootloader and some other changes to partitioning I think. I'm not familiar with THOSE issues. But all of this would apply in addition to ICS/JB

Actually, porting a stock ROM is definitely possible, though it's never been done 100% to my knowledge.

Both jboxer and I were able to boot O2X 2.3.4 Stock Roms (with LG UI) by various methods. Efforts were made earlier on too to port the G2X Gingerbread stock Roms to the O2X when the O2X was still stuck on Froyo.

The good news: It's possible.

The bad news: No matter what any of us did, we couldn't get any radios working. The issue existed going from o2x->g2x and g2x->o2x both. This was due to the fact that the difference in radio code go beyond just the library files installed and seem to be baked into the stock kernel. Since you have to use a kernel that matches the ROM being used (modified of course to the correct partition map), this is has been a stumbling block. Also, when I did it, I was getting a LOT of random reboots. Never troubleshooted that because without a working radio it wasn't worth it. You can only fix the radio problems by compiling a new "hybrid" kernel which has elements of both phones. No such kernels exist currently.

So, it may be doable, but this is basically what's up:

1) Correct the partition map inside the STOCK kernel by editing the kernel scripts (does not require a recompile AFAIK thus a stock kernel can be used from the source device ROM)

2) But, that leaves broken radios.

3) Broken radios can only be fixed by compiling kernel source.

4) But stock Roms don't boot on cm7/cm9/cm10 compiled kernels.

5) So the solution is to successfully compile a kernel with p999 radio and partition maps, but compatible with a p990 ROM.

6) This would essentially make the p999 into a p990 with p999 radio libraries and partitions.

The problem, of course, is that the source as released by LG isn't set up that way. You'd have to understand the differences in the radios to fix that. Plus there's the fact that the kernel source as released often has other flaws/bugs/glitches. The partition mapping is the EASY part.

In theory, if you get the partition maps correct, the radios correct, and can get the kernel to boot a p990 STOCK Rom, then we will have a ported ROM.

However, that's asking a lot.

Sorry if I rambled.

I hope for success of this project, but I don't know if anyone contributing to this effort in this thread has the skills to do these things. RC certainly does, but a working cm9/cm10 kernel is much more useful in the end.
[T-Mobile LG G2x] joeyxl:
Thanks for the info! Now what would make this easier is a actual drop of a official ROM. As I mentioned earlier the O2X has a beta is directly from LG. Who's to say we're not next?

I don't put hope in that but I know that we will all be eating fully flavored jellybeans soon. Again many thanks to all the devs and anything I can do to assist, I will be happy to oblige.
[T-Mobile LG G2x] n30wav3:
No I dun think its possible ... why? because p999 only has two names till now... g2x for America and Optimus 2x in Canada. While there is no release planned for g2x as clearly stated by LG earlier. The Canadian counterparts announced 2 months ago there wont be any ics release

---------- Post added at 02:29 AM ---------- Previous post was at 02:25 AM ----------

Exactly... but what if u add the fact that the kernel sources had codes for all 3 devices. That's the reason why they were able to boot the p990 with su660 source and that's the reason why marsgod was able to compile the p999 kernel using the same method... ur article provide us the guideline to follow and with all the ingredients we have right now the kernel is the only roadblock which we can still work on using the already announced all model compatible sources. Yes it maybe not fully supported but even then if we will be able to boot it. We will have a real chance
[T-Mobile LG G2x] lotherius:
Well, it definitely helps. That's why I believe it is possible.

The issue is you can't simply flip the p999 switch and have it work on a p990 Rom, and you can't simply compile it as a p990 and have ti work on the g2x hardware.

To boot a stock p990 ROM on the p999, you have to build a "hybrid" kernel from source, with the right hardware bits for the p999 defined and connected over to the right software bits on the p990 ROM. The partition map is easy (almost cut/paste once you find the right locations), but the radio I have no idea what's involved, I just know at a minimum the kernel will have to be compiled for p999 radio.

Not only that, but I'm not sure how hard it is to get the source to even boot on a p990 device with the p990 Rom. That would eliminate any problems PRIOR to beginning the work to port. After it can successfully boot a p990 device with the p990 Rom, then you work on the partition map and bootloader. After those are done, it SHOULD boot on a p999 but have no radio. Then you're off to fixing the radio. Or debugging why it didn't boot on a p999, but you know you have a device specific problem there and not a general issue of the kernel not working in the first place.
[T-Mobile LG G2x] n30wav3:
Ok so the status is that they were able to boot the rom from the p990 kernel created from the su660 sources. And marsgod compile the p999 kernel after correcting the p999 pins in gpio.h and compiled it with same method (using p999 defconfig).... we even have those p999 hardware bits on that file..... so I think it eliminates alot of what u said.... atleast those ones regarding enabling boot the same rom from same kernel .... ... but... that's all theory for now... can anyone take a peek here?
[T-Mobile LG G2x] phitch:
So, I know this is probably way out of my league, but couldn't you modify the current ICS kernels for Harsh/PA/CM10 Hackfest to use the new hardware blobs? At least to get hardware acceleration instead of trying to just do a direct port? Like I said, this is way out of my league.
[T-Mobile LG G2x] n30wav3:
I dun think kernel controls the hardware acceleration ... its the rom which does....
[T-Mobile LG G2x] redmonke255:
No, it's the kernel.
[T-Mobile LG G2x] n30wav3:
:eek: r u sure? cuz I doubt that .... I think hwa drivers are embedded in the rom not the kernel.
[T-Mobile LG G2x] nycelitemaster:
Its in kernel.

Sent via G2X-SINGH-UI
[T-Mobile LG G2x] DankoFGL:
Just ask yourself why we don't have hwa on cm9 or cm10 roms, becouse the old kernel don't suport it... with new v3 kernel we will have hwa...

Enviado desde mi LG-P999 usando Tapatalk 2
[T-Mobile LG G2x] monte666:
From what i understand the hardware acceleration for ics and jb were put in to the kernel level thats why we never had it before on gb and why it didn't work on cm9 was we didn't have a kernel with ha

All the way from mars
[T-Mobile LG G2x] MWBehr:
If that were true, the new roms (both stock and CM10) wouldn't have HWA as they aren't running v3 kernels still. I don't have the link, but Linus himself stated that v3 wasn't a major kernel upgrade, or even really an upgrade at all, just a renaming.

Anyway, don't quote me on it, but I believe it's been determined in the past that the HWA bits were in the drivers. The only thing that needed changing in the kernel was compatibility with said drivers. I could be wrong of course.
[T-Mobile LG G2x] phitch:
As I recall LG moved the HWA from driver level to kernel level with ICS on the su660, but don't quote me on that.
[T-Mobile LG G2x] n30wav3:
Arghh..... just forger abt it guys.... we are going nowhere with this :D .... just do what u think u can do to produce the goods ;)
[T-Mobile LG G2x] redmonke255:
LG in their awesome power completely RECONSTRUCTED how Unix works.

Where do you guys come up with this?
[T-Mobile LG G2x] buru898:
Anything is possible in la la land :p.
[T-Mobile LG G2x] johnwazhere:
we should make this a hackfest