yashsingh1/xdaforums huggingface dataset:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AlDollaz:
It's right there on the main page. But if for whatever reason it isn't showing up, grab it from his personal server.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Spookymyo:
Thanks. I've downloaded from GitHub before. This time it isn't showing the dl link for me.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
I'm using stock Oreo rooted and encrypted data. Will I have any problem if I use this kernel? I wonder if there may be a problem with removing force encryption.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HueyT:
Kernel does not change encrypted state, only "format data" in TWRP (wiping internal SD and data partitions). This kernel will prevent kdz stock ROM from forcing encryption once decrypted which allows TWRP to access data and internal sd
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
Just to inform everyone, I've tried to install Melina kernel on my encrypted Oreo firmware, and after booting appeared the infamous secure start up screen.

Restoring a previous nandroid backup of boot and system doesn't help and I don't know what to do. I really do not want to have to wipe and loose all my data.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] HueyT:
Refresh Magisk 17.1 after Melina Oreo kernel
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Bunsenbrenner:
that does partial help,safe installation do not want right key to start :crying: I had to delete everything and make it new:rolleyes:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Genji-2d:
I wanted to try this kernel but on H872 20A firmware it refuses to even boot.. I already deencrtyped the device so i can acces data and flash anything i like.. I downloaded the lastest oreo which is o2 for the h872
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] AnimusVoxx:
So I'm using this kernel on my H872 and I'm on the latest 20F firmware. Can anyone recommend #1 a good kernel manager & #2 the best settings for a nice balance between battery and performance? Now. I'm not looking to hardcore game or anything on this, it's more of a work phone than recreational so I'll just be making calls, checking email, watching a few YouTube videos here and there but that's mostly it. I'm really just looking for good battery life but with no. Lag, I want to be able to scroll a web page and it not be jittery, I'm messing with the settings right now but I can't seem to find the right combo. And Im not that familiar with messing with the tuneables of a kernel or io scheduler. If anyone can help I'd appreciate it very much.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] darek1995:
It's just LG's sh*tty SW. Swich to an usable custom ROM. There are some Pie ROMs already, under mostly stable status, like AquariOS, AICP, CypherOS, but the H872 only get AquariOS yet.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] blackhawk_LA:
This kernel is a bit old. Try mk2000 instead, specially if you're using latest firmware. But you have to flash stock boot.img before changing between two diferent kernels
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] rmndioan:
Works well on h870.:svetius:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
surprise for stock users, there is a new release!

rel_p1 should work on oreo/pie final stock ROMs :)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] izeeqo:
I have an LG G6 H870 and i have the Android 9.0 stock rom with the bloatware apps. I would like to install this kernel to gain battery and performance (not for gaming) . Could someone tell me if it is better to change the rom and switch to a custom rom (if so, which one)? Or if i could gain in battery and performance only by installing this kernel and staying on the stock rom, uninstalling some bloatware apps which are useless ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Uruz*:
Questions

Hi Zefie, thanks for your great work!!

I have just 2 (maybe newbie questions). I'm quite familiar to modding but i wan to know 2 things before to install your kernel (last rel. ) on my stock Pie V30B H870:

1- Installing ONLY your kernel some specific app from LGE should continue working (Radio FM / Camera / Thetering)

2- Streaming apps like Netflix or Prime Video still working?

Thanks a lot
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Uruz_10:
GREAT KERNEL by Zefie!!

As to inform you guys. I've installed rel p2 Melina kernel on my H870 stock Pie with TWRP and it works great!! It is incredibly better than stock in terms of pure perfomance (now finally G6 is fast and no laggish anymore) and with impressive battery life increased. No bugs or problems, all working fine. No compatibility problems with Magisk ( installed before melina). I've installed Naptime from F.FRanco just in case i needed (for battery life) and Aac magisk's module but no need anything. Very impressive. Thanks to [MENTION=759634]zefie[/MENTION] for the great works !!!:good::good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] cest.extra:
MAC address still randomized

Hi guys,

