yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Original Android Development] C4SCA:
everything is as it should be i think...

:(
[Nexus 4 Original Android Development] C4SCA:
some more screenshots so u amy understand better how are my files organized, what commands i ran and the errors :fingers-crossed:

do i need the toolchain itself? (gcc-linaro-4.8-2014.04)

or install anything else?

i think no, but since im a rookie at this, doesnt hurt to ask :P

once again thanks for the help
[Nexus 4 Original Android Development] mrg666:
Can you post the screenshot after the following command?

ls -al /home/zacuc/toolchain/bin

You need the toolchain itself installed/available at the path given above
[Nexus 4 Original Android Development] C4SCA:
there u go

"You need the toolchain itself installed/available at the path given above": to do this i just need to download the toolchain (from here https://launchpad.net/gcc-linaro/+milestone/4.8-2014.04 ???), extract it and copy the resulting folder into /home/zacuc/toolchain/bin ?

:highfive: once again, i appreciate the help... always learning
[Nexus 4 Original Android Development] mrg666:
You have the toolchain at the correct place. Let me try to find a reason for not finding it. :confused:
[Nexus 4 Original Android Development] jawz101:
I finished going through franco's kernel repo & committed another 72 commits to my fork for a total of 105

As long as I avoided primarily driver, governor, and random custom Franco features and these went seamlessly.

I'm just a cherry picker so mrg666 would note if these are significantly beneficial.

Regardless, @mrg666- here's my repo for reference if you to pull anything of interest

https://github.com/jawz101/android_kernel_mako/
[Nexus 4 Original Android Development] mrg666:
Thanks, jawz. I will check your repo but I will not have time this weekend for a new release. There are no pressing issues right now and I want to take a little slow until the mr2 source released which should be happening in a couple of weeks.
[Nexus 4 Original Android Development] :
Is it? Yay!

But how do you know this? Forgive my obliviousness!
[Nexus 4 Original Android Development] mrg666:
It was just a projection based on speculations/news and previous releases. Do you think I am off the mark?
[Nexus 4 Original Android Development] :
No, I hadn't considered the timings at all! Interesting. I hope you're prediction comes true!
[Nexus 4 Original Android Development] Federico_96:
I just would like to thank you for your work, your kernel is the only which lets me go past 4 hours of SOT with my usage (I'm using PSX v 4.0.4), really happy to have tried it
[Nexus 4 Original Android Development] mrg666:
I am glad that MiRaGe works well for you.

I will post the new build in the weekend since several patches piled up already while Google is dragging the 4.4.3 update.
[Nexus 4 Original Android Development] TheNerd:]:
It works mighty fine for me too.. Thank you
[Nexus 4 Original Android Development] mrg666:
New builds are available in the OP

- Linux 3.4.90 and 3.4.91

- net updates from AOSP common kernel

Update recommended due to important bug fixes in Linux 3.4.91

Enjoy!
[Nexus 4 Original Android Development] TheNerd:]:
Wow I've tried mirage before but what I'm experiencing is on a whole new level!

P.S. for some reason I pronounce it meer-a-gay haha
[Nexus 4 Original Android Development] mrg666:
There wasn't any performance enhancement changes in the last build, maybe you didn't try for a while. Anyway, thanks for the comments and welcome back to MiRaGe ;)
[Nexus 4 Original Android Development] TheNerd:]:
It was way back before you killed the gentle fair sleepers bug that messed up idle sleeping. I had bad battery because of this, but now it's much better.
[Nexus 4 Original Android Development] ihancioglu:
Hi Mirage, Is it possible to compile a kernel from pure CAF sources? I tried yesterday but a few errors board-mako.c.
[Nexus 4 Original Android Development] ihancioglu:
Hi Mirage,

Did you revert simple ondemand governor for gpu?

Just checked at /sys/class/kgsl/kgsl-3d0/pwrscale/governor is ondemand.

As far as I remember it was simpleondemand.

