yashsingh1/xdaforums huggingface dataset:
[X Style (Pure) Android Development] dirtyhank:
Here's a quick mini-guide on how to compile this kernel. This is intended to be run on a modern Ubuntu/Debian box with most basic tools installed. It's a simplified version of the real stuff you might use when you are more experienced but it's enough to get you started:

Install git and make

sudo apt-get install git make

Create directories to host tools and sources

mkdir -p ~/android/clark/kernel
cd ~/android/clark/kernel
mkdir tools src

Install compiler (Uber Tool Chain)

cd tools
git clone https://bitbucket.org/UBERTC/aarch64-linux-android-4.9-kernel

Download source code for kernel, f2fs libs and WiFi module

cd ../src
git clone https://github.com/dirty-hank/frankenclark
mkdir motorola
cd motorola
git clone https://github.com/MotorolaMobilityLLC/motorola-kernel -b marshmallow-6.0.0-release
mv motorola-kernel kernel
git clone https://github.com/MotorolaMobilityLLC/vendor-qcom-opensource-wlan-qcacld-2.0 -b marshmallow-6.0.0-release

Set environment variables

top_dir=~/android/clark/kernel
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-android-
export PATH=$PATH:$top_dir/tools/aarch64-linux-android-4.9-kernel/bin

Compile kernel and WiFi module

cd $top_dir/src/frankenclark
make frankenclark_defconfig
make -j8
make -j8 M=$top_dir/src/motorola/vendor-qcom-opensource-wlan-qcacld-2.0 WLAN_ROOT=$top_dir/src/motorola/vendor-qcom-opensource-wlan-qcacld-2.0 MODNAME=wlan BOARD_PLATFORM=msm8992 CONFIG_QCA_CLD_WLAN=m WLAN_OPEN_SOURCE=1 modules

Check kernel image (Image) and modules (*.ko) were built

find $top_dir/src -name Image -o -iname *.ko

Steps 1-4 are only meant to be run once. Run steps 5-7 every time you make changes to the kernel and need to recompile it. Sometimes you might want to make sure it's a complete rebuild, in such a case run "make clean" before the first make in step 6.

At the end of this process the binaries are ready to be installed on the phone. Several methods are available, I'll explain the easiest in the next mini-guide.
[X Style (Pure) Android Development] unitz0mbie:
installed git, tried step 1, bash sudo command not found. lol i suck at this
[X Style (Pure) Android Development] dirtyhank:
Which Linux distro and version are you using?
[X Style (Pure) Android Development] SpasilliumNexus:
You need to know how to install a distro in either a dual-boot setup or in a virtual machine. There's literally TONS of guides and even videos on how to do either one on Google.

As for setting up a build environment, CyanogenMod and Google has them, among others.

