yashsingh1/xdaforums huggingface dataset:
[Nexus 6  Original Android Development] pkgnex:
You need your ROM to be updated from post-March-5 source code before 4.18 will work.

Bug your ROM dev's... They're behind Flar2.
[Nexus 6  Original Android Development] RandomPooka:
And now, the waiting game for ROMs to catch up. Then again .. the changelog lists the March update only. I don't imagine anything is lost by keeping the 4.17 version.
[Nexus 6  Original Android Development] flar2:
Exactly right, just keep 4.17 until ROMs get updated.
[Nexus 6  Original Android Development] flar2:
Don't bug them too much, it's a lot faster to build a kernel than a ROM.
[Nexus 6  Original Android Development] RandomPooka:
Thanks for the quickfast confirmation on that!

And, above all, NEVER ask for an ETA or make a comment in your ROM's thread that you're waiting for the next update. Most of us know this, but I know there's some rookies out there that don't understand that the "I'm waiting" comment is rude.
[Nexus 6  Original Android Development] dassub:
Thanks for the 4.18 update :) Can confirm that the speakerphone bug is fixed after flashing the stock March update for Android and the kernel update.
[Nexus 6  Original Android Development] hpbrasil:
Flash Archive fix :)

If it does not work, try the other one.
[Nexus 6  Original Android Development] dassub:
Huh? I just posted that the March update fixes all the issues, bro.
[Nexus 6  Original Android Development] hpbrasil:
Excuse me.
[Nexus 6  Original Android Development] billperrotta:
This kernel killed the sound in my dialer. I'm about to revert back to my backup because when I dirty flashed my ROM the sound was back. On nexus 6. I have no idea about that the latest kernel ex kernel manager flashes kills my sound.

---------- Post added at 12:26 AM ---------- Previous post was at 12:22 AM ----------

Where do I get these march fixes I'm unaware. Until this point I just updated and it was fine. I dirty flashed to stock my dialer worked. I reflashed latest ex kernel and sound is broken again.

---------- Post added at 12:32 AM ---------- Previous post was at 12:26 AM ----------

Is there a 4.19. I hear the 4.18 has an audio bug.

Sorry I don't have enough time to keep searching the forum.

---------- Post added at 12:34 AM ---------- Previous post was at 12:32 AM ----------

You say there is a fix. Where is the link?
[Nexus 6  Original Android Development] ASHLEY117:
The only way to use 4.18 is with the march stock firmware. Until all custom ROM development catches up then keep using your backup until your ROM is updated. I'm on Omni and LineageOS (multiboot) so I'm still on 4.17 until they update.
[Nexus 6  Original Android Development] billperrotta:
Thanks for that I just reverted back and am about to make a backup. I'm on pure nexus 7.1.1
[Nexus 6  Original Android Development] ASHLEY117:
Until Pure Nexus issues an update then stick with 4.17. won't be long for PN to be updated now stock images are available.
[Nexus 6  Original Android Development] billperrotta:
Cool so does that mean 4.18 won't have any issues with the. March release of Pure nexus?
[Nexus 6  Original Android Development] JRJ442:
Correct. Reading back a page you probably would have seen that.
[Nexus 6  Original Android Development] ASHLEY117:
Shouldn't have any issues. Just the sound issues again. Happened a few months back with another stock update. Kernels with newer blobs etc were available before the custom roms caught up. I always delay installation until I check this thread for issue posts.

Whenever you have audio issues then flash back to previous version of Elemental. Fault diagnosis lol
[Nexus 6  Original Android Development] edecker:
My sound disappears with this latest kernel...
[Nexus 6  Original Android Development] deadcatsrule:
Read the last 15 or so postes above yours
[Nexus 6  Original Android Development] dbt816:
Anyone else having a problem downloading the previous (4.17) kernel? I just get an about:blank page. Maybe its something with Firefox on Android, but never had an issue before.
[Nexus 6  Original Android Development] Alxoom33:
If you are using Tapatalk, try we view.
[Nexus 6  Original Android Development] dbt816:
Looks like the URL that links to androidfilehost.com on the elementalx.org web site has hhttps instead of https :)
[Nexus 6  Original Android Development] brightjh01:
Just FYI

I am on DU 03032017. flashed EX 4.18 and lost sound from speaker headphone bluetooth worked fine.

went to EX 4.17 and all is working again.
[Nexus 6  Original Android Development] psychic99:
Sound lost pure nexus

