yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] Christopher83:
K^Kernel 3.4.105 v4.0 for KK 4.4

Hi guys,

I released the new v4.0 builds of the kernel:

- Built with my latest custom Linaro 4.9.3-2015.01 toolchain optimized for Cortex-A8
- ext4: Add support for FIDTRIM, a best-effort ioctl for deep discard trim (credits to JP Abgrall)
- broadcom_wlan: Modify country code source (credits to arco68)
- net: ipv6: autoconf routes into per-device tables (credits to Lorenzo Colitti)
- netfilter: nf_conntrack: decrement global counter after object release (credits to Pablo Neira Ayuso)
- net: ipv6: Add a sysctl to make optimistic addresses useful candidates (credits to Erik Kline)
- Enable NEED_NETDEV for vendor command support. (credits to Subhani Shaik)
- cfg80211: ignore supported rates for nonexistant bands on scan (credits to Felix Fietkau)
- crypto: msm: check potential integer overflow (credits to William Clark)
- defconfig: Enable generic USB audio driver (credits to tobigun)
- defconfig: Update default and custom defconfigs (credits to Christopher83)
- i2c: chips: fsa9480: Add support for charging in USB-OTG mode (credits to tobigun)
- i2c: chips: fsa9480: Add write-permission for USB-OTG charger type (credits to tobigun)
- Staging: android: binder: More offset validation. (credits to Arve Hjonnevag)
- fs: f2fs: Initial import from https://kernel.googlesource.com (credits to arco68)
- defconfig: Enable F2FS filesystem (credits to arco68)
- defconfig: Switch to ROW I/O scheduler as default (credits to Christopher83)
- HID: input: generic hidinput_input_event handler (credits to David Herrmann)
- cpufreq: Avoid using global variable total_cpus (credits to Ruchi Kandoi)
- net/ping: handle protocol mismatching scenario (credits to Jane Zhou)
- net: ipv6: allow choosing optimistic addresses with use_optimistic (credits to Erik Kline)
- netfilter: IDLETIMER: fix invalid deference of timer (credits to JP Abgrall)
- prctl: make PR_SET_TIMERSLACK_PID pid namespace aware (credits to Micha Kalfon)
- crypto: arm-aes - fix encryption of unaligned data (credits to Mikulas Patocka)
- ARM: 8118/1: crypto: sha1/make use of common SHA-1 structures (credits to Jussi Kivilinna)
- ARM: 8119/1: crypto: sha1: add ARM NEON implementation (credits to Jussi Kivilinna)
- ARM: 8120/1: crypto: sha512: add ARM NEON implementation (credits to Jussi Kivilinna)
- defconfig: Enable NEON optimized SHA1 crypto routines (credits to Christopher83)
- defconfig: Build QCOM crypto device as built-in (credits to Christopher83)
- pstore: selinux: add security in-core xattr support for pstore and debugfs (credits to Mark Salyzyn)
[Galaxy S Plus I9001 Android Development] Christopher83:
K^Kernel 3.4.106 v5.0 for KK 4.4

Hi guys,

I released the new v5.0 builds of the kernel:

- Kernel 3.4.106
- Built with my latest custom Linaro 4.9.3-2015.01 toolchain optimized for Cortex-A8
- KEYS: close race between key lookup and freeing (credits to Sasha Levin)
- msm_fb: Fix RGB pipe offset issue (credits to Blefish)
- msm: mdp.c fix deadlock which causes blue screen (credits to Vinu Deokaran)
- msm: rq_stats: Use cpufreq API to get the current frequency (credits to Archana Sathyakumar)
- staging: android: ashmem: add missing include (credits to Rom Lemarchand)
- net: wireless: bcmdhd: Remove WLAN_CIPHER_SUITE_AES_CMAC advertisement (credits to Dmitry Shmidt)
- gpu: ion: Refactor locking (credits to Srinivasarao P)
- gpu: ion: use a list instead of a tree for heap debug memory map (credits to Srinivasarao P)
- gpu: ion: fix locking issues in debug code (credits to Mitchel Humpherys)
- gpu: ion: add locking to traversal of volatile rb tree (credits to Srinivasarao P)
- gpu: ion: Delete invalid extra file (credits to Pradosh Das)
- drivers: video: msm: Cleanup some dead codes (credits to sirmordred)
- lz4: Revert previously applied commits (credits to Christopher83)
- decompressor: add LZ4 decompressor module (credits to Kyungsik Lee)
- lib: add support for LZ4-compressed kernel (credits to Kyungsik Lee)
- lib: add lz4 compressor module (credits to Chanho Min)
- lib/lz4: correct the LZ4 license (credits to Richard Laager)
- lz4: fix compression/decompression signedness mismatch (credits to Sergey Senozhatsky)
- lz4: ensure length does not wrap (credits to Greg Kroah-Hartman)
- lz4: fix another possible overrun (credits to Greg Kroah-Hartman)
- lz4: add overrun checks to lz4_uncompress_unknownoutputsize() (credits to Greg Kroah-Hartman)
- Update zram and zsmalloc up-to 3.17 kernel changes (credits to sirmordred)
- msm7x30: Remove high memory configurations (credits to Christopher83)
- msm7x30: Change all heap types to CMA (credits to sirmordred)
- msm7x30: Workaround deep sleep issue (credits to Christopher83)
- msm7x30: Increase ION memory heap for surfaceflinger (credits to Christopher83)
- defconfig: Update default and custom configurations (credits to Christopher83)
- f2fs: Sync F2FS to Jaegeuk's linux-3.4 branch (credits to Christopher83)
- selinux: fix inode security list corruption (credits to Stephen Smalley)
- ipv4: try to cache dst_entries which would cause a redirect (credits to Hannes Frederic Sowa)

In few words:

Updates to ION, ZRAM, ZSMALLOC and F2FS file system

Updates to LZ4 algorythm, a very fast lossless compression algorithm

Use of LZ4 for ZRAM compression/decompression for faster operations than previously used LZO

Dynamic allocations through CMA for all ION heaps to free up more RAM when not used by surfaceflinger and audio

(max free RAM is now approximately 426MB)

PS. At the moment, please don't try to use F2FS as filesystem type for data partition, some changes are needed on ramdisk side and on some binaries, I haven't time to experiment on F2FS stuff for CM 11.0 too.
[Galaxy S Plus I9001 Android Development] soyab0007:
Guys pls help me out

I am getting blank screen after installing v5.0

After I have installed the kernel, I clicked on restart then on Screen SAMSUNG appears then Samsung i9001 Dev connection shows

after that completely blank screen with menu and back key led on

Tried with removing battery, and powering it ON, but same result
[Galaxy S Plus I9001 Android Development] XeLLaR*:
Try flashing KKernel or reinstall the Rom.

Gesendet von meinem Nexus 5 mit Tapatalk 2
[Galaxy S Plus I9001 Android Development] l.kunal.m:
F2FS Filesystem query

Hey Christopher & the ADC Team, Firstly Thank you so much for the support for our device. I'm on Release 12 or something and I want to flash Release 17 along with K Kernel. I wanted to know whether the F2FS File system is enabled from default or i have to manually enable to it or something like that because when i flash release 17 (as stated not to switch F2FS Filesystem yet) I don't want to get something wrong which will brick my device or some black screen to occur.

So if i just normally install everything as per the instructions provided in OP of both the ROM as well as this Kernel then it should work normally without any problem and the F2FS filesystem is manually enabled by me(which i don't require to do) right? Help is Appreciated :)
[Galaxy S Plus I9001 Android Development] d21d3q:
I just quoted you because i can see in your footer that you are using successfully SlimCM with K^Kernel.

Using TWRP 2.8.0.0 what I found here (I saw in some other thread that some link do download 2.8.1.0, why it is not under this TWRP related thread?) I flashed SlimCM R12. It works as it is, but after longer using It is getting sower.

I flashed kernel from this thread and phone is not booting up. It stops on black screen before boot animation.

Can you point me to threads where you found those components which work for you?
[Galaxy S Plus I9001 Android Development] fazmon:
best kernal for kk ever....:highfive:
[Galaxy S Plus I9001 Android Development] sixty4rer:
Also getting black screen and no CM boot animation. My device could never boot with any uv settings, only stock for some reason. Maybe that's the reason this time as well.

Anyways thanks for the big efforts.
[Galaxy S Plus I9001 Android Development] angomania:
THX Nice one :)
[Galaxy S Plus I9001 Android Development] Nadlehee:
Which release Version am I using?

