yashsingh1/xdaforums huggingface dataset:
[G2 Android Development (D802)] dorimanx:
Hello dear LG G2 users :)

I am Dorimanx, i have just switched to LG G2 D802 device and i LOVE it!

But, i cant agree that DEFAULT kernel is perfect!

So i am trying to get started with my own kernel for my device :)

i have made great stuff with Samsung galaxy 2 kernel.

and now i want to join LG devs comunity.

so far i cant finish compile this kernel from source!

is there any one who build this kernel for him self? as DEV is not responding :(

i am stuck at the end of the build

DTB combiner:

Input directory: 'arch/arm/boot/'

Output file: '../output/boot/dt.img'

Found file: msmsamarium-sim.dtb ... skip, failed to scan for 'qcom,msm-id = <' tag

Found file: msm8974-g2-open_com.dtb ... skip, failed to scan for 'qcom,msm-id = <' tag

Found file: msm8974-v2-g2-open_com.dtb ... skip, failed to scan for 'qcom,msm-id = <' tag

=> Found 0 unique DTB(s)

Build boot.img...............

error: could not load device tree image 'dt.img'

mv: cannot stat ânewboot.imgâ: No such file or directory

Post build cleanup...........

Make flashable zip...........

i am using clean source, + ramdisk, and building on Arch Linux BBQ 64Bit + 4.8 toolchain by google.

Any help will be great to get me going and after some time i will deliver nice kernel to play with :)

thanks in advance.

EDIT!

I got it! :) kernel is created.

i was missing tools from here: (forked for me now)

https://github.com/dorimanx/mkbootimg_tools

dtc to /usr/bin/

dtbTool to "Kernel folder"/scripts/

and :)

Create dt.img................

DTB combiner:

Input directory: 'arch/arm/boot/'

Output file: '../output/boot/dt.img'

Found file: msmsamarium-sim.dtb ... chipset: 195, platform: 0, rev: 0

Found file: msm8974-g2-open_com.dtb ... chipset: 126, platform: 118, rev: 0

Found file: msm8974-v2-g2-open_com.dtb ... chipset: 126, platform: 118, rev: 131072

=> Found 3 unique DTB(s)

Generating master DTB...

(writing 'arch/arm/boot/msm8974-g2-open_com.dtb' - 176128 bytes)

(writing 'arch/arm/boot/msm8974-v2-g2-open_com.dtb' - 176128 bytes)

(writing 'arch/arm/boot/msmsamarium-sim.dtb' - 4096 bytes) Total wrote 358400 bytes

completed

Build boot.img...............

Post build cleanup...........

Make flashable zip...........

So Expect new kernel tread in a week, with new stuff and ideas :)
[G2 Android Development (D802)] slebit:
Nice to see see that you have joined us [MENTION=2376110]dorimanx[/MENTION]. Can wait for your kernel!
[G2 Android Development (D802)] TaRsY:
Nice to see you here! Last time I heard from you we were using HD2. Great! :)

Tapatalk-kal küldve az én LG-D802-el
[G2 Android Development (D802)] liti15:
Nice to see here,hope we will have great time :)
[G2 Android Development (D802)] GTMoraes:
??

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] bervin:
OHHH YEAHHHH [MENTION=2376110]dorimanx[/MENTION] in the house!
[G2 Android Development (D802)] ShyamSasi:
Welcome Dorimanx! Glad to see you here .. Cheers :good:
[G2 Android Development (D802)] erj22:
That's great! Thank you [MENTION=5311345]Dorinmax[/MENTION] and to other devs. :)

---------- Post added at 02:41 PM ---------- Previous post was at 02:40 PM ----------

That's great! Thank you [MENTION=5311345]Dorinmax[/MENTION] and to other devs. :) :good:
[G2 Android Development (D802)] nayak.aj:
@dorimanx -DORIIII ! I am so happy to see you here! An old and faithful user of your S2 Kernel ! POWER CORE !!

