yashsingh1/xdaforums huggingface dataset:
[Nexus 9 Original Android Development] USBhost:
What do you guys think

Should i make this kernel

All-F2FS

/data,/cache,/system

Or

/data,/cache only?

Or just leave the bloody file system alone?

Edit:

on a side note will support flashable zip

In the next update
[Nexus 9 Original Android Development] TotallyAnxious:
You could just make two versions. f2fs is better but I've never had luck with it, but I'm assuming it's much easier to do on a nexus device.
[Nexus 9 Original Android Development] pantmunu:
+1 on that if its not much trouble for you. And flashify works just fine . [MENTION=5501864]USBhost[/MENTION]
[Nexus 9 Original Android Development] USBhost:
r4

now in a flashable zip

/cache is now f2fs

will leave /system alone for now

will work on getting init.d working
[Nexus 9 Original Android Development] pantmunu:
Just flashed it. And it is bootlooping.
[Nexus 9 Original Android Development] USBhost:
Hmm checking
[Nexus 9 Original Android Development] USBhost:
Try to manually format cache to f2fs

Tell me if it boots
[Nexus 9 Original Android Development] pantmunu:
When u say manually .. do u mean in recovery after flashing the kernel .
[Nexus 9 Original Android Development] apascual89:
Reformatting device

Hey quick question, new to the Nexus 9. What's the process to flash other roms and kernel after being on this kernel? Users trying to flash the temasek rom are bootlooping.... I think the common issue is having flashed this kernel. Any input would be appreciated.
[Nexus 9 Original Android Development] USBhost:
Well I did explain it in the OP

About selinux

The only way to fix the bootloop problem

Is to do a clean install

Or restorcon for every file
[Nexus 9 Original Android Development] apascual89:
Yeah I saw that. We've tried a bunch of clean installs, changing cache format. Nothing has made it work.
[Nexus 9 Original Android Development] micmars:
I've cleaned flashed Temasek (wipe data, system, cache and dalvik), and rebooted, to no avail (sits at boot screen for more than one hour).

I've changed cache partition to exfat first, rebooted recovery, and clean installed the same as described above, again to no avail.

I'm on lollapalooza running fire ice test 7 v2.

The only thing I can do is restore my backup and flash the kernel.
[Nexus 9 Original Android Development] USBhost:
Hmm looks like time to debug

Will report what I find

Huh exfat??

Make it ext4
[Nexus 9 Original Android Development] micmars:
Good, thanks! My bad.

---------- Post added at 03:54 PM ---------- Previous post was at 03:29 PM ----------

OK, I made cache partition ext4, rebooted recovery, and fully installed the Temasek rom for our device (wiped all partitions but internal memory).

Still hung on the boot animation for more than 20 minutes.

Any ideas aside from nuking my internal memory and starting over?

Sent from my Nexus 6 Shamu
[Nexus 9 Original Android Development] Max128:
USBhost: I would just saying your last version k7.. work much better than the k6 , thanks for this.
[Nexus 9 Original Android Development] hhairplane:
Been having the bootloop problem too, did a complete factory reset and back to working... This happened after trying to change ROM from Paranoid back to AICP, tried flashing AICP, Cyanogen, and Revolution all bootloop.

Clean flash did nothing had to do a compete factory reset, same thing happened with my HTC One M8 and a kernel, perhaps something with kernels and Lollipop is screwy sometimes.
[Nexus 9 Original Android Development] cLeAv0:
How did you make lz4 compressed ramdisk to boot? I'm using mkbootimg to build a .img file and it won't work. Already cherry-picked from flar2's github to enable it.
[Nexus 9 Original Android Development] micmars:
I got it working, and a complete wipe of my internal memory did the job.

On a positive note, I can switch between backups that use different cache partition formats by going into TWRP, changing to Ext4, then restoring my Temasek backup.

It's pretty easy, and now I have the ability to test themes, or move from AOSP to cyanogenmod with ease.

Thanks to all whom helped, especially the devs of these forums.

Sent from my Nexus 6 Shamu
[Nexus 9 Original Android Development] USBhost:
You need to enable lz4 support

In the kernel's defconfig

