yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Developer Discussion [Developers Only]] DespairFactor:
I think you posted this in the wrong section, anyhow, thank you for your contribution:) I will for sure be taking a look at your work.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
No, correct section. I plan on providing a "customized" version soon, which will provide some minor optimizations and changes. Currently working on another kernel for another device right now, so that will come once I complete my other project (next few days )
[Nexus 6 Developer Discussion [Developers Only]] rlasalle15:
Hey Jake...have you tried compiling this kernel on mac yet? I am having tons of issues with headers. Not sure if something is missing with Xcode. I am pretty sure I remember you having a mac.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
I used to, but not anymore. Most certainly an OS X issue. You would need to give me the errors to look at since I have no issues compiling on Arch.
[Nexus 6 Developer Discussion [Developers Only]] rlasalle15:
Going to try again.....building inline. give me a few.

---------- Post added 29th December 2014 at 12:41 AM ---------- Previous post was 28th December 2014 at 11:55 PM ----------

sent you a pm.

here is the issue for anyone else that may have a clue on what a fix could be:

In file included from /Volumes/android/eos/kernel/moto/shamu/scripts/sortextable.c:31:

/Volumes/android/eos/kernel/moto/shamu/tools/include/tools/be_byteshift.h:4:10: fatal error: 'linux/types.h'

file not found

#include <linux/types.h>

^

1 error generated.

It seems like mac os x doesn't have types.h headers that linux does. Hammerhead compiles just fine, but shamu....she no wanna compile inline.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Download link for the boot image added to OP. Tested ROMs are in post #2.
[Nexus 6 Developer Discussion [Developers Only]] CPA Poke:
Sweet, thanks for this Jake - I like merging much better than manually patching :)
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
The way I have setup the commit history should allow for most developers to just rebase onto my kernel source. I'm willing to bet there will be minimal merge conflicts in doing that (depending on what has been changed, of course)
[Nexus 6 Developer Discussion [Developers Only]] CPA Poke:
Already started :) I was talking about future maintenance, ie for those who have already updated to the most recent sources.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Updated to 3.10.64
[Nexus 6 Developer Discussion [Developers Only]] ryanbg:
This is related to your toolchain and the 'include' files, or your NDK sysroot if you are using NDK/toolchain. What toolchain are you using to compile?
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
He is building in OS X, probably not a toolchain issue. I would assume it's a compiler issue that needs to be fixed with some strange workaround specifically for OS X, since he said hammerhead kernel builds fine.
[Nexus 6 Developer Discussion [Developers Only]] ryanbg:
Depends on if he is using the prebuilt darwin toolchain, there's some missing data types/ops in the header types.h. I've noticed it's been like that since Android 19 platform.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
[MENTION=766721]ryanbg[/MENTION] possible. [MENTION=3026620]rlasalle15[/MENTION] I had issues with Mac previously (about a year and a half ago) but have since purchased a new laptop and use Linux exclusively so I'm not much help here.

Updated 3.10.64 image available via OP.
[Nexus 6 Developer Discussion [Developers Only]] tyea:
I'm happy using by his kernel. Thanks! I've tried several different kernels, and this seems to keep the phone running fast, reliable, and adequate battery life.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
updated to 3.10.65, boot.img included in OP and github reflects.
[Nexus 6 Developer Discussion [Developers Only]] HaRdC0r3:
Apologize for my ignorance...but is this encrypted?
[Nexus 6 Developer Discussion [Developers Only]] monkboy24:
No sir
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
updated to 3.10.66 and added f2fs thanks to [MENTION=4112553]dhacker29[/MENTION]
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Was reading through xda this morning and found this. Been running cm12 nightly builds with Franco kernel but would love to get f2fs on my phone. I love it on my note 3. Are the differences between aosp and cm so drastic that your kernel won't work? I hadn't seen anyone mention it in the thread. (My apologies for my ignorance)
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
This should work just fine with CyanogenMod. I didn't include it on the OP posts as a tested ROM because I haven't tested it (will today, actually), and no user has contacted me saying they have. But regardless of that, since this is a Nexus device, it should work perfectly fine on CyanogenMod. :good:

Edit: I just checked CM's github, they have included f2fs in their kernel (not sure about the system, as I have to run off to class right now) but they haven't made any other substantial changes to the kernel so yes, this WILL work on CyanogenMod quite nicely.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Thanks for the info. I'll have to give it a whirl after work if I have time or sometime in the next couple days. I'll let you know.

EDIT: Had a few minutes so I downloaded it and fastbooted it onto the phone and after it booted up, it was a constantly throwing SystemUI crash. I'll do it again when I have more time and pull a catlog during bootup.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
working fine here for me. I used flashify and was using the 0126 nightly.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
I was on 1-22 nightly. I just switched to CleanROM 1.3.5 by [MENTION=426561]scrosler[/MENTION], and your kernel is working perfectly with it so you can add it to your list.
[Nexus 6 Developer Discussion [Developers Only]] seanowns:
Anyone actually convert to f2fs yet successfully?
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Backing up my user files now to do the conversion.

---------- Post added at 10:13 PM ---------- Previous post was at 09:29 PM ----------

Okay, problem... Latest twrp for our device doesn't have f2fs as a selection for file system change. Is there another means of doing it I'm unaware of?
[Nexus 6 Developer Discussion [Developers Only]] rebretz000:
I thought DHacker released TWRP 2.8.4.1 with f2fs support?

Thought I saw a tweet. Or something.

Sent from my Moto Nexus 6
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
I'll look into it in the morning. If you have a link could you throw it up?
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Forgot about that sorry.