This is an awesome device and you will love it , glad you didn't get the S4 like you were thinking before :highfive:! Welcome to the club :) :cowboy: Hope you remember me ! : )

Maybe you can contact @Savoca , he is active and has built a kernel too.

http://xdaforums.com/showthread.php?t=2572992
[G2 Android Development (D802)] rocxie:
Welcome Dor! I'm your old fans since S2, really supprised and happy to see you here! looking forward to your G2 kernel.:D
[G2 Android Development (D802)] Jostian:
using new 10f ROM so I'm wondering if stockMod kernel will be ok on 10f base?? any ideas...
[G2 Android Development (D802)] LittleH79:
Running it atm with 10F rom so flash away :D
[G2 Android Development (D802)] yuyuchen0204:
Does the 3.01 beta version kernel have the download link?
[G2 Android Development (D802)] Kroutnuk:
In the archive download in the OP.
[G2 Android Development (D802)] screenager:
yeaaaah, nice to see you developing!! also switched from sgs2 and LG2 is just awesome.
[G2 Android Development (D802)] pendroz:
Welcome old friend [MENTION=2376110]dorimanx[/MENTION] :good:

I'm looking forward to the new kernel...

I miss cortexbrain-tune.sh and Stweaks :angel:
[G2 Android Development (D802)] spiderio:
Awesome...

I just need one feature

default.prop - ro.secure=0

I need it :D
[G2 Android Development (D802)] dorimanx:
no problem.
[G2 Android Development (D802)] pendroz:
Let's open a question and answer thread.Let's share what we can do :)
[G2 Android Development (D802)] Slide:
Please "slide2wake" :fingers-crossed:
[G2 Android Development (D802)] suhiiii:
Guys pls ,this is g.lewarne thread for stockmod kernel ,wait with question and requests until [MENTION=2376110]dorimanx[/MENTION] open new thread :D
[G2 Android Development (D802)] dorimanx:
Yes, sorry for all that, all who know me please wait for first kernel and thread to be released/open.

i will not spam this thread from this post :)

we need to respect g.lewarne .

i just needed help to build, now all ok. see you soon, dori out :)

Sent from my LG-D802
[G2 Android Development (D802)] MDE_86:
[MENTION=2376110]dorimanx[/MENTION] awesome to see you again. Had used your kernel on the S2 for ages. Good to see you on the LG machine ?

Sent from my LG G2
[G2 Android Development (D802)] Deni_NS:
[MENTION=2376110]dorimanx[/MENTION] man you're kidding me? I am hard core fan after Siyah left the development so patiently awaiting your kernel. Cheers mate.

Maybe you should make just prerelease thread and after that change the title.
[G2 Android Development (D802)] ossy1337:
Could someone tell me how to apply gpu oc? couldn't find the post describing it. thank you.
[G2 Android Development (D802)] jeebspawnshop:
You can use Faux Clock:

https://play.google.com/store/apps/details?id=com.teamkang.fauxclock&hl=en

Or you can use Trickster Mod:

https://play.google.com/store/apps/details?id=com.bigeyes0x0.trickstermod&hl=en
[G2 Android Development (D802)] :
Hi,

@ ossy1337,

Just one thing, Trickster Mod is not compatible (yet...) with GPU settings (overclock, governor) because the app needs to be updated for the Adreno 330 (the paths for the sys interface are not the same as the previous Adreno), the app needs to read the path, in short. So you won't see any GPU settings in Trickster Mod.

So yes you can use Faux Clock but mainly to change the GPU governor (Simple or Ondemand), for GPU overclock too but see below...

With the last stable version of this kernel (v 3.00) there is no GPU overclock. 450 Mhz is the max stock GPU freq (you can check in /sys/class/kgsl/kgsl-3d0/max_gpuclk).