Side note:

sorry for no updates

lately.

Some cool things are coming...

So stay tuned :cowboy:
[Nexus 9 Original Android Development] tyvar1:
Hype ;)
[Nexus 9 Original Android Development] cLeAv0:
I already did that. I think i'm doing something wrong on compressing the ramdisk with lz4. What did you use? I tried the lz4 package on Ubuntu and compiling from source from http://lz4.googlecode.com/svn/trunk/ already.
[Nexus 9 Original Android Development] USBhost:
http://xdaforums.com/showthread.php?t=2073775
[Nexus 9 Original Android Development] cLeAv0:
Odd, even on my older method that tool generates the exact same filesize of the boot.img. Yet that one works. Thanks i guess. :)
[Nexus 9 Original Android Development] USBhost:
You need to edit the

Ramdiskcomp

And change gzip

To lz4

If you didn't know
[Nexus 9 Original Android Development] palaiouras:
Hello USBHost

I have installed your latest beta kernel and the rom is stock.

The kernel is excellent very smooth when it runs. Nonetheless I suffer from frequent screen freezes and the only way to get past is by hard reset of the device.

I hope the future iterations will solve this.

Regards from Greece.
[Nexus 9 Original Android Development] USBhost:
Can you give me this after you do a forced reboot

adb pull /sys/fs/pstore/console-ramoops
[Nexus 9 Original Android Development] palaiouras:
Will do
[Nexus 9 Original Android Development] Luk37astic:
I just flashed the kernel and put the OC scripts in the fireice file, but there's this constant stuttering and lagging everywhere. Any idea what might be causing this?
[Nexus 9 Original Android Development] USBhost:
Well for one a wipe of cache and dalvik-cache makes things faster

Also the interactive gov fix is kind of aggressive

So adjust it to your linking or just remove it from the script

And you will get your speed
[Nexus 9 Original Android Development] Luk37astic:
I saw previously in this thread to wipe cache and Dalvik, so I tried that, but it doesn't change anything.

I'll try removing the interactive tweaks from there then.

Also, do you recommend using any kernel tweaking app with this kernel?
[Nexus 9 Original Android Development] USBhost:
As to my knowledge this is the best for the nexus 9 :: AON

http://elementalx.org/elementalx-app/

I have been meaning to put it

In the op but I have been lazy
[Nexus 9 Original Android Development] Luk37astic:
Thanks so much for the quick responses!

I commented out the interactive tweaks, and everything's perfectly smooth again!

Sorry about all the questions, but what are the stock CPU and GPU frequencies?
[Nexus 9 Original Android Development] USBhost:
Np

CPU is 2.295 Ghz

GPU is 0.852 Ghz
[Nexus 9 Original Android Development] Luk37astic:
So coming from an ext4 kernel, in the running apps section, the system and apps memory bars were fairly short, but now, with this kernel, the system memory bar is absolutely huge. It's suddenly taking up just less than 1 GB of RAM all the time.

It this normal? Is this just an f2fs difference?
[Nexus 9 Original Android Development] USBhost:
it's a ROM bug

Or gapps problem

Because I got it when I updated my ROM

But if your on stock then...

That's a problem
[Nexus 9 Original Android Development] Luk37astic:
Yea, I'm on stock, and I don't intend to mess around with ROMs. Is this a bug you think you can fix?
[Nexus 9 Original Android Development] USBhost:
I need to find out what made it
[Nexus 9 Original Android Development] 12paq:
I have been experiencing system freezes also. My syestem is: not encrypted, SimpleASOP 2-25-15, and running your latest test 3.10.42[FIRE-ICE]K7.2+

After I did a forced reboot I ran the sugested ADB command:

adb pull /sys/fs/pstore/console-ramoops

and got this:

c:\sdk\platform-tools>adb pull /sys/fs/pstore/console-ramoops

remote object '/sys/fs/pstore/console-ramoops' does not exist

- Must not have generated the expected log...? I had no last_kmsg either.

Anything else I could pull for you?
[Nexus 9 Original Android Development] USBhost:
Run as root

Adb root

Then do it
[Nexus 9 Original Android Development] 12paq:
Gawd... rookie mistake.