[MENTION=4112553]dhacker29[/MENTION] twrp: TWRP 2.8.4.1 with f2fs support http://d-h.st/aKkU
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Well.... I backed everything up, formatted system, data, and cache as f2fs and restored system/data using RM -f instead of format (typical f2fs conversion steps I've used in the past). Couldn't get it to boot past the Google splash screen. Went back in and converted system back to ext4, wiped, restored system/data, 30 minute bootloop. (No computer to pull log since I'm sitting in my work van waiting on a late customer). Converted everything back to ext4 until I get home this afternoon...
[Nexus 6 Developer Discussion [Developers Only]] funcrusher:
Would it be possible to get RGB added to this kernel? It's the only other kernel besides stock 5.0.1 in which the unlock stutter is absent (for me).

Thanks!
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
not too sure what's going on here, but I am using f2fs just fine right now on CM 01/29 nightly, will be testing my omni builds and stock later today.

Backup your data, boot twrp w/ f2fs, wipe - advanced - repair or fix - format f2fs then flash cm nightly 1-29 which has f2fs in kernel now , worked for me

Then you can fastboot flash or flashify my kernel
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
May have to. Was hoping to stay on clean ROM because of the amazing battery, but I'll play with it more when I get home this evening.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Oh yea make sure he has f2fs in the ROM itself, otherwise you'll have the issues you're describing.

Actually, guarantee he doesn't because these exact issues would occur in that situation.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
I'm downloading the latest nightly of cm now so I guess I might be switching back to cm this evening. I just hit up the Dev of clean ROM to ask about future versions with f2fs.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
I wasn't paying attention with the last release, and I built with an fstab that did not have f2fs support. I am currently rebuilding with the correct fstab changes to bring in f2fs support. This will now support f2fs on any ROM.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Did you already make the change and resubmit it?
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
not yet, i was busy last night with a paper, but I'll have it done today sometime.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
OK cool. Just wanted to make sure you hadn't changed it and resubmitted under the old name. Thanks
[Nexus 6 Developer Discussion [Developers Only]] otisman:
Jakew02 how did you load your ROM after you change to f2fs your data us wipe I can't for some reason use adb sideload device not found much alohas
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
adb push file /sdcard/

^ then flash normally
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Usually, in my experience, you can run a nandroid to your external (otg usb), backup your personal data the same way. Convert your partitions to f2fs, go into settings and tick use RM -f instead of format, restore nandroid system and data only.

Just my experience. I am waiting for the new updated kernel to confirm this will work the same way on this device.

Or do as the Dev said, flash normally new. [emoji106]
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
[MENTION=5867243]Megaflop666[/MENTION] sorry for the delay, here is the kernel w/ f2fs support https://www.androidfilehost.com/?fid=95916177934520942

I didn't pull in upstream on this, so it is 3.10.40 right now. I have to run to work, but I will push another build w/ upstream + f2fs when I get home later tonight.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Awesome. Thank you sir, and no need for apologies. Most of us have lives outside of here. ;)
[Nexus 6 Developer Discussion [Developers Only]] otisman:
Jakew02 I got f2fs on temasek can thus kernel do split partitions so data and cache on f2fs but system still on ext4uch alohas Rob
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Yes, in the fstab, userdata and cache support f2fs while system must be ext4 still. It should work just fine as you described it. :good:

[MENTION=5867243]Megaflop666[/MENTION] [MENTION=4639392]otisman[/MENTION] FYI: i have just uploaded 3.10.67 + f2fs to the link in the OP. The most recent update prior to this was 3.10.40 + f2fs, I rolled back to test the f2fs itself on the "stock" aosp kernel.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Loading it up in a second
[Nexus 6 Developer Discussion [Developers Only]] Scott:
Thanks, thats awesome!
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
may bootloop, i need to upload a fixed version
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
no bootloop but the whole system is VERY laggy
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
yea, i'm fixing it now.

I was building in my omni tree originally, but now I'm just building in my AOSP tree
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
cool, i'll hit refresh a few times while watching New england lose and look for the update. Thanks
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
[MENTION=5867243]Megaflop666[/MENTION] can you test this: https://www.androidfilehost.com/?fid=95916177934521706
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Downloading in a minute.

---------- Post added at 05:43 AM ---------- Previous post was at 05:27 AM ----------

[MENTION=3878813]jakew02[/MENTION] - latest build feels great, very smooth, and very snappy.

I don't have time to go nuts with f2fs this morning, but I successfully changed to the cache to f2fs real quick. I'll mess with it more this evening when I get home. Thanks as always for the work.
[Nexus 6 Developer Discussion [Developers Only]] otisman:
[MENTION=3878813]jakew02[/MENTION] can you take a screen shot if you use disk info the front page mine shows cache and system only show cache as f2fs and system as ext4 much alohas
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
i wouldn't rely on apps to check that. Use the android terminal emulator and type:

mount
[Nexus 6 Developer Discussion [Developers Only]] otisman:
So I must be good then here my screen shot learning something new today much alohas [MENTION=3878813]jakew02[/MENTION]
[Nexus 6 Developer Discussion [Developers Only]] otisman:
Oops here mine
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
That's all that matters, is that people are learning things here :highfive:

So if you use adb shell from your computer, and then type "mount"

or just type "mount" in the android terminal emulator on your device, it should be identical to what is in my screenshot

edit:

just saw your screenshot, you are good to go :good:
[Nexus 6 Developer Discussion [Developers Only]] otisman:
I work on elevator and learn everdsy that what drags me to work daily well pay too lol but it's the same for android that makes me want to learn and try to build once I can run with it lol much alohas
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
For less clutter, you can just type:

mount | grep f2fs

It'll only give you info on whatever partitions are f2fs.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Next build will have the following:

Vibration strength control from [MENTION=3357040]Imoseyon[/MENTION] and [MENTION=4684315]flar2[/MENTION]

Screen color calibration from [MENTION=4684315]flar2[/MENTION]
[Nexus 6 Developer Discussion [Developers Only]] HaRdC0r3:
is this the kernel in your OMNIRom?
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
No, OmniROM kernel is stock Google kernel with force encryption disabled in order to provide a stable base kernel to be included with the ROM.

The only changes that will be added to Omni's kernel are security updates (such as the futex fix), and other than major security updates, it will only be updated with new releases (ie when 5.0.2_r2 releases, I will check for kernel updates).

This will be updated with the Linux 3.10.x kernel and have some more functionality included above and beyond the Omni kernel such as listed in the OP :good: hope this helps

Also:

OP link updated with vibration control and color calibration build. It is still 3.10.67 as .68 is not up on Linux yet.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
[MENTION=3878813]jakew02[/MENTION] - when are you going to name this wonderful kernel? I keep referring to it as "the kernel by jakew02" when I tell other forum users about it
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
I actually wasn't planning on it, but I'm open to suggestions:highfive:
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
"Kick@ss kernel" would be appropriate, but something like clean or smooth kernel would get the message across. :highfive:
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
hm, maybe something like Pristine, or Mint
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
I vote for mint then.
[Nexus 6 Developer Discussion [Developers Only]] pantmunu:
Sexy kernel. Coz it is what it is. ??
[Nexus 6 Developer Discussion [Developers Only]] funcrusher:
I like MintKernel.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
ok, posted lz4 build in the OP, that will be a standard now.
[Nexus 6 Developer Discussion [Developers Only]] Neejay:
"Clean kernel"? Thanks a lot for your work!
[Nexus 6 Developer Discussion [Developers Only]] flyinj54:
What is everyone rocking interactive governor?
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Interactive works great
[Nexus 6 Developer Discussion [Developers Only]] funcrusher:
Interactive
[Nexus 6 Developer Discussion [Developers Only]] flyinj54:
OK trying to out now. See how battery life is. Thanks!
[Nexus 6 Developer Discussion [Developers Only]] oak:
I really like this kernel. I need to give your rom a try. I ran your omni rom on my S4 for awhile. Thanks for all your work, jakew02.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
I just reorganized my branches.

android-5.0 is strictly for AOSP + upstream

android-5.0_rb* is what I will be releasing here with the added features.

I am also updating to 3.10.68 right now.

edit: updated and pushed.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Finally after much laziness, got cache and data converted to f2fs. Does your kernel also support system to f2fs? Past attempts seem to have left the phone in a bootloop. I know some people claim there's no difference, but on my note 3 I found a considerable difference after converting all 3 to f2fs.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
It's just data and cache right now. I can add f2fs for system to the fstab if people want it.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
I'd like that.
[Nexus 6 Developer Discussion [Developers Only]] otisman:
I've found on opo that this is the best f2p data and cache f2fs and system ext4 but to each there own I'm just glad there a few of us that like running f2fs and most important of course the devs that support it much alohas
[Nexus 6 Developer Discussion [Developers Only]] monkboy24:
Wow and all along this is the best kernel out.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
I pushed 68 but forgot to upload it due to midterms week. They just pushed 69 a few minutes ago so I'll merge it and post another build tomorrow between classes.

[MENTION=5867243]Megaflop666[/MENTION] I'll also include f2fs for system as well in the fstab for you.

Edit:

Maybe I had too much coffee today.

android-5.0 dev ref branch pushed to 3.10.69

Building rb1 now
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Can't wait to try it out.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
OP updated. 3.10.69 built from my android-5.0_rb1 branch.

Download Here if you don't want to scroll back

edit: fixed link.
[Nexus 6 Developer Discussion [Developers Only]] IAmAN00bie:
What are your thoughts on the sensor_id wakelock being disabled on leankernel? http://xdaforums.com/showpost.php?p=58765386&postcount=2328
[Nexus 6 Developer Discussion [Developers Only]] ryanbg:
Wrong link in OP for compiled kernel [MENTION=3878813]jakew02[/MENTION] I think you linked to CAF
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
whoops. accidentally linked to linux kernel.

fixed in OP. thanks.

https://www.androidfilehost.com/?fid=95916177934527062
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Latest build support f2fs system partition? I tried it and it wouldn't boot past Google.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
OK, I need to fix the mount flags for f2fs system then. I'll PM you a test build shortly. Thanks for the feedback though.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
No problem. Sorry I'd missed your pm before I posted that.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
I spoke with [MENTION=4112553]dhacker29[/MENTION] about this, f2fs is not optimal for /system partition. It's best to leave system as ext4, and use f2fs for data and cache, if you plan to use f2fs at all.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Okay
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
Latest build is running great. Feels smoother than before and its about impossible to stress it out. Even junky antutu ran faster. Ran it twice after a few stability tests, scored 53k. Great increase over stock, and a nice increase over your last build.
[Nexus 6 Developer Discussion [Developers Only]] pychobj2001:
Did he say why? i have my nexus 10 F2FS and it seemed to make things snappier w/ all f2fs...but I guess I wouldn't know the difference between w/ our w/out converting the system...lol....but i'm no expert..so i'll just do what u guys say..ha...
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Yea, f2fs increases write time but ext4 is better for read only
[Nexus 6 Developer Discussion [Developers Only]] phishfi:
I did a search, and I hate to post this as a reply, so I'm sorry if this is the wrong spot.

How do you enable f2fs for this? I assume it doesn't automatically roll the partitions into that fs, so what's the safest way to convert the fs?

Thanks a lot for the help folks. I understand you should use f2fs for /system, so I'm just curious about converting the data and cache.
[Nexus 6 Developer Discussion [Developers Only]] Megaflop666:
You have to convert data and cache in twrp. You have to be sure to backup all your personal info off the phone to a USB otg drive or similar. When you do the conversion it will erase all your personal data.

Before conversion, after backing up your data. Run a nandroid backup to your USB otg drive. Do your conversion of the two partitions. Go into twrp settings and tick use RM -RF instead of format. Go back to restore and restore your nandroid.

If you read through this thread, any questions should be answered
[Nexus 6 Developer Discussion [Developers Only]] phishfi:
Thank you!

Where is the option to convert in twrp? When I go to "Advanced Wipe" the only FSs listed are ext2/3/4, FAT, and exFAT. I don't see f2fs anywhere.
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
You need the TWRP build with f2fs, it's been posted in here a few pages back
[Nexus 6 Developer Discussion [Developers Only]] phishfi:
OK, I found that twrp version (2.8.4.1), and I formatted every partition (system, data, cache) to f2fs and then I got the Google boot loop. Is it only possible to use f2fs on data and cache? I'm reformatting system back to ext4 now and going to try that...
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
Yes, we already discussed this. Please search the thread before posting as all of the questions you have asked have already been answered.
[Nexus 6 Developer Discussion [Developers Only]] xqz:
Here are the steps I used:

-Nandroid backup and backed up internal storage

-Flash TWRP recovery with F2FS

-Fastboot flashed this kernel

-Went to wipe->advanced wipe->change filesystem and changed Internal storage to F2FS first then cache (I read to do it separately)

-Went to TWRP settings to check the rm -rf option instead of formatting

-Reboot and copied nandroid back

-Boot back into TWRP and restored

Not sure if this is the right method of doing this. It is my first time but I'm on F2FS and its working fine.

One question though, how would I go about running unencrypted for F2FS? I know the kernel is not forced but not sure if formatting on F2FS had an issue or not?
[Nexus 6 Developer Discussion [Developers Only]] Gandalf:
The fstab sets ext4 and f2fs both to encryptable, not forceencrypt, so it shouldn't be encrypted either way.
[Nexus 6 Developer Discussion [Developers Only]] xqz:
I'm using stock and restored the nandroid after switching to F2FS. Settings says I'm encrypted. Are you saying to just do a factory reset again to unencrypt? Would I be able to still restore my nandroid after that and keep it unencrypted?