If the GPU overclock is not available in the kernel (hardcoded or implemented to make short) you can't overclock even with an app (same thing for the CPU overclock).

And I recommend this version, there is another most recent versions floating arround in the thread (better, look at the OP for the link "archive older version") but with some issues with CPU scaling (and maybe without GPU overclock, I don't remember exactly) and one or two another things.

You can try another older version in the thread also with GPU overclock (as beta or test version) but the "performance" are worse (or at least no gain) due to heat and maybe not a "fully working" overclock I had issue with freq not sticking even with script or terminal.

But it's up to you, try and see... ;)

EDIT: forgot that all the version are in the OP, archive section :D

@ g.lewarne, I sincerely hope that all is fine for you ;)

:)
[G2 Android Development (D802)] GTMoraes:
I got 35740 on AnTuTu with my stock enhanced kernel. Wanted to try this kernel, but AnTuTu updated (many things changed, at least on the GUI side) just after I flashed it, and I don't know if it's AnTuTu or the kernel, but when I try to run the test, before 21%, the phone reboots. It's not even barely warm at this time.

I've flashed my ROM back, but it still reboots at 21%. I'm unable to enter in CPU Idle/Stats in FauxClock because it force closes now (didn't before).

Could this kernel have done something?

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Hi,

What kernel version you use?

With Faux Clock, have you changed some thermal settings? It's mainly the cause that Antutu can't passed the famous 21% if you change some thermal settings and even if the phone is not warm (tested).

I use V3.00 with the last update from Antutu without any issue...

Clear all the settings in Faux Clock then reboot or reflash the kernel to see...

:)
[G2 Android Development (D802)] GTMoraes:
Yes, I had enabled the high temperature setting, but that's all. Used to work fine.

I can play heavy games without rebooting, but I'll try what you suggested

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Re,

This has happened to me too, yes in normal use no issue but with Antutu it's a crash at 21%...

I'm pretty sure that's it, it's the same thing for some Qualcomm S800 based devices when you play with thermal stuff there is this weird thing with Antutu (different kernel/settings)... Same thing with the Nexus 5.

And even if the CPU temp limit is not reached, who knows what is it :D. Remember that a dev said (with a log) there was a crash due to something related to L2 cache sometimes or something like that (even if it's not directly related to thermal stuff) ant it's always when you play with thermal stuff...

Restore the stock thermal settings in Faux Clock, it should be good.

:)
[G2 Android Development (D802)] GTMoraes:
It might be it then...

But my Faux clock is also crashing when it tries to read the temperatures!

The picture below is moments before the crash..

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Re,

Weird, maybe data corruption after the hard reboot? I know that this kernel doesn't support Fsync ON/OFF but maybe in Faux Clock you could turn OFF Fsync (even if some one or two features are not in this kernel you can tweak it with Faux Clock), so the question is have you turned OFF Fsync?

That could explain data corruption and the FC's maybe... No other FC's or some settings lost?

Unistall the app, reboot (maybe wipe Dalvik cache in recovery) then reinstall the app and see... Or same thing but reflash the kernel...

:)
[G2 Android Development (D802)] GTMoraes:
It only crashes when I open this particular tab. I can even click around on the C States before it crashes, so it's like it were trying to read something, then got an exception. I'll take a look at the crash details soon.

I didn't had another kernel to flash back, so I just re-flashed the ROM again. Fauxclock shows accordingly, but idk if there's some leftover. Maybe not, because /system was formatted and all.. But it's still crashing, when it wasn't before.

I'll wipe dalvik and try again, if it doesn't work, I'll re-enable the thermal settings and give it a shot.

If it doesn't work either, I'll just ignore AnTuTu lol

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
1) Yes re-enable the original thermal settings, at least for Antutu if you want to run it.

2) Yes, it's also a solution... :D

For Faux app crashes try to post a logcat...

Good luck :)
[G2 Android Development (D802)] GTMoraes:
Still crashes. I'm still to disable the high temperature setting, but.. Meh.