Thanks,
[Nexus 4 Original Android Development] mrg666:
Yes, it was reverted about one month ago. I am still not sure but that elusive flickering problem seems to be related to that commit. After reverting, nobody complained again. I want to go back and test again when I can find time.
[Nexus 4 Original Android Development] ihancioglu:
I rarely face flickering problem on Mirage. Maybe you can use conservative governor for gpu.
[Nexus 4 Original Android Development] mrg666:
You can compile but there will be even more problems after resolving board file problems such as missing device drivers, incompatible libraries/drivers with Android. It is certainly possible but probably requires considerably more work than just compiling.
[Nexus 4 Original Android Development] abubakr125:
Any chance for a CM version?
[Nexus 4 Original Android Development] mrg666:
I can't post a CM kernel without testing and I don't have time to juggle multiple ROMs. Sorry.
[Nexus 4 Original Android Development] Faith_G:
Mediafire is not working for me, it downloads 94k and stops. Can you add a mirror on Dev host or goo.im?
[Nexus 4 Original Android Development] mrg666:
Please try again. The download links are working.
[Nexus 4 Original Android Development] Faith_G:
I finally got it by using a PC. Chrome on my phone did not work in mobile or desktop mode.
[Nexus 4 Original Android Development] mrg666:
Here is a test build with the following changes

- f2fs added/enabled

- gcc 4.9 base Linaro 2014.05 toolchain

I would appreciate if you can test and let me know.

Cheers!

PS: This is not the OC version. I will post the OC version after testing.

PPS: I am working on building my Android, and f2fs has been added for that reason.
[Nexus 4 Original Android Development] ihancioglu:
Thanks for the information,

Would you please give us a little tips about your project? Also please let us know when its ready.
[Nexus 4 Original Android Development] mrg666:
Thanks! I am only building straight from AOSP for now to experiment with linaro toolchain and f2fs. I am not done yet and I am not sure it will turn into a project. If I add more value, I will give it a name and share for sure.
[Nexus 4 Original Android Development] mrg666:
MiRaGe boots with KTU84L but WiFi is broken. I will update the kernel as soon as Google releases the source code. BTW, SuperSU 1.94 still works fine.
[Nexus 4 Original Android Development] guimendes:
I entered into the sources page and it seems the code is already available.

EDIT: Sorry, I checked again and it's not there yet :(
[Nexus 4 Original Android Development] guimendes:
Source is released! https://android.googlesource.com/kernel/msm/+/android-msm-mako-3.4-kitkat-mr2
[Nexus 4 Original Android Development] mrg666:
Thanks. I am testing it now. I will post soon.
[Nexus 4 Original Android Development] mrg666:
MiRaGe KTU build is available in the OP. Google didn't add much to this release.

- synced with mr2 (many of the patches were already commited)

- built with gcc 4.9.1 based Linaro toolchain

- f2fs filesystem support added

Everything works for me. Please try and let me know if there are any problems. When I first flashed KTU with the original kernel, I thought it was pretty good. But, now that I am back to MiRaGe, I know why I was using my custom kernel :)

Enjoy!
[Nexus 4 Original Android Development] Hoochie_Coochie:
I'm just waiting on the slim team to push out a KTU ROM, then I'm on this. Thanks
[Nexus 4 Original Android Development] jawz101:
Do you notice anything with f2fs?
[Nexus 4 Original Android Development] mrg666:
When I just started testing it, KTU update was released and I flashed the update with ext4. I haven't had time to do benchmarks. But, based on my brief use, I didn't notice much/any difference with f2fs. I am not sure when I will have time to try again and I don't feel much interest anymore.
[Nexus 4 Original Android Development] TheNerd:]:
Can you keep the 4.4.2 builds? I'll update my rom soon enough, but right now is not the time, and I want to stay with this amazing kernel. Please do.
[Nexus 4 Original Android Development] mrg666:
Sure here are the latest 4.4.2 build links.

5/23 oc kernel: http://www.mediafire.com/?tnu48afl1pjb7aq

5/23 std kernel: http://www.mediafire.com/download/42ryi8lh9a4i7qe
[Nexus 4 Original Android Development] jmtjr278:
[MENTION=4203114]mrg666[/MENTION] I can seem to get your newest kernel to boot using all f2fs. Just sticks at black Google screen. Any insight?
[Nexus 4 Original Android Development] halfbytecode:
[MENTION=4203114]mrg666[/MENTION] Yes, I have the same issue.
[Nexus 4 Original Android Development] mrg666:
Can you try extracting the zimage from boot image and flash with the any kernel updater linked in the first post? I am away from home right now without access to my Linux workstation. Sorry that I can't prepare the any kernel updater. BTW, did you try the 4.4.2 test build?
[Nexus 4 Original Android Development] jmtjr278:
Attempted to flash the zimage with the same results, stuck at black Google screen.

I did not try the 4.4.2 test. I can try though if it would help. I have a 4.4.2 backup ready to go.