Next freeze, will do.
[Nexus 9 Original Android Development] USBhost:
OK guys

There's going to be an update to the kernel today or tomorrow

Also the cool stuff I was talking about

Will not be coming soon because of problems I mean problems!

It will come eventually.

So normal operations will start again! :laugh:
[Nexus 9 Original Android Development] USBhost:
test.3.K7 is up

test.3.K7

-| ElementalX governor

-| some ramdisk fixes

-| fixed ram problem in about apps

-| made the interactive governor fix less aggressive

-| interactive governor fix is its own script now :: makes it easier to delete / edit it

-| CFQ is default I/O gov for now :: it works good

-| CFQ also uses cgroups now

-| may have fixed the screen freezes

-| suspend should work a little bit better now

-| -Ofast :: its back

i think thats it?
[Nexus 9 Original Android Development] tyvar1:
Big changelog you got there ;) thanks!
[Nexus 9 Original Android Development] Hiro Nakamura:
very nice update :)

can you also add franco's conservative governor ?
[Nexus 9 Original Android Development] USBhost:
Will try
[Nexus 9 Original Android Development] USBhost:
So how's everything working for you

Guys?
[Nexus 9 Original Android Development] Hiro Nakamura:
Working great so far on CM nightly. I just lost root with cm's superuser so i flashed supersu and that worked well.

As for now everything is stable and smooth
[Nexus 9 Original Android Development] sbollero:
CM12 nightly 0220 & K7.2

Times of great performance/battery and other times choppy performance. Can I ask you why system monitor lite shows massive RAM usage but runnings apps are using barely any? When I switch to cached processes around 800m to 1g is being used.

I know its most likely not kernel related but is there a memory tweak I can try kernel-side to lower that number? I have very few apps other than minimal gapps and 10 other with most all greenified.

By the way, reading this thread and your level of support is awesome.
[Nexus 9 Original Android Development] 12paq:
Had a couple of freezes today. Here is the requested log:

http://pastebin.com/NpEg7NKK
[Nexus 9 Original Android Development] gb_Texas:
Nothing to report, just installed, on stock, no freeze at the moment, but only 2 hours of SOT... Thanks for the work... Runs smooth.. Using the elementalx gov
[Nexus 9 Original Android Development] USBhost:
i recommend you try test.4

i did some fixing that should stop your

choppy performance

about your massive RAM usage

i dont seem to get it

pls do report it if you still get it on test.4

i want to make sure it's not the kernel

test.4.k7 is up

-| more fixes to the ramdisk

-| freezes may have been fixed :: pls test it

-| also some cleaning up on my scripts's in init.d

turns out your problem was lack of free ram

system ui got killed thats bad!! and other things....
[Nexus 9 Original Android Development] sbollero:
Interesting that 12paq has memory leakage or issues going on as well. Are you running CM 12pac?
[Nexus 9 Original Android Development] gb_Texas:
Thanks again, just installed test 4, had one freeze on test 3 while browsing using beta chrome.. Running stock
[Nexus 9 Original Android Development] 12paq:
I'm running SimpleASOP but it has many cherry picks from CM.

Edit: mmm... system ui crashes? That sounds like theme engine issues, not the kernel.

Testing k74 now.
[Nexus 9 Original Android Development] MotoFlasher:
SimpleAOSP TE Build by Banks & Slim BETA ARM64 Mini Gapps + Test 4 K7 + ElementalX App = profit! ;)

Until now ;) no problems.... :good:
[Nexus 9 Original Android Development] Dieselrellim:
After flashing this kernel I can't flash a cm update without this kernel because it will boot loop. Is there any way to fix this
[Nexus 9 Original Android Development] USBhost:
You have 2 things

Cache is not ext4

&

SELinux

The CM kernel is stock and SE enforcing

So it will bootloop

If selinux does not get you the cache will

So if you want to stay on cm and not worry about flashing this kernel

Is to do a full clean install
[Nexus 9 Original Android Development] Dieselrellim:
I did a full system wipe and started clean but it didn't fix it.
[Nexus 9 Original Android Development] USBhost:
I mean system cache and data