The crash says it's a nullPointerException. It might be somehow unable to retrieve the temperatures. Which command could I use on a terminal emulator to see the temperature?

Here's the logcat, filtered to "faux"

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Ok for the logcat but I don't know, sorry.

For the CPU temp via terminal :confused:

cat /sys/class/thermal/****

I don't remember the sensor used to read the CPU temp... there is 17 thermal_zone and I'm not sure if it's the right path :confused:

Better to use another app like Trickster Mod :D
[G2 Android Development (D802)] GTMoraes:
So I've used trickster mod, and I was able to see the temperature there. Cool, so that's not the problem.

But AnTuTu is still rebooting wherever I run the test.

I've disabled the high temperature setting and all, but it doesn't fix. I'll just give it a break

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Re,

Me too..., too much post in 15 minutes :p

Ok for Trickster Mod, for your reboot in Antutu... Don't know, I have no issue here.

Undervolt?

In my opinion start from scratch again, sorry can't help more here... but for me it's something related to your previous thermal settings.

Good luck again :)
[G2 Android Development (D802)] martindar:
I think its the latest faux update -since the update I've not been able to get into cpu idle stats as soon as selected it force closes not changed anything on my phone for a while now but the above started just after I updated faux app this week? maybe i'm wrong but until the update everything was good I don't run benchmarks so I cant help there

thanks,martin.

update-- just had an update for faux and cpu idle /stats is now fixed no force closes 9.22pm uk time d802
[G2 Android Development (D802)] dodzs:
Hi g.lewarne, thanks for all the hardwork.

Just wanna report one issue :

- using the original kernel, I can use my bluetooth ipega 9017s gamepad after doing this http://xdaforums.com/showpost.php?p=48711888&postcount=587

- but with this kernel, I can connect to the bluetooth gamepad, but cannot use it

Maybe something to do with the Bluetooth HID controller?
[G2 Android Development (D802)] dukat0s:
G.lewarne is not active.he is stop supporting his thread for 40days now..dunno where is he or why he stop update.anyway i hope he is ok,
[G2 Android Development (D802)] suhiiii:
[MENTION=2920816]viking37[/MENTION] Cogratz for RC :D :D
[G2 Android Development (D802)] :
Hi,

:D, thank you :good: ;)

@ GTMoraes, some news about your issue?
[G2 Android Development (D802)] GTMoraes:
I don't know what's going on. Everything else runs OK and other tests (like 3dmark) works. But AnTuTu just reboots at 21%. As I run my system with fsync and journaling off, sudden reboots are catastrophical sometimes so I just stopped testing with AnTuTu.

3dMark yields me funny results. Physics score is way high (13k, out of the 9k avg), processor speed gives me a tad lower score (like 9200 out of 9999), but graphics score gives too low (6800 out of 9700). Idk what's going on. I'm running at 380dpi and without the navigation bar, also with XuiMod for more transitions effects and listview. Could that be it?

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Hi,

What I said about Fsync OFF, data lost sometimes... :D

Weird... but yes stopping to use Antutu is a solution, but not THE solution :D. There is something with your settings...

Have you modified the thermal files in /system/etc (thermal-engine/thermald.conf)?

I've never used 3dMark... so can't help here.
[G2 Android Development (D802)] GTMoraes:
Nope, never heard of that file.

The device builds up heat and keeps working, it once rebooted due to excessive heat when I accidentally ran 3dMark without letting it cool down, but the device was, indeed, too hot for the touch.

AnTuTu was working prior to the last update. Something must be broken now

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Re,

Yep, maybe...

Like I said, at least for me (and I think I'm not the only one), no issue with the last Antutu update with this kernel (even with the overclock version) but I no longer touch the thermal settings, because here, yes, Antutu crash all the time at 21%... Why not re-flash all with a clean install to see (I mean full wipe)? You'll be fixed at least...

Obviously Antutu is not the most important or maybe not a priority for you, but having a fully functional setup is still the best :good:

:)
[G2 Android Development (D802)] GTMoraes:
Indeed it is, as everything is running well, I don't care about AnTuTu that much.

And hey, is there a overclockable version of this kernel? I couldn't find it, could you pleade point it for me?

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] :
Hi,

Yep: http://xdaforums.com/showpost.php?p=48211535&postcount=713, for the most recent version. But there is CPU freq scaling problem and I'm not sure that the GPU overclock is "fully functional".

:)
[G2 Android Development (D802)] Roars21:
Thank you very much for this. giving it a try now, will report back with results etc.
[G2 Android Development (D802)] GTMoraes:
Thanks, but it's way too unstable. I can't select a frequency lower for the CPU, and when I do, it ramps up the minimum frequency, also the voltages seems to be wrong, since it's too unstable and keeps rebooting at the slightest CPU operation.

The GPU overclock seems alright, though. Too bad :(

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] Roars21:
Im running it now overclocked to 2.4GHz and it's rock solid on my phone. Can't say I notice a difference so far, but I don't have any games installed to give it a good run.
[G2 Android Development (D802)] GTMoraes:
Meh, mine can't stand on its feet after I flash this kernel, even when there's no app managing the clock and voltages. It just keeps rebooting.

Guess I didn't get that lucky

Tapatalked thru my LG G2 D805
[G2 Android Development (D802)] Roars21:
Yea that's a pity, it seems to work no problem here, one of the few things i have flashed and hasn't semi-bricked my phone. lol! maybe a newer version will work for you.
[G2 Android Development (D802)] Roars21:
Ok turns out my min clock speed gets pushed up high for some reason and stays there obviously draining my battery, I will run this tomorrow and see what happens over time.
[G2 Android Development (D802)] :
Hi,

What I said about the CPU freq scaling issue if you use the last "beta/test" version, at least the one I posted with overclock. But no issue with voltage, maybe your phone can't handle overclock or try to raise a little the voltage.

Also, don't have you some older settings applied at boot with Faux app (if you still use it)?

Honestly with your issue about Antutu crash I'm out of idea (just the first one about thermal settings), other than begin from scratch, I don't see, sorry.

In any case the better stable version is the V3.00 in the OP, but with no overclock...

Older version with only GPU overclock: http://xdaforums.com/showpost.php?p=48180493&postcount=661...

These versions are labelled as Beta, so don't expect a perfect version (plus no updated I know, so...).

I think it's not worth to find another "more older than old" version... :D

:)
[G2 Android Development (D802)] mazroui:
I wonder if a collaboration between dori and Lawrence is possible...

been using doris kernel on the s2 and I simply couldn't try any other...

A Colab between the 2 will make wonders to our beloved LG g2
[G2 Android Development (D802)] taliani2:
hello sir . just a simple question : does it support ppp protocol ?! i wanna use ppp widget from play store and i was wondering if it does support using 3g usb dongle . i know it is so stupid at this point but i wanna use my unlimited connection on my phone while keeping my phone running as normal . thanks a lot sir in advance
[G2 Android Development (D802)] Jostian:
any chance of getting stock mod kernel using 10e or 10f source? reason I'm asking is cos I'm running stock 10e ROM and dont know if running current stock mod kernel (based on 10a kernel source) will be ok?? or will it be better to use stock 10e kernel until there is a stockmod kernel version using 10e kernel source?? thanks
[G2 Android Development (D802)] :
Hi,

If I'm not wrong this kernel works perfectly on 10e based rom (need to search in the thread but I remember some users reported using this kernel on the recent fimware updates without issues).

The thing is to know if there is a real change or something major with the new kernel, maybe the source are the same so without any changes?

If you want to try, make a nandroid backup first, and report back here if all is working properly :)

In any case g.lewarne is absent since a long time now (more than 1 month) and nobody knows if he will come back and when...

Take a look here for a "stock modded" kernel: http://xdaforums.com/showthread.php?t=2614400 that is "up to date".

:)
[G2 Android Development (D802)] Jostian:
Much appreciated, thanks!
[G2 Android Development (D802)] superbonto:
so.. no updates yet..?

loving the westwood in this kernel though..
[G2 Android Development (D802)] suhiiii:
Probably wont be updates anymore,g.lewarne is off 2 months,we don't know anything about him :(

We all hope everything is ok with him
[G2 Android Development (D802)] robogo1982:
We should try and get in touch.
[G2 Android Development (D802)] hasenbein1966:
Westwood is BS. Placebo.

If you want updates, go to Dorimanx Kernel.

I'll remain on this kernel here a bit (runs perfectly stable, fast enough, and battery is very good), and when Dorimanx is stable and full-featured enough, I'll make the jump.
[G2 Android Development (D802)] dorimanx:
Its light year already from this source.

But as you wish.

Sent from my LG-D802
[G2 Android Development (D802)] bl4ckdr4gon:
This kernel is stable and fast indeed. I completely agree on this, but what's the basis when you said [MENTION=2376110]dorimanx[/MENTION] kernel isn't stable and full featured? What do you want kernels to do for you, get you coffee and shizz?
[G2 Android Development (D802)] superbonto:
placebo for you, maybe.

some academic study prove that westwood is better in bad network condition; and apparently where i live the mobile network is that unstable.

and i'm currently using dorimanx 2.3.. but still missing the westwood+.
[G2 Android Development (D802)] noppoer2:
Show a link or something else or you lie :)
[G2 Android Development (D802)] superbonto:
PM sent.
[G2 Android Development (D802)] Dedzdedz:
Help

Hey guys

Just flashed this kernel, but there's a thing, i really don't know how to find out if it flashed properly. The thing is, it still says i got 3.4.0 kernel. Is it supposed to be like that? I did the right thing, flashed the zip file in TWRP and rebooted, the phone works fine, i just don't see any diferences. I can say the phone looks as less stutter but that could just be placebo.
[G2 Android Development (D802)] :
Hi,

Take a look here, it's explained: http://xdaforums.com/showpost.php?p=47543084&postcount=105.

:)
[G2 Android Development (D802)] Dedzdedz:
Wooow

It was not placebo at all, i checked it on quadrant info and it is flashed, i did tought my phone didn't have stutter, but now as soon as i unlock it if go to the message app it opens like it's a bloody ferrari lol, and it used to stutter for that half second! By saying this the phone feels faster!! Thanks for this mate.
[G2 Android Development (D802)] jaco1975:
días.este great good to update kernel? kernel is a piece of greetings and thanks
[G2 Android Development (D802)] shayan1103:
zzmoove gov

I love zzmoove gov,very fast

can u port it?

link zzmoove: http://xdaforums.com/showthread.php?t=2326544
[G2 Android Development (D802)] suhiiii:
Dev is inactive 3months ,so NO :laugh:
[G2 Android Development (D802)] shayan1103:
:D:D:D:D:eek:
[G2 Android Development (D802)] jaco1975:
This kernel is the most stable will continue to update? thanks:(:(
[G2 Android Development (D802)] Tinchoska:
This is only based on 10a? Is it possible you do a 10b version?

Enviado desde mi LG-D806 mediante Tapatalk
[G2 Android Development (D802)] shriom_manerker:
im running this on 10c (indian firmware) works wonders ! this kernel is perfect for 4.2.2 ! no other kernel has even touched this ones stability charts ! and it has absolutely no memory leaks :) cheers to the dev !
[G2 Android Development (D802)] Tinchoska:
How did you set this up? How's your battery stats? Do you use trickster?

Enviado desde mi LG-D806 mediante Tapatalk