Just tried test 4.4.2 sane result, stuck at black Google screen.
[Nexus 4 Original Android Development] mrg666:
This should be a ramdisk problem. Let me fix it but I don't have time or access to my workstation right now. I will post here once I can fix it. Until then, let's consider f2fs is not functional ... yet. Thanks.
[Nexus 4 Original Android Development] jmtjr278:
No, thank you for being so cool and fixing MY problem. I know you don't use f2fs so its nice that you will address this issue.
[Nexus 4 Original Android Development] mytie:
Hello, thank you for this great kernel, I found it super fast and cool and having tried many other kernels I believe you have achieved the best battery life! The only thing is, my hardware keys have started to fail working and I desperately need dt2w in order to save what is left, can you please enable it in one of your future ver. or help me enable it? Thank you in advance
[Nexus 4 Original Android Development] marwan91:
Will i lose root if i install this kernel on PA 4.4.3??
[Nexus 4 Original Android Development] The Zel:
No, you won't
[Nexus 4 Original Android Development] mrg666:
I don't like saying no but I really don't want dt2w on my phone even if it is disabled. It is a very problematic hack that will fill this thread with so many complaints such as freeeze, lag, battery life problems. Just check the other kernel threads and you will see. Sorry ...

BTW, did you see this
[Nexus 4 Original Android Development] xenyz:
Another option is to use an app I love called Gravity Screen. I haven't had to use the power button in ages.
[Nexus 4 Original Android Development] jawz101:
I like an app called Screebl but it's more for keeping your screen on when using your phone. Gravity Screen is nice too. I think either app is essential on my phone
[Nexus 4 Original Android Development] xenyz:
Gravity Screen includes this feature as well. It really is an essential app on my device. I use the paid version to disable it for media players, YouTube, etc so it doesn't lock the screen if I happen to be using the device while lying down, a minor annoyance you may find. :)
[Nexus 4 Original Android Development] mytie:
thanks for the responses, I really, really don t feel like cracking my N4 open,thanks for the heads up though,maybe i will try it after I get my next phone..

Gravity is already installed,I ll see how it goes battery and everyday use-wise,damn this kernel gives me almost double SOT I wish I can keep it,

Thanks again,cheers
[Nexus 4 Original Android Development] marwan91:
Hey i just flashed the kernel on PA and i lost root.. And im not willing to flash chainfire su.. Cuz PA have superuser built in
[Nexus 4 Original Android Development] mrg666:
You can reflash the ROM in the recovery without wiping anything. This will restore your kernel and boot image.
[Nexus 4 Original Android Development] mrg666:
MiRaGe builds are updated in the OP

- Linux 3.4.92, 3.4.93, 3.4.94 (very large update)

- KTU ramdisk sync

Enjoy!

PS: I will be away for 3 weeks and my replies could be late. Please help each other in the mean time. But the kernel is in fully stable state and this thread will most probably be very quiet anyway ;)
[Nexus 4 Original Android Development] jmtjr278:
[MENTION=4203114]mrg666[/MENTION] any word on f2fs? Not rushing you just wondering.
[Nexus 4 Original Android Development] mrg666:
Sorry, I didn't have time for f2fs testing yet.

My plan was just copying the MiRaGe zImage (it can be extracted from the boot image) to a working any kernel updater to test. You could make it work before me if you can check the moob kernel thread. [MENTION=4128576]bedalus[/MENTION] knows more than me on configuration of init script files for f2fs.
[Nexus 4 Original Android Development] jmtjr278:
Thanks. Will do. Have a nice trip.
[Nexus 4 Original Android Development] criminalzen:
thanks for your work.
[Nexus 4 Original Android Development] lapis21:
Yessssssssss!!!!!!!!!!!!!

great. i loved the battery life on it! There are no two things: color and sound control from Franco :(
[Nexus 4 Original Android Development] Federico_96:
Install viper 4 android it's awesome :good:
[Nexus 4 Original Android Development] chewu.pg:
guys, i cant find hotplug settings in trickster, is that removed?
[Nexus 4 Original Android Development] TheNerd:]:
Mirage has its own autosmp hotplugging. Non-configurable by the user.
[Nexus 4 Original Android Development] xenyz:
You can configure it through sysfs, just not through Trickster MOD.