I would LOVE to learn how to get the dtb, modules.img, and ramdisk files in your zips built also, in case I come across any cherry-picks that would affect those. Right now, after lots of trial and error, I have a build script that just builds the zImages. After the zImages are built, they get copied into your kernel's zip layout and re-packaged. For reference, here's my zImage build script (and clean script if you're interested in looking.)

It may be messy lol. I'm still very new to building kernels.
[X Style (Pure) Android Development] dirtyhank:
Sure, that's exactly what I plan to cover in the next mini-guide. BTW, your script is pretty neat, mine are too ugly to show :laugh:
[X Style (Pure) Android Development] dirtyhank:
As [MENTION=5083335]Spasticdroid[/MENTION] pointed out you'll need to install a Linux distro, I recommend you follow the Virtual Machine route. Get Virtualbox and install Ubuntu 16.04. There are tons of guides out there, here's a couple video guides: video1, video2

Once you have Ubuntu up and running open a terminal and follow the mini-guide.
[X Style (Pure) Android Development] XDACXW:
I use the 14 version with trupure 2.9, random reboot for mine, I don't know whether my settings get wrong.
[X Style (Pure) Android Development] gemtin92:
Any idea why prazaar site is not working?
[X Style (Pure) Android Development] ShapeShifter499:
[MENTION=2400758]dirtyhank[/MENTION] I awoke a few hours ago to find my phone next to my bed stuck on the bootlogo (the stitched looping wait logo), it was plugged in to the quick charger that came with the phone. I had to hard reboot my phone to get it to boot. On boot WiFi didn't work and the logcat suggested it couldn't load the WiFi driver, reflashing the Frankenclark v0.14 zip fixed that.

The following gist link is the /data/dontpanic/last_kmsg I was able to grab, any ideas why this might have happened?

https://gist.github.com/ShapeShifter499/9b91cd0acf7db5f50e75c10464c866dd

---------- Post added at 08:52 AM ---------- Previous post was at 08:43 AM ----------

I would like to add a theory on that issue I had. Could a brownout have caused a kernel panic as the device was trying to quick charge on a lower voltage? The quick charger is connected to a surge protector but there currently is a storm in my area, power might have gone off or been low while I was sleeping. I don't know, just trying to make sense of the messages in that last_kmsg file.
[X Style (Pure) Android Development] dirtyhank:
I think he moved file to a different site, try this:

http://dl.prazaar.de/
[X Style (Pure) Android Development] dirtyhank:
That's weird, according to the log the phone rebooted because of a triggered watchdog, but this two lines caught my attention:

[2.479445,2] qcom,qpnp-power-on qpnp-power-on-ffffffc0b00af000: PMIC@SID0 Power-on reason: Triggered from PON1 (secondary PMIC) and 'cold' boot
[2.479469,2] qcom,qpnp-power-on qpnp-power-on-ffffffc0b00af000: PMIC@SID0: Power-off reason: Triggered from PS_HOLD (PS_HOLD/MSM controlled shutdown)

The WiFi module issue is strange, it's like the boot partition was damaged, the modules are on a loopback image stored on the boot partition.
[X Style (Pure) Android Development] ShapeShifter499:
I don't really know what those messages might mean, could you please break them down?
[X Style (Pure) Android Development] dirtyhank:
Not sure either but the PS_HOLD might indicate a shutdown induced by the power supply. Maybe it was you plugging the cable.
[X Style (Pure) Android Development] ShapeShifter499:
[MENTION=2400758]dirtyhank[/MENTION] it went all day without a unexpected shutdown or crash. But while I had it on the quick charger it crashed twice. On the first crash when I found it from after waking up, I had to hard reboot, on boot WiFi did not work. I had reformatted the cache partition using TWRP to try to fix WiFi and rebooted; when that did not work I reflashed the kernel to get WiFi working again. A few hours later while still being connected to the quick charger it crashed and I let it attempt to recover, hard rebooting it after about 10 minutes. When it rebooted nothing appeared broken, WiFi and Cellular was working fine.

Since then I had unplugged the quick charger to use it as normal and it has not unexpectedly crashed or shutdown all day. I did use my laptop USB port to give it a bit of charge but I haven't plugged it in to the quick charger.

---------- Post added at 06:19 AM ---------- Previous post was at 06:16 AM ----------

Could the power fluctuations theory I had earlier explain anything?
[X Style (Pure) Android Development] dirtyhank:
Or maybe the charger is somewhat damaged. If you have any other charger available try to use it for a couple of days and see what happens.
[X Style (Pure) Android Development] ShapeShifter499:
I do have other chargers but none of them are quick chargers, if the phone reboots again while using the stock quick charger I'll go and buy a new quick charger.
[X Style (Pure) Android Development] gemtin92:
Is it save to install latest version of this kernel on TruPure 2.9 rom?

Tapatapatap Moto X Style
[X Style (Pure) Android Development] RootTheMachine:
Looking forward to the next mini-guide. It would be helpful right now.
[X Style (Pure) Android Development] dirtyhank:
It'll be up later this weekend ;)
[X Style (Pure) Android Development] RootTheMachine:
I patched the Dirty Cow (CVE-2016-5195) vulnerability for this kernel; you can see the pull request here: https://github.com/dirty-hank/frankenclark/pull/7

If you'd like to test it out, here's the ZIP.
[X Style (Pure) Android Development] Zedniac:
[MENTION=2400758]dirtyhank[/MENTION] can you confirm that touchboost and input boost are indeed the same thing? I'm attempting to follow a guide for using Interactive CPU profiles, and it emphasizes strongly that you must disable touchboost. The word "touchboost" doesn't show up for me in Kernel Aduitor or EX Kernel Manager, but I have input boost disabled on all cores. I'm using the TruPureXMM ROM with the latest version of Frankenclark.
[X Style (Pure) Android Development] kadopt:
Can you provide a release for the 1.0 kernel? Thanks
[X Style (Pure) Android Development] SpasilliumNexus:
Anyone with an XT1572 Style want to test this build? It's for stock 6.0.1, just as [MENTION=2400758]dirtyhank[/MENTION] mentioned in this post.

Basically, if you're running dirtyhank's version of 1.0, this should work too.

I can't test as I have a Pure, not Style, and have no interest in flashing together a hacked up 6.0.1 setup.

If it works, I'll patch it up with a few fixes, along with the dirtycow fix, similar to my forked version of v0.14.

MAKE SURE TO BACK UP BEFORE FLASHING!

Download: test-frankenclark-alpha-v1.1.zip

Thank you [MENTION=2400758]dirtyhank[/MENTION] for the guides on building everything! :)
[X Style (Pure) Android Development] wasntPlup:
Sweep2sleep