Hello,

i'm running

CM 11-20140910-UNOFFICIAL-dev_connection_team-ariesve

Kernel Version ist 3.4.103-cyanogenmod-g5c40642christopher8383@build2.dev.xda-developers.com # 1

RAM 398 MB

and would like to install the K^kernel.

I dont know which release version this is, to download the right k^kernel kernel Can you tell me, please?

One more question I do have. I have installeds lots of apps and costumized my phone to my taste. Flashing the kernel wont change anything, right?

Im aware, that I schould do backups anyway, if something goes wrong.

Thanks in advance for replies!
[Galaxy S Plus I9001 Android Development] wilmsn:
Hello,

you schould check if your ROM already has the changed partition layout. If yes you can use the latest kernel from christopher that is made for cm11. At a point in time the partitionlayout was changed.

To find it out you can check if your storage is mounted on "/storage/emulated/0"
[Galaxy S Plus I9001 Android Development] Nadlehee:
As it is mounted on "/storage/sdcard0"

i assume i am not running a 15 or next release.

Thank you so far.

But do I know if it is a CM 11.0 Release 14?

Or could it be a previous version?

I dont want to risk anything.
[Galaxy S Plus I9001 Android Development] wilmsn:
Did you check in the setting => about the phone section? May be you will find your exact version there...
[Galaxy S Plus I9001 Android Development] Nadlehee:
Yes, i did. It gave me the informations i wrote in the initial post.:

CM 11-20140910-UNOFFICIAL-dev_connection_team-ariesve

Kernel Version ist 3.4.103-cyanogenmod-g5c40642christop...developers.com # 1

RAM 398 MB

I know now that its not a 15 or next release, but i still dont know if its a 14 or earlier release.
[Galaxy S Plus I9001 Android Development] wilmsn:
You are on Release 12

Look here:

http://xdaforums.com/showthread.php?t=2579431

==> older versions ==> 20140910 Release 12

I would recoomed an update to the newest version. I did it a long time ago and had no problems so far. Do a full backup, follow the steps in the thread and finally use the new twrp withe the changed partition management to restore.
[Galaxy S Plus I9001 Android Development] Nadlehee:
Thank you for your reply!

Hm, I think updating the whole rom would mean to much of work for me now. I have installed stuff like link2SD for having many apps stored on the sd card. I think I dont wont to do this intallation again. Was a little quirky.

But thank you very much for your help so far!

Last question: Do you expect a great improvement from installing the latest version plus KKernel?
[Galaxy S Plus I9001 Android Development] wilmsn:
You can only change to the latest kkernel with the old partition asignment, kernel with the new asignment will not work. Back to your question: No the improvement will not be big - may be it will de a little bit more safe and with some bug fixes.
[Galaxy S Plus I9001 Android Development] Nadlehee:
Hm thanks again.

So, I could install the K^Kernel - v2.9.5 -

altough i am using Release 12, allright?
[Galaxy S Plus I9001 Android Development] wilmsn:
Yes - should work.

Be shure to make a compleate backup using twrp as your first step!

If something went wrong you are on the safe side.
[Galaxy S Plus I9001 Android Development] Nadlehee:
Thank you!

I'll try it, when i find the time to do so. Maybe i will even install the latest CM version.

Danke!
[Galaxy S Plus I9001 Android Development] Nadlehee:
Dear Wilmsn, i have installed the k^kernel on Version 12

Its the exuv version and its seems to work flawlessly. I was able to set the clock speed to 1825! without any troubles!

I do notice a lot of improvement in responsivness.

Great!!!
[Galaxy S Plus I9001 Android Development] rajatsolanki007:
hey where did the performance tab go in the settings? please help not able to change settings
[Galaxy S Plus I9001 Android Development] Nadlehee:
I was so pleased with the performance improvments that I updated to version 17, again with K^Kernel EXUV.