Search for autosmp in /sys to find it; I'm not on MiRaGe at the moment.
[Nexus 4 Original Android Development] TheNerd:]:
Oh thanks for the clarification, but this kernel is more of a flash and forget kernel.
[Nexus 4 Original Android Development] mrg666:
FYI: No kernel update is needed for 4.4.4. The 4.4.4 update comes with the exact same boot image with 4.4.3.
[Nexus 4 Original Android Development] xenyz:
[MENTION=4203114]mrg666[/MENTION] some recent ondemand changes by [MENTION=3750240]stratosk[/MENTION] for your consideration with a possible .95 release?
[Nexus 4 Original Android Development] mrg666:
These are very interesting commits, thanks. I am away from home (and my linux ws) now but I will include them in the new build next week.
[Nexus 4 Original Android Development] mrg666:
New build is available in the OP.

Changes:

- Linux 3.4.95-96

- cpufreq: governor: Be friendly towards latency-sensitive bursty workloads (from Linux 3.16)

- cpufreq: ondemand: Eliminate the dead band effect in low load (thanks to [MENTION=3750240]stratosk[/MENTION])

- ext4: Speedup WB_SYNC_ALL pass called from sync(2) (from Linux 3.15)

Cheers!
[Nexus 4 Original Android Development] apatal:
Thanks for keeping this updated and for sharing your work. Been running this on my N4 exclusively.I really like how it's unique in it's philosophy. :)
[Nexus 4 Original Android Development] :
Any hope of new kernel source with android L?
[Nexus 4 Original Android Development] mrg666:
I think we have just seen the final kernel update for Nexus 4. Any future update would be a nice surprise for me.
[Nexus 4 Original Android Development] mrg666:
Thank you for stating your appreciation. I am glad you find this work useful.
[Nexus 4 Original Android Development] chewu.pg:
Partial android L source code has been realesed for n4, correct me if i am wrong, anyway, i hope those new binaries are not for a "stability" update. Do you think we ll be seeing any noticable improvments in android l kernel or google decided to focus on ui only :)
[Nexus 4 Original Android Development] clockworkstop:
Good question, I'm interested in the answer as well. And specifically, if Project Volta includes kernel optimisations. I'm guessing it does.
[Nexus 4 Original Android Development] mrg666:
There is no N4 kernel source released regarding Project Volta. But I will backport the relevant optimizations released for other devices. The project is very new yet.
[Nexus 4 Original Android Development] chewu.pg:
We should take it easy for now, i think L for n4 is on work so google might surprise us with the actual official update :D
[Nexus 4 Original Android Development] apatal:
I think the N4 getting the update to L is more or less confirmed. It wouldn't make sense for them to push partial source for the N4 into AOSP along with the other Nexus devices, only to pull the plug in the end. :)
[Nexus 4 Original Android Development] mrg666:
I didn't follow the L news closely. It is great that N4 will probably receive it. Thanks for letting us know
[Nexus 4 Original Android Development] mrg666:
New build is up

- Linux 3.4.97 and 98

- jbd2: calculate statistics without holding j_state_lock and j_list_lock

- tcp: auto corking

Cheers!
[Nexus 4 Original Android Development] haget83:
any experience using mirage on L porting?

edit// after 15 min no boot at all.

So i think is too early for use mirage on android L :-I
[Nexus 4 Original Android Development] DontPushButtons:
The ramdisk required a lot of tweaking to get booting on L, so I think that's where the conflict is. Most of the any kernel installers work though, I believe.
[Nexus 4 Original Android Development] Jagdish84:
I'm having a weird experience using this kernel... Tried it on 2 different roms and the problem still persists... It's with a specific app called ultimate dynamic navbar that just refuses to work while im running this kernel... How can I debug it?

Sent from my caseless Nexus 4, because I believe in myself
[Nexus 4 Original Android Development] ofan666:
Hi, the last 2 kernel i tried throttled down (when get hot) too much under heavy 3D gaming in long period. I hope u can fix this, since this my fav kernel, currently i switch to semaphore. Thx
[Nexus 4 Original Android Development] mrg666:
I agree, heat and battery drain were higher in the last two builds. Two commits for ondemand governor were shooting the CPU to higher frequencies. I have reverted them and rebuilt the kernel. The new builds are now available in the OP. I have to go back and check those commits again. I think I did something wrong with their adaptation in MiRaGe. Anyway, until then, they are reverted and CPU frequency is at normal levels. Sorry and thanks for confirmation.

Everybody, please update.
[Nexus 4 Original Android Development] ofan666:
Thanks a lot ??
[Nexus 4 Original Android Development] TheNerd:]:
Bump for this lovely kernel
[Nexus 4 Original Android Development] xenyz:
It might have something to do with the sampling rate and the up threshold. I believe Semaphore uses 20000 and 90 respectively, and Mirage uses 10000 and 95.