I made a clean install of v30b from AlinM (https://xdaforums.com/lg-g6/development/rom-lg-h870-eu-30b-rom-t4007979) on my LG-H870, then flashed the rel_p2 Melina kernel.

The MAC address still gets randomized on each connection to my home wifi. According to https://source.android.com/devices/tech/connect/wifi-mac-randomization, this should not be the default behavior in Android 9, and it should be possible to enable/disable it in the developer options. Unfortunately, I didn't see such an option there, and I could'nt find a way to keep a permanent MAC address (nothing in the advanced wifi options either).

So I reverted to the original v30b kernel, and the MAC address is now stable.

After I got back to the previous kernel, I noticed a /vendor/etc/wifi/wpa_supplicant.conf file where there's a MAC address policy default:

# MAC address policy default

# 0 = use permanent MAC address

# 1 = use random MAC address for each ESS connection

# 2 = like 1, but maintain OUI (with local admin bit set)

#

# By default, permanent MAC address is used unless policy is changed by

# the per-network mac_addr parameter. Global mac_addr=1 can be used to

# change this default behavior.

#mac_addr=0

# Lifetime of random MAC address in seconds (default: 60)

#rand_addr_lifetime=60

# MAC address policy for pre-association operations (scanning, ANQP)

# 0 = use permanent MAC address

# 1 = use random MAC address

# 2 = like 1, but maintain OUI (with local admin bit set)

#preassoc_mac_addr=0

# MAC address policy for GAS operations

# 0 = use permanent MAC address

# 1 = use random MAC address

# 2 = like 1, but maintain OUI (with local admin bit set)

#gas_rand_mac_addr=0

# Lifetime of GAS random MAC address in seconds (default: 60)

#gas_rand_addr_lifetime=60

Would these options change the Melina kernel behavior ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] sakis_the_fraud:
hello,

i can't change network mode, could this be related to the kernel?

The option is there, settings, more, Mobile networks, network mode, i make the change to "GSM/WDSMA auto" but it won't stick! If I go back and come again to this menu, the option is reverted back to "GSM/WDSMA/LTE auto"!

Here is my setup right now:

LG G6 H870

Android 7 Nougat V11i-EUR-XX

Melina kernel 3.18.62-melina-rel7_2017.12.31_uber-6.x_STOCK_zefie
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mingo_mgx:
Can you please make modifications to the lineageos kernel? and maybe upstreaming the linux version to the latest? Thanks!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I don't officially endorse this, but if you are willing, you could try and see if Melina works on Lineage. Make backups before hand and expect failure, but it is possible it may work, unless they changed things in their kernel specifically for Lineage.

As for upstreaming, I managed to patch 31 to about 33, manually fixing patch errors, until it just exploded in errors (33 to 34). When it exploded I reverted all the patches back to 3.18.31.

The problem with LG's kernel is its already cherry picked, which means we do have enhancements from later 3.x kernels, but we have no idea which ones because LG chose them.

My next task after I get confirmation of H870 working is to get F2FS support working.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mingo_mgx:
Ill try next week before i wipe my device to test LOS 15 again ill let you know how it will go!

And i have a question what exactly do you need to know to make your own kernel?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Booting fine here, just one major problem, wifi doesn't enable at all.

If you need other information just tell me, for now I'm go back to the stock kernel.

Thanks for the hard work! :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
That's a hard question to answer as its broad. For example, you could build mine without much knowledge following my guides. But to add features and stuff, it gets complicated fast. You need to know what you want to add, how kernels work, how the kernel build system works, C programming language to fix when your new feature inevitably doesn't compile, etc. Then it is a lot of local trial and error before you feel comfortable enough to publish the kernel to the public.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Interesting, thats the problem I have on the US997 if I try to run a H870 kernel......

Okay one last thing to verify and such, back on stock ROM and kernel, I need a directory listing of /system/lib/modules
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Here it is a zip with all the files in that path: https://mega.nz/#!mZ5g2ZrY!IqikR9A4jramrX1BjaIQKGozPl-fZuRqftdH4rFJJN0
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Hmm, nothing different. If you still have the broken melina zip, can you reflash it and capture a dmesg and logcat from adb? Aside from that I have no clue where to start.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
No problems, i'll do this tomorrow after work because i need wifi xD
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] mingo_mgx:
Where are your guides located at? id love to try to make a custom LOS14.1 kernel for h870
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Check the git source link in OP, scroll down and read the readme.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
[MENTION=759634]zefie[/MENTION]

Can you add kcal support ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Didn't know what kcal was until now, Googled it and found this.

It seems Melina already supports kcal :)

Try using the v1.2 apk provided in the thread I linked above.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
Im using H870 model so I wait for support ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Here there are the two logs, if you need anything else just tell me.

https://mega.nz/#!fRARVZQY!ZELjCWPKynVs8G3ofRly0YJ1w479dkSb4VHLVtbUsXE
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Give this one a try.