And don't forget to format cache back to ext4
[Nexus 9 Original Android Development] Dieselrellim:
That worked! Thank you
[Nexus 9 Original Android Development] 12paq:
Just had a system freeze on K7 test 4.

console-ramoops log is here:

http://pastebin.com/7Ec9uyQZ
[Nexus 9 Original Android Development] USBhost:
What ROM are you using?

And what are you doing when that happens
[Nexus 9 Original Android Development] 12paq:
SimpleASOP Feb 25

Nothing intensive just reading the New York Times app and browsing the net (Boat Browser), and using the XDA app.

Edit: it's important to note, this kernel runs exceptionally well. We have not even concluded that these minor freezes are completely kernel related. Ui crashes could be anything. Props to the developer for responding and his willingness to look into it.
[Nexus 9 Original Android Development] jonahmt21:
i lost root as well but supersu didnt fix my problem. it wont update the binaries. any ideas?
[Nexus 9 Original Android Development] sbollero:
Difficulties

Using CM12 nightlies and the most recent fire ice beta kernel. Can someone here please tell me what causes a bootloop at CM splash anytime I try to flash a new nightly?

Is it a formatting issue? Maybe I need to wipe everything?

It just seems like the only way I can flash a new nightly is a complete wipe.

I feel like it must be a hidden trick that comes with using this kernel...
[Nexus 9 Original Android Development] USBhost:
Reflash the kernel

Every nightly flashes a different kernel = bootloop

So just reflash Fire-Ice every nightly build
[Nexus 9 Original Android Development] USBhost:
Make sure you have

Root access set to apps and adb
[Nexus 9 Original Android Development] Hiro Nakamura:
Did you flash supersu.zip via twrp ?
[Nexus 9 Original Android Development] sbollero:
Thanks you!!!
[Nexus 9 Original Android Development] USBhost:
test.5.K7 is up

k7.5

-| toolchain update :: using full SaberMod 4.9.3 now

-| disabling of more stuff

-| some lowmemorykiller fixes

-| BL update :: you only need to type BL now then what you want

-| some suspend/PM fixes

-| slub fixes

-| console-ramoops :: root is not needed to read it anymore.

[MENTION=3292224]franciscofranco[/MENTION] :: thanks to him for the fixes

the people who wanted franciscofranco conservative gov

it wont come. because the conservative gov lags like bloody hell,

also it does not like elementalx's gov.

also zram will come in the next test if everything is good with test.5

also some web FS will come also for testing
[Nexus 9 Original Android Development] Magoggles:
Can't wait to give it a spin. FYI I haven't had any freezing on 7.4 or other issues yet.

Edit: I may have spoken too soon on that last part :/
[Nexus 9 Original Android Development] USBhost:
Lol fate heard you

I say memory leak is the problem

Because here on aicp I get no such problems

If you say I did not get it on k6 or 5

Then the only other factor is ZRAM

zram gave you more free room to breathe

there for it gave you more time before freezing

Note: I was making assumptions...
[Nexus 9 Original Android Development] jonahmt21:
This worked. Thanks
[Nexus 9 Original Android Development] 12paq:
' been running test K7.5 all day with no freezes. So far so good. :)
[Nexus 9 Original Android Development] whirl08:
Best I've ever got.
[Nexus 9 Original Android Development] jonahmt21:
test 5 seems to be laggy. went back to test 4 and its smooth again.
[Nexus 9 Original Android Development] USBhost:
status updste

Test.6.k7 will be released

tomorrow.

Zram will be back

And some other things

Im thinking that i will stop including the interactive gov fix with the kernel.

I will make it to an optional zip to flash.

What do you guys think?
[Nexus 9 Original Android Development] 12paq:
I think you should compile your own governor, named Fire-n-Ice.
[Nexus 9 Original Android Development] USBhost:
Hmm... First I need to learn how..

You know what I well

I will start small
[Nexus 9 Original Android Development] JCUK89:
Waiting patiently for test 6 :)
[Nexus 9 Original Android Development] Hiro Nakamura:
Hey USBHost,

is it possible to to get the kernel to 3.10.71?