I started to tweak and mod a little and encountered the app "L speed" which is rated very high.

I am not sure if it makes sense tu apply some of the L speed settings as they probably override the K^Kernel settings.

Does anyone has experience and can recommend the use, or some of the tweaks L speed offers?
[Galaxy S Plus I9001 Android Development] kekko123:
Which zip i should download? ExUV or UV?
[Galaxy S Plus I9001 Android Development] Rhonin86:
Simply reflash kernel and wipe cache/dalvik - after a second sometimes after a third flash the WiFi works again...

I wish you success
[Galaxy S Plus I9001 Android Development] emyoo:
:) Only the apps/configs. OK maybe it's time to make a little cleanup... let's see if WiFi will work after this. BTW Flashing UV version did not solve the problem :|

---------- Post added at 02:00 PM ---------- Previous post was at 01:58 PM ----------

Before wipe-ing data I'll try your recommendation 10x :)
[Galaxy S Plus I9001 Android Development] Marshian:
Yesterday I did exactly the steps as I described to you, you shouldn't lose data doing it. Installed applications are in /data/app and application data is stored in /data/data. If you look closely, I didn't wipe /data ;)

You do lose all system apps and maybe some system configuration (not too sure about that, but I think that would also be stored in /data).Obviously the system apps are re-installed when you install the ROM / gapps and I haven't noticed losing any configuration.

It's like a clean install of your system but without wiping your user data. Just try it before you decide to wipe data as well.
[Galaxy S Plus I9001 Android Development] emyoo:
After factory reset and flash as you did all works well.

How can you only wipe system in CWM? I know only 3 types of wipe: data/factory reset, cache, dalvik.
[Galaxy S Plus I9001 Android Development] isaak.lee05:
On the OP you said that the video playback is fully working with the Kernel with 378MB of free RAM but i cant play Videos with the 720p HD Quality. With the Kernel with 370MB RAM the 720p Videoplayback is working.
[Galaxy S Plus I9001 Android Development] dramkler:
Originally Posted by emyoo->

Hi,

just mount and format the /system partition.

Regards

GT-I9001
[Galaxy S Plus I9001 Android Development] emyoo:
Please tell me all steps for flashing a new ROM with system wipe, preserving all apps/configs, accounts etc...
[Galaxy S Plus I9001 Android Development] dramkler:
From recovery mode:

- wipe cache/dalvik-cache

- mount & format /system

- install ROM

- install gaps

- (flash kernel if one different from rom)

- fix permission

Regards

Edit:

From twr recovery go wipe-advanced, select system and wipe.

Inviato dal mio GT-I9001
[Galaxy S Plus I9001 Android Development] emyoo:
Thank you I have never used this method before :o

END of OT. Sorry Chris'
[Galaxy S Plus I9001 Android Development] herath:
USB OTG

Well, we are getting " irq 60: nobody cared (try booting with the "irqpoll" option)" in the kernel log. Looks like an unhandled interrupt to me. I am not familiar with linux kernel so I wont be able to do much without researching about it for sometime.

And I am attaching a kernel log.

Thanks.
[Galaxy S Plus I9001 Android Development] smitharro:
As usual: great kernel! You've proven to be a real Italian magician! Greetings and thanks from Holland!
[Galaxy S Plus I9001 Android Development] JohnKersten:
Amazing Job christopher.

Mille gracias.
[Galaxy S Plus I9001 Android Development] emyoo:
Now that's what I call a good score !! Thank you Chris'!!
[Galaxy S Plus I9001 Android Development] Christopher83:
Sent from my GT-I9001 with Tapatalk 4
[Galaxy S Plus I9001 Android Development] Calin:
Good job Christopher. :D

P.S can I include the kernel in my rom now because in the older version wifi won't work at the first boot

Sent from my GT-I9001
[Galaxy S Plus I9001 Android Development] Mithrandir_:
Nice job :)

Bravo come sempre ;)

Inviato dal mio GT-I9001 utilizzando Tapatalk
[Galaxy S Plus I9001 Android Development] psaikia:
Thanks for the great kernel .