Can some one tell me what file i need to edit to change the sweep2sleep direction to be either left 2 right or both direction.

Thank you
[X Style (Pure) Android Development] SpasilliumNexus:
Successfully updated to 3.10.104. I was close to giving up until I found out the correct patches to use.
[X Style (Pure) Android Development] lafester:
6.0.1 runs just fine with no hacks, other then this kernel.
[X Style (Pure) Android Development] unitz0mbie:
can we get your build of the kernel if you dont mind please? anything in particular you have changed?
[X Style (Pure) Android Development] SpasilliumNexus:
Download it here: frankenclark_plus_0.16-20161106

I've also tweaked the installer to install Kernel Adiutor-Mod app as a standard user app.

Changes and additions I've made, starting from "cleanup configs for clark and kinzie dtbs" on up, can be seen here on my GitLab page:

https://gitlab.com/SpasilliumNexus/frankenclark_kernel/commits/marshmallow-6.0.0
[X Style (Pure) Android Development] kevev:
Thank You for continuing development. Please work with BadDaemon to add link to first post. Or create a new thread for your build.
[X Style (Pure) Android Development] nobreak1970:
Thanks for the update. I'd make a new thread. :good:
[X Style (Pure) Android Development] LastSilmaril:
Cool beans. Coming from 6.0.1 stock, do I need to do anything else to use this, like flashing a new modem?
[X Style (Pure) Android Development] SpasilliumNexus:
Unfortunately, this is a one or two off thing as I'm still a bit new to kernel development. I still have yet to figure how to build one without the need of root, but still have working WiFi and such. This version is just to get up to date with patches such as the dirtycow vulnerability and Linux version 3.10.104.