I see on the nexus 6 forum that some kernels are pretty much up to date.
[Nexus 9 Original Android Development] USBhost:
I know man I want that too...

But my knowledge on updating kernels is... lol not good

I could try but...

Don't expect much..
[Nexus 9 Original Android Development] Hashbang173:
https://www.kernel.org/
[Nexus 9 Original Android Development] Hiro Nakamura:
Is it possible to fork a bit in the shamu source? For example here:

https://github.com/jakew02/android_kernel_moto_shamu/commits/android-5.0_rb1?author=gregkh&page=1
[Nexus 9 Original Android Development] smayonak:
Great work! 2.0 amp charging works! It feels like a new tablet now.

While the conservative governor lags quite a bit, it seems to help with the Nexus 9's heat generation issues. It doesn't seem to make a huge difference, but the back feels a bit less scalding.

I also noticed that the tablet spends more time at around 200MHz if left idle for a long period of time, which I think means it spends more time at lower frequencies after going through a wake-lock. I don't know if a higher freq might be more battery efficient, though.

Maybe there's an alternative to conservative? XOnDemand or perhaps scary governors? I guess undervolting might be helpful, but I heard somewhere that UVing is not something we should request from devs.
[Nexus 9 Original Android Development] USBhost:
test.6.K7 is up

test.6.K7

-| ZRAM added back

-| ZRAM uses lz4

-| some more disabling

-| makefile changes

-| went back to -O2 to do some testing on benchmarks
[Nexus 9 Original Android Development] USBhost:
R6.T2 is up

R6.T2

-| stock kernel was rebuilt with cpu gov set to proformance

so it's about 100% faster.. with everything...

But not in I/o well... maybe a little
[Nexus 9 Original Android Development] Ishwara Sandesh C M:
It's a nice update:thumbup: Very smooth now.. K7.5 was laggy..
[Nexus 9 Original Android Development] tyvar1:
Two updates! Awesome! As always good job USBhost!
[Nexus 9 Original Android Development] sbollero:
K7.5 w/CM12 nightlies.

Does anyone else get stuttering watching Netflix? I do, especially when trying to seek throughout an episode or movie. Kernel set at defaults.

Gonna flash the latest and see if it helps.
[Nexus 9 Original Android Development] USBhost:
Did it go away on 7.6
[Nexus 9 Original Android Development] USBhost:
K7.7 stable

K7.7

-| toolchain update

-| a bunch of fixes to the ramdisk

-| one or two fixes to the kernel

i think thats it...

ok guys we are working on updating the kernel to linux to 3.10.71

but it will take some time so stay tuned :cool:

web FS will come on the testing on k8 sorry for delay

i wanted to make k7 stable be for adding it

Note: people on k5 pls wipe you caches etc...

because much has changed
[Nexus 9 Original Android Development] tyvar1:
Thanks for the update!

One question:

Why 3.10.71 when 3.19.1 is the latest according to kernel.org?

I don't know how kernel updates works and such just curious ;)
[Nexus 9 Original Android Development] jonahmt21:
this will do a recovery loop during install. maybe just me? i always go back to K7 test 4 and that always works for me.
[Nexus 9 Original Android Development] USBhost:
Can you give me a recovery log?
[Nexus 9 Original Android Development] jonahmt21:
i tried to copy last.log from cache/recovery but its corrupted.
[Nexus 9 Original Android Development] USBhost:
Can you use adb

To get the log in recovery

adb pull /tmp/recovery.log

When recovery goes ****
[Nexus 9 Original Android Development] Poesini:
[MENTION=5501864]USBhost[/MENTION] , I am trying to build your kernel, and it seems it builds, but do you know how do I get an .img or something flashable?

I am using this script:

# Resources
THREAD="-j$(grep -c ^processor /proc/cpuinfo)"
DEFCONFIG="USBhost_defconfig"

# Vars
export CROSS_COMPILE=${HOME}/android/aarch64-linux-android-4.9/bin/aarch64-linux-android-
export ARCH=arm64
export SUBARCH=arm64