Aside from Wifi, please test Bluetooth, Sound (one is fine, it should be all or nothing so don't have to test bluetooth audio, headset, etc), also test FM Radio, and anything else you can think of.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Unfortunately this doesn't boot, it gets stuck to the "LG powered by Android screen"
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Hum, give me a bit, again :/
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Np, let me know so I can test it again :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Maybe... just maybe... .. one can wish :D
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Sorry, but it's stil stucking to the powered by android screen... =(
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
I've experienced 3 types of kernel fails so far:

1. Goes straight to fastboot (error loading kernel)

2. Stuck at main logo (where you seem to be now) (kernel loaded, but is panicking or entering a loop)

3. Boot animation loop (kernel loaded but ROM does not like it)

Since you are at 2, I can only imagine that something is not compiling correctly (as I hit this one alot when I was trying to upgrade from .31 to .53). This one is the most common and could really be anything. Short of a magic serial console this is just going to be a bunch of guessing and trial and error.

The same code when configured for US997 is fine, and I am running it now, so I can't even try to figure out what the heck is going on over there.

I've another test build but I'm not confident anymore. :/
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Still stucking... Is there anything i can do from TWRP or such to provide some useful infos? Anyway i don't mind the trial&error, this should bother more you that are doing all the job xD
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Nothing from TWRP could help right now, we'd need serial access to see what it says at the time it locks up. :/

I doubt its initializing USB, if its doing what mine did (sits there for a while then reboots).

Thinking......

Edit: Force flashing the H870 build to my US997 should just leave me without wifi, but I am able to reproduce the stuck issue like you, so thats a start. Doesn't really help me figure out wtf is doing it but at least I don't have to bug you and/or wait for each test. More soon...

also noticing it doesn't auto reboot, interesting.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Ok then, if you need any help or further tests let me know :good:
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Alright, give this build a try:

https://mega.nz/#!lJNmAYqL!cfE4G_qf_u1Hz0cETiWWgGQ1wUCAX2GHWckgw8zAkh8
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Good! It boots! Now:

- Wifi works, also 5G.

- 3G/4G work

- BT will enable, i'll test it further tomorrow with my car

- Quick Charge works

- Audio works (Music Player tested)

- Camera works

- Radio works

- Recording works

- Calls work

Don't know what other things to test xD

Tomorrow at work i'll see how it does in terms of battery, performance and stability =)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
:D I'll wait a few days for your report before making an official release. Thanks and hope you enjoy.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Mercz23:
[MENTION=759634]zefie[/MENTION] can you make telegram group for kernel will be good
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] jwensouls:
But sorry ..then this work on h870 or not?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
It's currently in testing. The mega link that I last posted is the test kernel. It'll be a few days before I make an official build.

Don't really care for the telegram service honestly.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] iliasarena@yahoo.gr:
i am with Rom 2.1 fulmics for now everything works smoothly with the test karnel pleasing to the interest???H870
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motshek:
I test this kernel in LOS 14.1 and performance is greaaat (9250 pkt. In Geekbench compute) . Unfortunely 3 reasons:

Geekbench - Phone restart in LLVM Test

ANtutu - restart in 50% and crash sound in 3d test...

Phone random restart in normal use

Is posible to fix this?

Sry for very bad English.

Wysłane z mojego LG-h870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TotallyGeeky:
This kernel is developed solely with stock ROM compatability in mind (as far as I know), so your mileage may vary with using it on custom roms like Fulmics or LOS. Also, I don't know of builds of LOS for the US997 (unless I missed something), and this Kernel is primarily developed for the LG G6 US997.

I think to fix those issues, zefie would need a dmesg and logcat dump to look through for errors. (Could be completely wrong, but those seem to be pretty standard for troublehshooting)
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] motshek:
Approx. I understand. Unfortunately, I do not know how to make logs :(

Wysłane z mojego LG-h870 przy użyciu Tapatalka
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
You are correct on all aspects, except, I did find this for US997. But as you stated this kernel is for stock. Thanks for helping with the thread as well!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
[MENTION=759634]zefie[/MENTION] No problem here, BT works fine with my car, seems also very stable, no reboot or lag today.

I'll flash the new 11G firmware for H870 so today will be my only day with the kernel, if you need something from the firmware in order to upgrade the kernel just tell me xD
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
11G is stock and still nougat? If so the kernel should work with that too. Just reflash the kernel after flashing the update.

If its Oreo.. well... Melina will evolve to Oreo when LG releases it for US997 as well as some form of kernel source :D

There is a built in LG hardware test, I can't remember how I found it though (wasn't through dialer codes or secret activity intents). If you can remember, just run those to get a thorough test.

Otherwise I just need stability and battery reports, something that means running it long term.

Thanks for all the help so far though!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
I'll do before switching! For the kernel i'll try some days the stock, and if there are no differences i'll try again Melina =)

- Edit -