This won't work on 6.0.1 I think. There is a test version for 6.0.1 a few posts back that I have yet to receive feedback on. If you can make a complete backup and test it, and it turns out that it does work, I'll patch it up too and share it.
[X Style (Pure) Android Development] LastSilmaril:
I can but the only thing I found of yours was the 1.1-alpha for the Style, with a link to dirtyhank's 1.0-alpha for the Pure. Will testing dirtyhank's build be helpful to you at all, or did I just miss your version?
[X Style (Pure) Android Development] SpasilliumNexus:
Yes. You can test dirtyhank's version first to make sure it works. If it does, you can flash my test-1.1 version over top of it to confirm if it also works.
[X Style (Pure) Android Development] LastSilmaril:
OK, I just tried dirtyhank's 1.0, and the Wi-Fi wouldn't work, even though I'm rooted (phh's superuser, magisk). Otherwise it appeared to be smooth. I don't use the 2w stuff and wasn't sure what else to look out for.
[X Style (Pure) Android Development] unitz0mbie:
The kernel feels great!!! snappy and battery life is good too. i used it all default with zram driver, no scripts of any kind and runs great. Please continue development on this!! thank you for everything
[X Style (Pure) Android Development] nobreak1970:
does the linux kernel naturally make contact with outside IP addys? Noticed the new .16 version does via AFWall+

?

Not accusing, just wondering.

update: found out why....framework packet routing or something.

No biggie. :)
[X Style (Pure) Android Development] kevev:
Good eye. :D
[X Style (Pure) Android Development] SpasilliumNexus:
Elaborate.
[X Style (Pure) Android Development] Faruko:
Lost wifi with either 0.14 or 0.16

anyone knows what could be the problem ?
[X Style (Pure) Android Development] SpasilliumNexus:
You need to be on stock 6.0.0 with root.
[X Style (Pure) Android Development] Faruko:
ooh root, I'll fix that

Enviado desde mi XT1575 mediante Tapatalk
[X Style (Pure) Android Development] dinkoh:
Works great. Thanks!!!
[X Style (Pure) Android Development] littleprince86:
Hi. I installed 1.1 kernel. After , flash supersu but my kernel is this:

host immagini

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

Why don't show custom kernel but stock kernel?
[X Style (Pure) Android Development] Ijspegel:
Hi Guys, i Have Eu XT1572, MM 6.0, Stock,Rooted systemless superSu, Xposed Framework. If i flash this kernel latest Version do i Have to flash SuperSu again? Thank you.
[X Style (Pure) Android Development] unitz0mbie:
no
[X Style (Pure) Android Development] Ijspegel:
Thank you, could you short explain why not? I thougt it will modify boot.img and you Have to root systemless again?
[X Style (Pure) Android Development] unitz0mbie:
if im not wrong supersu is rom based not kernel based, so as long as u dont mess with the rom if its just flashing a kernel u shouldnt have any issues

---------- Post added at 11:26 PM ---------- Previous post was at 11:09 PM ----------

do u recommend using apps like lspeed?
[X Style (Pure) Android Development] SpasilliumNexus:
Because you flashed SuperSU AFTER flashing the kernel. SuperSU always restores the stock kernel before installing.

Flash the kernel. It won't mess with a previously installed SuperSU. Even if systemless. Attached below is a screenshot of the stuff I flash (ignore the Magisk folder.) As you'll notice, SuperSU is flashed before frankenclark.

It's a bit of both. SuperSU patches the kernel's ramdisk and installs the app on the ROM. Frankenclark doesn't alter the ramdisk which is why root is still around after flashing it.

I don't know what that is. I just use Kernel Adiutor Mod.
[X Style (Pure) Android Development] littleprince86:
Yes, but your kernel lags when Low battery.

Why some core are offline? How i uses them?

---------- Post added at 01:33 AM ---------- Previous post was at 01:30 AM ----------

Cpu governor (big cluster) is offline too
[X Style (Pure) Android Development] SpasilliumNexus:
Check your kernel settings and turn off that built-in ROM battery saver option if you have it on. I've made absolutely no changes to that version except duplicate the defconfig into 100Hz and 300Hz for my automated build script.
[X Style (Pure) Android Development] littleprince86:
[/url]

upload[/IMG]

Cores offline and big cluster offline, i have changed gov elementalx by interactive but don' change