Both WiFi and WIFI HOTSPOT problem is still not yet solved . If you have time please look into the matter . ( CM 11 B2 + K Kernel v 1.1 370mb)

I have attached both the screenshot.

I generally don't use stock kernel . Directly I download rom zip and replace boot.img from K Kernel ...Is this method correct or i have to flash kernel separately.

.
[Galaxy S Plus I9001 Android Development] jcah73:
Incredible. This kernel is Super fast and Smooth. Antutu score 8278 (Ondemand/Sio-Zram)

Thanks christopher, You are great
[Galaxy S Plus I9001 Android Development] smeroni68:
The method is wrong!

The kernel is compiled linaro 4.8.3 and rom 4.6... The modules included in kernel zip must be installed over the rom one!

If you invent a method be sure it is working... Please flash the zip of kernel and check again...

Inviato dal mio GT-I9001 utilizzando Tapatalk
[Galaxy S Plus I9001 Android Development] Christopher83:
Did you use the same approach also with the previous kernel version?

The above method is not completely correct, as already Smeroni told you, inside each kernel build zip package you doesn't have the boot.img only, but also the related standalone modules (the various .ko files you can find inside system/lib/modules into the zip) built with the same toolchain. One of these modules, the dhd.ko, is the module related to wifi stuff.

You can't use mixed things from stock kernel and custom kernel...

To solve you issue you simply have to:

A) Flash one of the provided kernel build zip package after the rom

or