4.18 kernel disabled the sound in pure nexus Feb 15 drop. Had to revert.
[Nexus 6  Original Android Development] JRJ442:
Been documented many times in this thread and elsewhere. You have to wait for PN to update to the March security patch.
[Nexus 6  Original Android Development] psychic99:
Unfortunately I use the exkm app and paid for it. So that is the point that either a notification comes up or the app checks the drop before recommending it. I don't have time to monitor this stuff. So the place where it needs documentation or notification was not there.

Not to be a jerk but a main reason for the app and for which I support the dev which I love is kernel control.

So take this as an enhancement request not a snipe and tbh your response comes off as arrogant to me.
[Nexus 6  Original Android Development] JRJ442:
If you had time to type a post for something that's already been mentioned, you had time to search the thread. It takes 10 seconds. With security updates coming every month, kernel and ROM updates won't be released at the same exact time. You should be checking to make sure it's compatible before blindly updating.
[Nexus 6  Original Android Development] flar2:
I put notes like this in the changelog in the app:
[Nexus 6  Original Android Development] ProRules:
Please help Mr, I updated from 4.17 to 4.18 and now my speakers don't work at all, only headphones work, I can't even talk on my phone without headphones, running clean pure nexus, no frameworks or anything like that.
[Nexus 6  Original Android Development] joeyfong:
Back to 4.17 until pure nexus get update
[Nexus 6  Original Android Development] ProRules:
Where can I find a download link for 4.17?
[Nexus 6  Original Android Development] cujo6801:
Go back to op and hit the download link.

You'll see it...

"Sent from the Dog Pound"
[Nexus 6  Original Android Development] ProRules:
That works thanks!!
[Nexus 6  Original Android Development] cujo6801:
Anytime....

"Sent from the Dog Pound"
[Nexus 6  Original Android Development] magnamentis:
help yourself first, best by starting to read the past few pages and following the thread, has been reported, discussed several times, not only now but as well in the past. next step would be to use search, be it forum or google search, that second approach is always open to anyone, hence valid and mandatory at all times.

thing is that this kernel variant is only for roms/systems with the latest security patch while some roms have not yet been updated.
[Nexus 6  Original Android Development] Alxoom33:
Good advice for everyone! Noobs and senior users, alike.
[Nexus 6  Original Android Development] pillo85:
Am currently on PN but it happen in Nitro as well , on version 4.17 , lock screen get unresponsive have to turn off screen with power button and on again to be able to pass lick screen, any suggestions?
[Nexus 6  Original Android Development] rogconnect:
I have the same known issue and the split screen problems occurred again when watching a video clip even using the interactive governor. Sucks!
[Nexus 6  Original Android Development] djd338:
WOW....
[Nexus 6  Original Android Development] Alxoom33:
Read!

Sorry, him, not you!
[Nexus 6  Original Android Development] ahmedkordofani:
Toolchain for building ElementalX kernel

Which toolchain would you recommend for building the elementalx kernel?
[Nexus 6  Original Android Development] RandomPooka:
Whichever one you prefer. I've yet to see hard data showing any to be any different in the end result, only people saying they think one is better than the other because it "feels" faster. Psychosomatic, until it's proven to give a NOTICEABLE real world difference.
[Nexus 6  Original Android Development] ahmedkordofani:
Alright cheers :)
[Nexus 6  Original Android Development] RandomPooka:
I'm glad you didn't take that as snarky. Not at all meant to be. Good luck with your build
[Nexus 6  Original Android Development] flar2:
I use the prebuilt toolchain from Google.
[Nexus 6  Original Android Development] ahmedkordofani:
Alright cool thanks for letting me know :good:
[Nexus 6  Original Android Development] ahmedkordofani:
ElementalX - error when compiling kernel

I'm using the NDK toolchain to build ElementalX for shamu. I run the following command after exporting the path for the toolchain folder:

make shamu_defconfig

then

make ARCH=arm CROSS_COMPILE=arm-linux-androideabi-

the compiling process goes well for ten minutes until i'm faced with the following error:

LD init/built-in.o
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 58 of arch/arm/kernel/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 9 of arch/arm/common/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 6 of arch/arm/crypto/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 24 of arch/arm/mach-msm/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 40 of fs/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 12 of crypto/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 38 of block/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 24 of lib/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 33 of drivers/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 6 of sound/built-in.o is not in EXIDX output section
arm-linux-androideabi-ld: warning: unwinding may not work because EXIDX input section 34 of net/built-in.o is not in EXIDX output section
drivers/built-in.o:mdss_fb.c:function mdss_set_rgb: error: undefined reference to 'kcal_ext_apply_values'
drivers/built-in.o:mdss_fb.c:function mdss_get_rgb: error: undefined reference to 'kcal_ext_show_values'
Makefile:786: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

Any ideas on how to get past this error?

If you can suggest any other methods of compiling the kernel I would be grateful

Thanks :)
[Nexus 6  Original Android Development] flar2:
Actually, I use a linaro toolchain on this kernel. But regardless, the stock toolchain is good and will build. You will need to Google to fix build errors.

The one you posted looks like you need to enable KCAL in config.
[Nexus 6  Original Android Development] ahmedkordofani:
By enabling KCAL in config, do you mean uncommenting this one line which mentions KCAL in the .config file?

# CONFIG_FB_MSM_MDSS_KCAL_CTRL is not set

or do i have to run

make menuconfig

and enable a specific option?
[Nexus 6  Original Android Development] flar2:
Change it to

CONFIG_FB_MSM_MDSS_KCAL_CTRL=y
[Nexus 6  Original Android Development] ahmedkordofani:
Alright i see thanks :)

Thank you again for your help couldn't of done it without you:good:
[Nexus 6  Original Android Development] ahmedkordofani:
How exactly do I create a flashable zip file of the kernel with all of the contents listed below?
[Nexus 6  Original Android Development] flar2:
AIK by [MENTION=4544860]osm0sis[/MENTION] for boot.img, copy off any installer for the zip
[Nexus 6  Original Android Development] ahmedkordofani:
I've managed to create the new boot.img using AIK however I'm having a hard time figuring out what to do next.

Sorry I'm sort of a noob:D
[Nexus 6  Original Android Development] nathanchance:
Flash it via TWRP or fastboot.
[Nexus 6  Original Android Development] rignfool:
Wow...

I am impressed... You built a kernel... But didn't know how to flash it...

My hat's off to you... You are going to have a good time here on XDA
[Nexus 6  Original Android Development] ahmedkordofani:
How do i make sure i'm building the kernel for let's say the latest version of Android (Nougat 7.1.1) and not any other version? Is it just by downloading the latest kernel source files?
[Nexus 6  Original Android Development] flar2:
Yes, latest is ElementalX-4.00 on github
[Nexus 6  Original Android Development] ahmedkordofani:
Okay Cheers!
[Nexus 6  Original Android Development] RandomPooka:
I can think of several reasons that someone would already know how to cross compile code to be used on a different architecture than the PC it's being built on, but still not know how to directly apply it to an Android device.

Being fluent in C and Java does not make one fluent in ROM/kernel flashing and implementation.
[Nexus 6  Original Android Development] JmakeITlookEZY:
? *Question answered
[Nexus 6  Original Android Development] ahmedkordofani:
How is it that different toolchains generate zImage files that differ in size? For example I first built the kernel using the NDK toolchain and generated a zImage of 7.7mb whereas Linaro toolchain gave me a zImage of 6.9mb

I've also noticed that the zImage found inside the latest EX kernel zip file is above 8mb in size, does this mean I've compiled the kernel incorrectly?
[Nexus 6  Original Android Development] magnamentis:
just flash and see whether it works, if all is well who cares about a few bits and bytes more or less :)
[Nexus 6  Original Android Development] flar2:
No, there are many different options for building the code. Generally, more optimizations make the compiled binary bigger. My zImage is bigger because I use -O3 optimization. The stock kernel is optimized for size (-Os) so it's smaller.
[Nexus 6  Original Android Development] Pkt_Lnt:
[MENTION=4684315]flar2[/MENTION]

A question about EXKM settings on N6 kernel. In previous version there was the setting to change the wakelock divider via sys path. That helped with wifi disconnects as documented here by The Flash. (He has discontinued his kernel for Nexus 6 as you probably know.)

https://xdaforums.com/showpost.php?p=69074043&postcount=1

echo 8 > /sys/module/bcmdhd/parameters/wlrx_divide
echo 8 > /sys/module/bcmdhd/parameters/wlctrl_divide

I tried this in a term and got this response. It appears this abilitiy has been removed.

shamu:/ $ su
shamu:/ # echo 8 > /sys/module/bcmdhd/parameters/wlrx_divide
sh: can't create /sys/module/bcmdhd/parameters/wlrx_divide: No such file or directory