---------- Post added at 10:28 AM ---------- Previous post was at 10:27 AM ----------
[X Style (Pure) Android Development] unitz0mbie:
can you please check this out? http://xdaforums.com/android/software-hacking/tweak-l-speed-v1-0-02-02-2015-t3020138 i use it but im not sure if its helping me or not, i get mixed feedback u know
[X Style (Pure) Android Development] unitz0mbie:
also may i ask what rom you are running?
[X Style (Pure) Android Development] SpasilliumNexus:
That thread hasn't been updated for months and from my guess, it's a bunch of scripts that overwrites any settings manually applied with a kernel app.

Personalized version of stock. No speed or whatever tweaks. Just extra Google apps, Pixel/Nexus sounds, and some Moto Z stuff.
[X Style (Pure) Android Development] ffonegod:
Where can I get the Moto Z stuff?
[X Style (Pure) Android Development] LastSilmaril:
My apologies, I was careless and didn't realize that I was actually on 6.0. I tried the 6.0-based one (0.16 alpha) and it worked but RAM management was if anything worse than the official untouched kernel :/

(This was a couple of weeks ago - I had this tab opened but never hit Submit reply and didn't notice it until just now.)
[X Style (Pure) Android Development] unitz0mbie:
sorry for asking but, any updates?
[X Style (Pure) Android Development] SpasilliumNexus:
Might do one more before I get a new phone in a week or two. The screen is starting to have graphical issues, even on complete stock, and I can't be bothered to replace it again.
[X Style (Pure) Android Development] unitz0mbie:
alright thank you, can i ask if when 7.0 comes to our device can you port this kernel to 7.0? last request please.
[X Style (Pure) Android Development] SpasilliumNexus:
Definitely. I'll even have scripts which will download and set up a building and compiling environment. I just haven't released it here yet because I'm still doing tests with it.
[X Style (Pure) Android Development] unitz0mbie:
thank you very much for your contribution!!
[X Style (Pure) Android Development] Faruko:
Thank for the updates :) so awesome, smooth and great battery life.

And thank you for supporting in case 7.0 drops, I'm probably going to stick with this phone until Snapdragon 835 devices appear.

So around June next year.

Enviado desde mi XT1575 mediante Tapatalk
[X Style (Pure) Android Development] unitz0mbie:
is there a big difference using in using the 300hz version instead of 100, i decided to do a clean flash today and im on 100 right now, after using 300hz for months, and i dont notice much difference idk
[X Style (Pure) Android Development] ban.codrut:
From what i heard and what I reasoned for myself the difference between the two versions is more like battery vs smoothness. I believe this also propagates on how often the sensors data gets computed by the DSP, so I am talking overall battery consumption not only SOT.

I personally prefer the 100Mhz version for the reason above and also because 300Mhz doesn't give me any personal advantages
[X Style (Pure) Android Development] HPAR:
The last stable is 0.14? And what about 1.0 and plus 0.16??
[X Style (Pure) Android Development] Moppusan:
I've run 0.16 for a while and it seems just as stable as 0.14. 1.0 as far as I know is technically "alpha" but I don't think there's that many changes that could make it unstable. I haven't run it, so don't quote me on that. I was actually about to install 1.0 so I can give my experience, along with I think one other person that said it was stable for them.

I wish the new developers would make a new thread with an updated OP so I don't have to keep searching through this one for all the versions. Although, it's just a few pages. Hey, I'm lazy. :victory:
[X Style (Pure) Android Development] ban.codrut:
I just tried frankenclark plus v1.1 and it doesn't work with wifi "out-of-the-box" as the v1.0 from DirtyHank which managed to work without a modem downgrade. I'm trying this version first time ever and I'm running build MPHS24.107-58-5 (Sept) on XT1752 EU.

I'm glad there is more support for this device.

Is it possible to see the stock implementation of msm hotplug with min/max cpus, probably with better write permissions in some future version of this Frankenclark (plus?)? (they get overdrive in stock kernel for BIG and impossible to set it for LITTLE)

(I hope for 6.0.1 too, not that 7 is too far away but more for retro)
[X Style (Pure) Android Development] cc2918:
hello. i really want this kernel to work but