I was running with the latest commits on naruKa (modded Mirage) with stock ramdisk which has sampling 50000 and up threshold 90 and didn't notice any extra heat or battery drain.

In fact, I don't think you can get better battery life than with this kernel (or its modded cousins) and latest ondemand.
[Nexus 4 Original Android Development] mrg666:
The CPU frequency was spending more time at higher frequencies in the previous two builds. The sampling rate and up threshold were at the same default values wit all builds; they never changed. The two commits I have reverted were causing the higher frequency distribution. You might be right that the battery life impact could be negligible but there seemed to be a little more heat. Anyway, I have reverted until more testing is done. I prefer the 10000 and 95 parameters of ondemand since these work better with autosmp hotplug driver. Autosmp directly follows whatever the governor is doing. If the governor is too jumpy, autosmp becomes jumpy with plugging the extra cores. This is by design but I need to be careful with using the optimal governor settings. I will stay with 10000/95.
[Nexus 4 Original Android Development] mrg666:
There is a new build in the OP

- Linux 3.4.99

- many small backports, please see the repo for details

Enjoy!
[Nexus 4 Original Android Development] Fenvarien:
Great! Thanks for the new build :)
[Nexus 4 Original Android Development] ziovelvet:
I have a Nexus 4 with Purity rom and I managed to flash the overclock Mirage kernel from recovery.

I was coming from hells doctor kernel and as explained in the first post I haven't wiped cache nor dalvik-cache.

Opening SuperSU I get this message:

"There is no SU binary installed, and SuperSU cannot install it. This is a problem!

If you just upgraded to Android 4.3, you need to manually re-root - consult the relevant forums for your device!"

I know that Mirage is primarily for the stock ROM, but if anybody could help me it would be great.

EDIT: I've solved reflashing SuperSU zip from recovery
[Nexus 4 Original Android Development] Phoenix Wright:
Congratulations for the kernel, it's truly amazing! Better than stock performance with less battery consumption and heat. I used the UV version for a day (I have a faster binned soc). It ran perfectly but this morning I had a kernel panic. I got the last_kmsg for you, it's attached.
[Nexus 4 Original Android Development] mrg666:
Faster bin cpu doesn't necessarily undervolt better since it is already running at a lower voltage by default. Can you please try the standard kernel? Your kmsg seems like hardware instability to me. And don't worry standard kernel will not drain battery and heat more. Battery and heat improvements are not achieved with just undervolt.
[Nexus 4 Original Android Development] xenyz:
I have a faster bin CPU as well, but I can only undervolt by 75 mV. Stock voltages are just fine, undervolting is overrated. :)
[Nexus 4 Original Android Development] C4SCA:
Thanks for at least taking it into consideration :)

sent from my NEXUS 4 tasting a revamped cooking recipe of Jellybeans (4.3).
[Nexus 4 Original Android Development] sellers86:
I'll try the new kernel tomorrow and report back. Thanks mrg!
[Nexus 4 Original Android Development] cryingrock:
The good performance of this kernel surprises me, thanks for the hard work!:)
[Nexus 4 Original Android Development] sellers86:
Unfortunately, still no OC. But it's not even necessary, so its no big deal. Kernel is running great with no problems other than that, good job man.
[Nexus 4 Original Android Development] mrg666:
Thanks for testing. I will probably revise the CPU OC to decrease the max limit to 1728 MHz from 1890 since thermal throttling is very hard to adjust at frequencies after 1728.
[Nexus 4 Original Android Development] howard bamber:
Hi been using from day one. I'm on stock rom and love your kernel. It's made my phone run smooth and cool.

It's a real asset to the handset. I've not used another one as there's been no need

Sent by mobile telephone.
[Nexus 4 Original Android Development] mrg666:
Thanks! I am waiting for the kk OTA and kernel source to be released. I will update MiRaGe for 4.4 OTA, hopefully soon.
[Nexus 4 Original Android Development] mrg666:
I am frequently getting requests to add sound patches in the kernel. I agree that the sound is not good but there are solutions.

I am using the Viper4AndroidFX as a replacement sound processor. I recommend giving it a try at the following link.

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

You need to go to the sound options and select ViPER4AndroidFX to use this sound processor. There is plenty of information at the above link.

With this available, I am not planning to add any sound patches.
[Nexus 4 Original Android Development] MidtownHD:
[MENTION=4203114]mrg666[/MENTION] interesting seeing you here! I was a big fan of yours when I was still using the Optimus V last year.
[Nexus 4 Original Android Development] mrg666:
LOL, thanks! Nice to find you here.