Did all the test in the scret menu, no problems
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] TotallyGeeky:
I checked that downloads list like last week, how did I miss that? Well, good to know, and thanks for all your work!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] saenta:
Flashes the h870 test build, no problems so far in normal usage [emoji4]

Thanks!

PS.: If you need someone to test something specific just ask and I will do my best [emoji4]

Gesendet von meinem LG-H870 mit Tapatalk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Its been a little bit and there hasn't been a single negative report from the H870 end so I've gone and made a release. The mega link will die.

rel5 is up with H870 support
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
[MENTION=759634]zefie[/MENTION]

Can we expect more features ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Like what?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
Option to disable touchboost, backlight dimmer, sound control (headphones, speaker and mic), Overclock or underclock CPU, Adjustable vibration, CFQ, noop, deadline, FIOPS, SIO, BFQ, and zen i/o schedulers and more
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Schlengge:
Installed the kernel yesterday on my H870 running Fulmics.

So far, it works like a charm! Battery life is exceptional with the added governors (I use zzmoove on the little and elementalx on the big CPU) and performance is great.

Thank you so much [MENTION=759634]zefie[/MENTION] for your efforts and especially for porting it to H870 which is not taken for granted since you do not own the version.

Much appreciated!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sergykm:
[MENTION=759634]zefie[/MENTION] thanks a lot for the custom kernel for h870! Keep working!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
H870 running Fulmics. Seems to be smooth so far. Will give it a day or so and see. Thanks!!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
These sound like ROM side options.

Already possible with a kernel editor such as Kernel Adiutor (Except overclock, which won't happen)

If one of these offer a possible performance increase, and aren't being added for the sake of having the most useless options available, I'll consider them. Even elementalx and zzmove was a bit meh for me, as I find the default interactive works best with the auto scaling system.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] kojak1989:
All these options are available from kernel options look to ElementalX xda page ?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] COMI80:
Phone feels more smooth on 870 . Nice work
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sergykm:
new version released.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Did a TWRP backup of the usual, that failed at the end and had loads booting issues and system crashes.

Only think I've changed is install this. On H870. I couldn't get a logcat as had to flash fresh to get out of bootloops and crashes.

Just wanted to make it aware incase anyone else has same issues.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Sergykm:
I don't have any issues with rel5 and 6, I'm on last fulmics (H870).
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Did you wipe cache and dalvik?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
After all the system errors and reboots etc I wiped then. It booted. Fingerprint didn't work after few mins crashes again.

Have flashed fulmics bootlader and ROM and started fresh. Not sure what the issue was but this was the only change I made lately.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] Killua96:
Who knows, never had this problem
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
First issue I've had. Might give it another go today
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Wiping cache and dalvik shouldn't matter, tbh.

What is "fulmics bootloader"?

Edit after research and md5sum checking: Since fulmics is just the stock bootloader repackaged for convenient updating without flashing an entire ROM, if you had a newer than 10T stock ROM and flashed it you may have downgraded, in which case perhaps my kernel is not compatible with older bootloaders.

Can those successfully running Melina on fulmics confirm their current bootloader version? To check, reboot into recovery, and enter the adb shell (where you see the gibberish on the windows console).

Then run this:

cat /dev/block/bootdevice/by-name/aboot | strings | grep H870

(replace H870 with US997 for that variant). You should see something like this (in my case):

~ # cat /dev/block/bootdevice/by-name/aboot | strings | grep US997
US99716a
LGUS997

Which shows I'm running the US99716a bootloader.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Sorry it's stock 10T bootloader that fulmics thread recommended.

I will flash yours again later and test. Im now using your TWRP too. So hopefully no issues.

Great work!
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
It is possible due to the newer LGE dtsi (device tree) updates that a newer bootloader is required.

Lets see what others who are successfully running it on fulmics are running as their bootloader.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] saenta:
I'm running fullmics with 10t bl.

No problems so far

Gesendet von meinem LG-H870 mit Tapatalk
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Interesting. Thanks for the confirmation. Not sure whats going on with [MENTION=4904639]basicreece[/MENTION]'s crashes then :(
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
It was running perfect until I did a TWRP backup. After this is went pear shaped. Crashes galore and reboots.

I'm not 100% sure it is this kernel but perhaps something else. But not had this issue before and this was the last thing I installed.

Can anyone do a backup in TWRP to test the aftermath?
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] zefie:
Which TWRP did you do a backup in? Some 3.1.1 builds were broken with backups, and formatting data.
[LG G6 ROMs, Kernels, Recoveries, & Other Developme] basicreece:
Official 3.2.0

Noticed today there was an update to 3.2.1 I think?

But now I'm using yours.