Is this something Google changed in the kernel source or did you remove it? Any chance it could come back? I live in an apartment building with many wifi access points with lots of channel conflicts. These setting helped considerably on my Nexus 6 previously.

Thank you!
[Nexus 6  Original Android Development] flar2:
It should still be there, I'll check tonight
[Nexus 6  Original Android Development] Pkt_Lnt:
Just to clarify the options to set these two was under the Miscellaneous section of EXKM previously, but no longer exist.

Thank you!
[Nexus 6  Original Android Development] flar2:
I know what you mean, and they should still be there. At least I didn't intentionally remove them. I'll check tonight.
[Nexus 6  Original Android Development] ahmedkordofani:
How do i build it using -O3 optimization?

Am i supposed to modify one of the following lines of code in the Makefile:

ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS	+= -O2 $(call cc-disable-warning,maybe-uninitialized,)
else
KBUILD_CFLAGS	+= -O2
endif
[Nexus 6  Original Android Development] flar2:
Yes, but it rarely compiles cleanly. You'll probably have to spend some time fixing up errors.

Looks like I was actually using O2, not O3. I can't remember back when I started on this, but I probably chose -O2 for a reason (stability, most likely).
[Nexus 6  Original Android Development] ahmedkordofani:
I can't believe how silly i was for not figuring it out soon enough. Literally the answer was right in front of me all along. I was using the zImage instead of the zimage-dtb file for the final boot image, so i used the zimage-dtb file instead and now it works like a charm:victory:

Thanks everyone for helping out and most of all a big thanks to [MENTION=4684315]flar2[/MENTION] for making this brilliant kernel possible.
[Nexus 6  Original Android Development] flar2:
Yeah, I don't have those either. I don't remember removing them from the kernel, so I'll have to see if something has changed.
[Nexus 6  Original Android Development] ahmedkordofani:
How do i add features such as USB fast charge to the kernel if missing from EXKM?
[Nexus 6  Original Android Development] magnamentis:
it's not missing
[Nexus 6  Original Android Development] ahmedkordofani:
When i build the kernel it's usually missing.
[Nexus 6  Original Android Development] nathanchance:
Are you using the elementalx_defconfig?
[Nexus 6  Original Android Development] ahmedkordofani:
Alright i see now that's the answer i needed

cheers:)
[Nexus 6  Original Android Development] RandomPooka:
Sometimes the answer is staring us in the face, and we just can't see it until someone points it out. It happens.
[Nexus 6  Original Android Development] kol1124:
If I want move to another custom kernel, just back to stock and install another? That way helps me erase all files, settings and unnecessary files that comes with this kernel?

Wysłane z mojego Nexus 6 przy użyciu Tapatalka
[Nexus 6  Original Android Development] galaara98:
Well I wouldn't call them unnecessary....:p

But yes... If you return to stock, and then install a new custom kernel, you will achieve your desired result.
[Nexus 6  Original Android Development] Pkt_Lnt:
Dirty flash your ROM.
[Nexus 6  Original Android Development] flar2:
You just have to replace the boot.img, this kernel doesn't install any files elsewhere except /sdcard/.elementalx.backup, which has no effect on anything (used only by the express installer)
[Nexus 6  Original Android Development] Pkt_Lnt:
Have you had a chance to look at this?

Thank you.
[Nexus 6  Original Android Development] flar2:
It seems to be completely missing from the kernel, I thought I had this patch. I will add it again if necessary on the next update, which I think will be next week after the new security patches are released.
[Nexus 6  Original Android Development] Pkt_Lnt:
I suspected that it was removed with a security update. Last I remember it being there was in Jan of this year. It would be nice to have it back, since it helped my wifi disconnect / reconnect issue.

It is not a huge thing because it only lasts 2-5 seconds, but I have a Tasker profile that enables / disables about 10 settings on connect / disconnect to my home wifi and it is just a bit annoying (since I have a beep to let me know when that connect status changes).

Thank you.
[Nexus 6  Original Android Development] kol1124:
Thanks and really appreciate that ☺

Wysłane z mojego Nexus 6 przy użyciu Tapatalka
[Nexus 6  Original Android Development] magnamentis:
just keep a copy, sooner or later they all come back but can't tell why without offending anyone LOL ( partly kidding ) enjoy and good luck