# Paths
KERNEL_DIR=`pwd`
REPACK_DIR="/home/mauricio/android/FIREICE-RAMDISK"
ZIP_MOVE="${HOME}/android/AK-releases"
ZIMAGE_DIR="/home/mauricio/android/FIRE-ICE-2/arch/arm64/boot"

# Functions
function clean_all {
make clean && make mrproper
}

function make_kernel {
echo
make $DEFCONFIG
make $THREAD
cp -vr $ZIMAGE_DIR/$KERNEL $REPACK_DIR
}

function make_zip {
cd $REPACK_DIR
zip -r9 FIK.zip *
mv FIK.zip $ZIP_MOVE
cd $KERNEL_DIR
}

DATE_START=$(date +"%s")

echo -e "${green}"
echo "USBhost Kernel Creation Script:"

echo -e "${green}"
echo "-----------------"
echo "Making USBhost Kernel:"
echo "-----------------"

while read -p "Do you want to clean stuffs (y/n)? " cchoice
do
case "$cchoice" in
y|Y )
clean_all
echo
echo "All Cleaned now."
break
;;
n|N )
break
;;
* )
echo
echo "Invalid try again!"
echo
;;
esac
done

echo

while read -p "Do you want to build kernel (y/n)? " dchoice
do
case "$dchoice" in
y|Y)
make_kernel
make_zip
break
;;
n|N )
break
;;
* )
echo
echo "Invalid try again!"
echo
;;
esac
done

echo -e "${green}"
echo "-------------------"
echo "Build Completed in:"
echo "-------------------"
echo -e "${restore}"

DATE_END=$(date +"%s")
DIFF=$(($DATE_END - $DATE_START))
echo "Time: $(($DIFF / 60)) minute(s) and $(($DIFF % 60)) seconds."
echo

I used as base, the AK-kernel for OnePlus One (I want to port some of his stuff on my home builds), but my experience building kernels is like none

When I type:

make bootimage

It starts asking me a lot of stuff which I think it shouldnt be that way
[Nexus 9 Original Android Development] USBhost:
Will get back to you

I'm kind of busy at the moment...
[Nexus 9 Original Android Development] Poesini:
Thanks man, no rush...

Read the edit though :good:
[Nexus 9 Original Android Development] visitor29:
test on LTE FIRE-ICE [K7.7] --- charging ONLY when tablet is off and around front camera area kind of bit right (before headphone jack line) getting suspicious hot
[Nexus 9 Original Android Development] USBhost:
K7.7.1

-| fixed that problem :: it was because if CFQ

-| FIOPS :: default now

sorry about that guys

[MENTION=4852194]jonahmt21[/MENTION] does it flash for you?

well... we could go linux 4.0.0 but...

if we could it would take sooo long...
[Nexus 9 Original Android Development] Hiro Nakamura:
I'd rather stay on 3.10.xx to prevent compatibility issues.
[Nexus 9 Original Android Development] USBhost:
i was thinking the same thing
[Nexus 9 Original Android Development] Hashbang173:
If 5.1 gets released soon, there will probably be some kernel updates. That may mean starting over updating the kernel to 3.10.71...
[Nexus 9 Original Android Development] USBhost:
I know that's one down side

Can't wait to see what changes
[Nexus 9 Original Android Development] tyvar1:
Okey thanks :D
[Nexus 9 Original Android Development] jonahmt21:
downloads are missing :)
[Nexus 9 Original Android Development] Hiro Nakamura:
Unfortunately no one knows for sure when android 5.1 comes on nexus devices.
[Nexus 9 Original Android Development] USBhost:
Hmm re uploading it

Edit: its back up
[Nexus 9 Original Android Development] jonahmt21:
7.1 runs well. Thanks :)
[Nexus 9 Original Android Development] Ishwara Sandesh C M:
5.1 released.. But not for nexus 9 :(

But definitely we will get it from our devs before Google does it :D
[Nexus 9 Original Android Development] Hiro Nakamura:
Haha, AOSP ftw ! Is source code already available for nexus 9?
[Nexus 9 Original Android Development] Ishwara Sandesh C M:
Yes. So we have got 5.0.2 :)
[Nexus 9 Original Android Development] Poesini:
Any word here maybe? :o