B) If you want to replace the stock kernel inside the rom zip package, you have to replace both boot.img and system/lib/modules/*.ko files

Let me know... :fingers-crossed:
[Galaxy S Plus I9001 Android Development] psaikia:
I am extremely sorry for creating such a mess.

I reflashed the kernel and its working fine as always . Earlier also I did the same mistake . Sorry for the trouble caused.

next time i will try method B and report.

Thanks Smeroni and Christoper.

From past 1 year I was using this method and everything was working fine . I think the problem was more highlighted when Chris changed to 4.8.3 linaro to compile his custom kernel.

Ahhhh I was very wrong..:p
[Galaxy S Plus I9001 Android Development] evemir:
emyo, Christopher83, what settings from under performance menu like zram, kernel samepage etc do you use to reach such a high scores? Mine best is 8200 so far. I use ExUV 370 MB kernel. 18GHz ofcourse ondemand, cfq.
[Galaxy S Plus I9001 Android Development] smeroni68:
Change to smartassv2 and sio...

Inviato dal mio GT-I9001 utilizzando Tapatalk
[Galaxy S Plus I9001 Android Development] Tue-Tue:
Camera doesn't take pictures. Video recording and panorama works properly.

I'm on beta 2 with ExUV 370MB kernel

Enviado desde mi GT-I9001 mediante Tapatalk
[Galaxy S Plus I9001 Android Development] evemir:
I was wrong, I was using ondemand and sio. Not cfq. Changed now to smartassv2.

How about zram, kernel samepage merging, purging memory assets and 16 bit transparency.

I believe zram is very useful, I was testing 18% and 26% and din't experience any problems. 16 bit transparency doesn't seem to affect neither performance nor quality. Im not sure if other two settings are useful. Do you use them?
[Galaxy S Plus I9001 Android Development] darsh11192:
For me Camera is working properly i can take pictures too... using 378mb on beta2.. try to reflash it again
[Galaxy S Plus I9001 Android Development] Christopher83:
Hi,

which Camera app are you using?

With the stock camera included inside ADC CM 11.0 Beta 2 and with Camera JB+ there are no problems...
[Galaxy S Plus I9001 Android Development] smeroni68:
I used 18 and now I'm using 26 to test... I set only ksm... All the rest as default.

Inviato dal mio GT-I9001 utilizzando Tapatalk
[Galaxy S Plus I9001 Android Development] Tue-Tue:
Stock camera with default settings.

Just reflashed gapps, and ROM to try with stock kernel and the problem persist.

No problems at all the days before on beta 1 and k^kernel 1.0 exuv 370

Edited: I tried with another camera app and it works.

Enviado desde mi GT-I9001 mediante Tapatalk
[Galaxy S Plus I9001 Android Development] Christopher83:
Try to delete Camera data files, maybe this could help:

- Go inside System Settings -> App -> All tab

- Search for Camera app and select it, a new screen will be displayed showing app's info

- Select Clear Data (note: you don't loose your pictures, only the camera settings and cache)

- Reopen camera app and try again
[Galaxy S Plus I9001 Android Development] Tue-Tue:
Thanks for your help Chris, but these steps were the first I did when I discovered the problem.

I have two phones (I bought a nexus 4 to my wife for her last birthday), so I've done a clean installation of CM11 beta2 + 20131226 ADCT GApps + k^kernel exuv 370MB in my wife's old S+ and..... the camera doesn't work :crying:

I've been using ADCT ROMs and kernels for a year and a half with no problems.

Thanks in advance
[Galaxy S Plus I9001 Android Development] Christopher83:
If you can, post here the logcat and dmesg after you tried to take a picture:
[Galaxy S Plus I9001 Android Development] sziggins:
Hi Cristoforo,

Happy new year! All great here as I posted already at ABC's ROM thread. That separate modules is why I stopped building kernels by myself... But even my time is really short nowadays.

Really thanks for your work on our phones. Cheers!
[Galaxy S Plus I9001 Android Development] herath:
otg pen support

Hi,

Thanks for the fix to otg. But it is still no possible to mount my pen drive. Here is the kernel log

msm_hsusb_host.0: irq 60, io base 0xa3600000
<6>[ 194.052307] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
<6>[ 194.052642] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
<6>[ 194.053222] usb usb1: Product: Qualcomm On-Chip EHCI Host Controller
<6>[ 194.053527] usb usb1: Manufacturer: Linux 3.4.75-cyanogenmod-g070a5be ehci_hcd
<6>[ 194.054107] usb usb1: SerialNumber: msm_hsusb_host.0
<6>[ 194.063171] hub 1-0:1.0: USB hub found
<6>[ 194.063781] hub 1-0:1.0: 1 port detected
<6>[ 194.379455] usb 1-1: new high-speed USB device number 2 using msm_hsusb_host
<6>[ 194.533325] usb 1-1: New USB device found, idVendor=0951, idProduct=1642
<6>[ 194.533660] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
<6>[ 194.534210] usb 1-1: Product: DT 101 G2
<6>[ 194.534515] usb 1-1: Manufacturer: Kingston
<6>[ 194.535125] usb 1-1: SerialNumber: 001372995DDDBCB0E53700ED
<6>[ 194.543548] usb 1-1: rejected 1 configuration due to insufficient available bus power
<4>[ 194.544128] usb 1-1: no configuration chosen from 1 choice

I tried power safety with changing bConfigurationValue to 1 but nothing happened. Mouse works perfectly.

Thanks
[Galaxy S Plus I9001 Android Development] Tue-Tue:
Here they are..
[Galaxy S Plus I9001 Android Development] Tue-Tue:
My camera is working again.

I wipe system, cache and dalvik. Then, I flash gapps, rom and kernel in that order.... and it works.

Thank you for your time Chris.
[Galaxy S Plus I9001 Android Development] Christopher83:
Hi, thank you too!

The problem is not power/kernel driver related now, as Smeroni told me (he already has a OTG cable), at the moment an app is needed to force the mount of the pen drive, he used OTG Helper.

In the meanwhile I'll check if something should be done on rom/kernel side...
[Galaxy S Plus I9001 Android Development] -Vinne2-:
Thank you Christopher83 for your great work to make this kernel and for quick adaptation to new beta2 version of CM11 :D Thank you very much!
[Galaxy S Plus I9001 Android Development] klarkent:
Hi I'm having some problems with wifi connection. It is always connected but when the screen is off for a while no matter what I select in settings it's like the connection is being suspended. Sometimes I receive a message from whatsapp after an hour... I'm not using greenify.
[Galaxy S Plus I9001 Android Development] -Vinne2-:
Maybe Settings → WiFi → Advanced → Keep WiFi on during sleep?
[Galaxy S Plus I9001 Android Development] klarkent:
No it has the right setting...