but seriously, flashing the stock boot img or another rom would replace the kernel and what comes with it entirely except perhaps what's on internal storage like the folder where stuff was dowloaded to and or backups would be, but then that you can simply delete and that's it

EDIT: ok, was answered, hence another ninja post, sorry.
[Nexus 6  Original Android Development] kol1124:
Yeah, fresh user of this device now, so I want only test it with all the way ?

Wysłane z mojego Nexus 6 przy użyciu Tapatalka
[Nexus 6  Original Android Development] flar2:
I took a look tonight (since I'm updating with the monthly security updates) and I already reduced those wakelocks by a divider of 4. Looks like I did this first thing when I got the device, so I never used those other patches with the optional divider.

https://github.com/flar2/shamu/commit/7f3188a4d880d0185ec04c8d48122c63d199813f
[Nexus 6  Original Android Development] Pkt_Lnt:
Huh, I was sure I had used it with the ElementalX kernel, but I guess not. I did try The Flash kernel when he made if for the N6, and used the EXKM app to change that in his kernel. I switched back to EX a short time later. So it goes with always testing things on our phones., getting brain cells tangled. ;)

Thank you for looking into it and letting me know.
[Nexus 6  Original Android Development] flar2:
Update!!!

Download (Nougat)

ElementalX-N6-4.19

Changes:

-April security update
[Nexus 6  Original Android Development] ikramii:
Work for march patch?
[Nexus 6  Original Android Development] flar2:
I think so
[Nexus 6  Original Android Development] RandomPooka:
Working just fine here with the March release of PureNexus on Shamu and the April ElementalX update
[Nexus 6  Original Android Development] Pkt_Lnt:
Fine so far on March Pure Nexus 7.1.1 since last night, right after it was available in the EXKM app, so 12 hours or so.

I always make a nand first, just in case. :angel:
[Nexus 6  Original Android Development] QuikArcanine:
Where is the configuration file located? I have root and everything.
[Nexus 6  Original Android Development] psychedelicNerd:
No audio/voice in calls

Anyone having issues where the audio/voice completely stops working in calls? I can hear the phone ring when I dial, but once it connects, neither the other party can hear me nor I can hear them.
[Nexus 6  Original Android Development] Pkt_Lnt:
This is caused by a security update date mismatch usually. Check the ROM about phone to see Android security patch level. Many of us are on Pure Nexus March updates with ElementalX April security updates works fine. There was a problem like this with a few month back, I think it was Feb ROMs with March kernels. Search this thread and you can find them if you want..
[Nexus 6  Original Android Development] razen_kain:
Had anyone tried on 7.1.2 yet?
[Nexus 6  Original Android Development] king:
Yup works fine:good:
[Nexus 6  Original Android Development] Nogster:
I performed the update via the EX Kernel Manager app from 4.18 -> 4.19 but Pure Nexus still reports that I'm on the March 5, 2017 security patch. I then downloaded ElementalX-N6-4.19 via the link provided and manually installed it myself but still get the same result. Is there something I'm not getting here?
[Nexus 6  Original Android Development] angourakis:
You've done it correctly. Now PureNexus has to update their ROM too. The Kernel is just part of the update ...
[Nexus 6  Original Android Development] Nogster:
Ohhh... For some reason I always associated those security updates solely with the kernel! Thanks for the heads up.
[Nexus 6  Original Android Development] PhantomHacker:
Solid.
[Nexus 6  Original Android Development] flar2:
Update!!!

Very minor update

Download (Nougat)

ElementalX-N6-4.20

Changes:

-Google update
[Nexus 6  Original Android Development] arealcoolhand:
Version 4.20 just in time for 4/20. This update is blazin'. ??
[Nexus 6  Original Android Development] CA3iR0:
He approves.View attachment 4119761

Sent from my Nokia 3210 using smoke signals
[Nexus 6  Original Android Development] Lawstorant:
Do latest versions support data and cache formatted in F2FS?
[Nexus 6  Original Android Development] psychoela:
after use this kernel i get this "touch_boost: failed to send" is this a bug or nothing? btw i use rr 5.8.3 official. thanks:o
[Nexus 6  Original Android Development] :
https://xdaforums.com/showpost.php?p=62944479&postcount=4408
[Nexus 6  Original Android Development] Jwikoff99:
Should this 4.20 work with the latest 7.1.2 Pure Nexus?
[Nexus 6  Original Android Development] deadcatsrule:
Yes I just flashed newest PN on my n6 today with out any issues