kernel seems to drop microphone when skype is in the background(not main window) or screen is turned off for certain amount of time .

is it possible for fix this matter?

are there any kernel version that doesn't do this?

ty.
[X Style (Pure) Android Development] ozg33k:
Where can I get the 0.16 version? I I it see the stable 0.14.. thanks

---------- Post added at 10:51 PM ---------- Previous post was at 10:48 PM ----------

Anybody have any recommended settings during setup? I just want good performance. I'm willing to sacrifice some battery life, it's fine. But I dont want an unstable phone. I can't risk any random reboots. Governor? Overclock? Any other settings? I don't wanna spend the next few weeks trying every combination of every setting lol.. I really appreciate it thank you.
[X Style (Pure) Android Development] jordirpz:
Here

https://www.androidfilehost.com/?fid=457095661767112110
[X Style (Pure) Android Development] Ijspegel:
This one is not from Dirtyhank?
[X Style (Pure) Android Development] agates:
What are the possibilities of including WireGuard? The developer recently ported it to kernel 3.18. Just curious if there is any interest in it because it's a pretty fast and lightweight VPN solution.
[X Style (Pure) Android Development] core720:
stable 14 or 16?
[X Style (Pure) Android Development] ozg33k:
Thanks so much man :)
[X Style (Pure) Android Development] yoallen78:
Frankenclark Kernel for the September '16 Security Patch?

I wasn't sure how to word the title but in essence I am asking the following:

With the release of the September 2016 Security patch by Motorola - will there be a version of the Frankenclark kernel that will be released or can I use the existing v14 (or v16) kernel? I'm not sure if kernels are tied to security patches or not, but I did notice when looking at the system info that the stock kernel had a Sept. 2016 date (v. 3.10.84-perf-g2c916d9) I enjoy this kernel as it helped with increasing my battery life on the older March 2016 security patch

Thanks for the help and information :D
[X Style (Pure) Android Development] ItsDon:
I am using Frankenclark V.16 on the September security patched Rom with no issues.
[X Style (Pure) Android Development] yoallen78:
Thanks for the info. I was curious about v.16 (I saw it by reading some of the previous posts and am trying to download it now LOL) and will go ahead and flash it once I get it downloaded.
[X Style (Pure) Android Development] ban.codrut:
Are you running Marshmallow 6.0.1 or just Moto X Pure version 6.0 ?
[X Style (Pure) Android Development] ItsDon:
I've used it on both 6.0 and 6.0.1 with no issues on either.
[X Style (Pure) Android Development] ban.codrut:
Thank you! I'm using v0.16 plus right now with 6.0.1

I was afraid that only v1.0+ alphas and onward were good for 6.0.1, but it works like a sweety.

I don't remember tho if I already did the modem downgrade, but I guess is still required on 6.0.1 even with v0.16.
[X Style (Pure) Android Development] Easy Lamer:
Hi guys!

Please give a valid link to clean script for [KERNEL] [v0.14] [MM 6.0.0 Stock ROM] Frankenslark.

Link to this topic does not work https://xdaforums.com/search/thread/3289939?query=clean script

https://gitlab.com/SpasilliumNexus/frankenclark_scripts/blob/marshmallow-6.0.0/clean-frankenclark.sh

Thank you!
[X Style (Pure) Android Development] EvoNotEvil:
Wow thanks for your work here.. Still a bit new to the Moto but your kernel seems to be quite good and improves battery and performance over stock and the customs Ive tried thus far. Like the aroma installer with descriptive scripts options a install also...
[X Style (Pure) Android Development] sooyong94:
Looks like the newest version (0.16) seems to break wifi... Currently on stock 6.0.1 with the September patch (EU XT1572)
[X Style (Pure) Android Development] BooBzi:
I was off using custom kernels, but now want to try it again. Can someone explain me difference between 0.14 and 0.16 version, there is also some 1.0 alpha version? What should i use, please point me to download links also!

Thanks!