yashsingh1/xdaforums huggingface dataset:
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ffolkes:
Thank you very much for the suggestions yesterday, but it looks like not using the _64 toolchain was the problem.

New problem, it boots to the download mode screen saying boot failed. I thought I'd start simple to troubleshoot. If I break apart one of your images (14 MB) and rebuild it with:

mkbootimg --kernel twisted-zImage --ramdisk twisted-ramdisk.cpio.gz -o boot.img

The resulting boot.img is 11 MB, whereas yours is 14 MB, and it fails to boot. I'm not sure why it's several MB smaller. I looked at your script, but the image generation is in another script it seems. Am I using an old mkbootimg or something? I don't know could account for 3 MB at the mkbootimg stage. I also tried using unmkbootimg to get the other flags shown below, but that didn't help.

--base 0x1dfff00 --cmdline 'splash=silent console=ttyHSL0,115200,n8 androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3' --pagesize 4096

Thanks again for any suggestions.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Kernels now use DTB. The other script handles that. You also may need a new mkbootimg if you have never dealt with DTB. Older binaries don't include the parameters.

In all honesty, most of these questions can be answered just by looking at the commits in the stockish repo. It doesn't contain all of the extra modules and modifications, but it has the same core changes to build it. If 50 commits seems like too much to dig through, you may not want to develop kernels. You will typically be wandering through kernels with 1K+ commits looking for one change.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] fifapro23:
:(

Still no luck with the new version.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Nothing was changed in respect to that issue as you have noted by replying to the same post both times.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I just read this statement again and realized this is our first real case of PEBCAK

The minimum is the absolute lowest the cpu is allowed to drop.

The maximum is the absolute highest the cpu is allowed to increase.

It is a range, not strictly one or the other.

If you set your min to 268 and max to 2.5, it is not 268 or 2.5 only. It could also be anything between them, such as 1.5 or 422

Yankeractive tends to favor 1.5, but that is in the governor design. It's something that will eventually be adjusted during cleanup.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] Keithgordon:
sorry
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
I reverted back to 20.47 from 22.12 because it was sticking at 1.4. Also for fast charge options, what does failsafe do? And do we just keep fast charge to disable or force ac?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I haven't looked into failsafe. I used the defaults from the Note 3 for that since I never use it.

Depends if you use it or not. Disabled is will not boost USB or wireless charging. Force AC will boost them to emulate an AC charger.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
Ok now having the 1.4 sticking on 20.59. Reverting to earlier today.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
The update was only posted about 5 minutes ago. It will show 1.4 when you touch it because that is the touch boost.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] shawn01:
How do i download your kernel i csnt figure out how to find it.. it just keeps tskimg me to mega website????
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
If you don't feel like looking back at the big discussion in the dev thread on issues with Mega, that is the alternative.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] shawn01:
sorry im struggling here. I installed twrp and booted into recovery and now i cant boot my phone back it goes nack to twrp but something comes up saying kernel is not seandroid enforcing set warranty bit: kernel. I never fladhed anything but twrp. So im hoping to find stovk kernel zip so i can flash fro, twrp..
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
If it says warranty bit is kernel, that isn't booting back into recovery, that is a normal boot. You just have to be patient until it finishes. The downloads here are not the stock kernel anyway. Both versions are modified kernels.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] shawn01:
It goes back to trwp recovery every time
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Your best bet would be to reinstall the recovery and the stock kernel from the official release. Something didn't install right and flashing modified stuff over it is probably only going to make matters worse.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] tooandrew:
I wasn't asking for help, simply reporting something i thought had fixed my problem. Trying to be helpful, i have read a few pages of this sprint discussion thread, but i did not notice you meant for reports to be posted here. i apologize for having cluttered your thread, and i assure you, my intention was purely to be helpful, and not at all to pester you. i appreciate the work and the time you put into this device.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
It wasn't your post specifically. Everyone was dumping everything in the main thread. The split was intended to provide one area for development (building source and code-related stuff) and one for general use (configuration and download-related stuff). It has ended up with 7 threads to talk about being stuck at 1.4
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] tooandrew:
is there a changelog somewhere that i've missed? jw.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Github. It gets too tedious and long to copy and paste 100 changes a day.

http://playground.loungekatt.com/index.html#statistics gives the last chunk of commits in a simpler outline but even that doesn't cover everything.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] egodriver07:
Thanks for all the work you put into this today getting the issues worked out with the getting stuck at 1.4. Now scaling range tops out at 2457. Otherwise the newest update is running smooth. Thanks again. Look forward to your updates every day.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
That will be fixed shortly
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] egodriver07:
No problem. I know you're on it! :)
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I think this was resolved in the last update. I didn't realize the hardlimit global max isn't available in the typical UI for setting it up.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] egodriver07:
Yeah. Seems to be fixed. Whatever I set my max to is what it touches. But umbrella core was a little unstable for me this morning at the gym. Was listening to music with Spotify while screen off and music skipped and paused and I had a hard time getting screen to wake a couple times. Eventually it all stopped and I had to force reboot. I switched to interactive governor a while ago and everything is smoother, as of course I'd expect it to be on that governor anyhow. But umbrella seemed not to throttle up as fast for the demand during the time I was on it. But also wouldn't scale down too low during minimal use it would hover more around 400. Of course that may be how you want it and designed it which is fine by me. That's why we have the different choices. Thanks for checking in on my issue though.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
That is how it's designed. It's meant to sleep like the dead
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] egodriver07:
Then I think a name change may be in order. Zombie core? Haha.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
[Kernel] Dealer's Choice [Sprint Discussion]

config CPU_FREQ_GOV_UMBRELLA_CORE
tristate "'umbrella_core' cpufreq policy governor"
help
'umbrella_core' - This driver adds a dynamic cpufreq policy governor
designed for latency-sensitive workloads.

The governor is based on interactive to provide a [b]resident[/b] controller
which interprets unnecessary battery drain as [b]evil[/b].

It's implied in the source lol
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
Is there any way to just disable the hard limit? Would I set it to ignore, or refuse?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
No, there is currently no way to fully disable it. I started to add one but it was a huge lag.

On the next build, the min is absolute min, the max is absolute max, and the only thing you may want to tweak is screen off max.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] onekoolbrotha:
Sorry for the noob question. But how do I find this kernel
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
http://xdaforums.com/showthread.php?t=2915824
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] dmunseyautotech:
everytime i click on the sprint kernel on the first page it just reloads the page. Won't let me download the kernel.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Which link are you clicking?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] dmunseyautotech:
The list under all variants highlighted in blue. The sprint one. I'm i not in the right place?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
That's for support (this thread). The downloads are under the binaries heading in the hidden box.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] dmunseyautotech:
I don't know how i missed that the first 15 times lol
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] pbedard:
Todays newest sprint kernel is laggy even after cleaning the caches
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
But the question is if that is intelli-thermal v2 in general or if more can be done with it...
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] pbedard:
Not sure
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I didn't expect an answer but more could be done

I'm building new versions that will hopefully resolve it
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] shawn01:
Can I get a link to your paid cpu app? That would be fantastic!!!!
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I am not permitted to provide links to it. Sorry

I think I can still say that I release everything I develop, whether it's kernels, apps, or libraries, under the name LoungeKatt and all my kernel-related projects are tagged as StarKissed.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
Getting reboots and stuck at animation with the past 2 releases. Reverted back to 16.44 from 11/11. Wiped caches to flash as well.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Well the last_kmsg is fixed on the latest release but not having the sprint version or that issue, not much can be done about it but guessing
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
Flashed newest... again problems. When it does boot, Wanam settings don't always apply. The phone didn't reboot, but it was very laggy. I wanted it to reboot so I could post last_kmsg. Waking the phone was the most lag. I'm not complaining by any means, just posting my results.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
That sounds like the secure storage issue. You may need to edit your build.prop before flashing. The last version increased all of the values. To have that much lag with higher defaults is a paradox.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
Do u mean edit like in one of your OP's. That is done, and permissive ticked in Wanam, and it says permissive in device info of faux clock.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I have to look up the exact value but it's secure storage. I think that is the one I didn't include
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ffolkes:
I've been running into problems. The latest 11-16 build loops before showing the GN4 logo, and when it did boot once it was full of:

tons of this:
<6>[ 14.432451] chmod (1566): undefined instruction: pc=4018b548
<6>[ 14.432461] Code: ea000002 00000000 f26ee1fe e12fff1e (ee190f1d)

And dozens of these:
<4>[ 88.860712] [<c010ca5c>] (unwind_backtrace+0x0/0x11c) from [<c0109e4c>] (show_stack+0x10/0x14)
<4>[ 88.860734] [<c0109e4c>] (show_stack+0x10/0x14) from [<c0112408>] (__do_user_fault+0xcc/0x148)
<4>[ 88.860756] [<c0112408>] (__do_user_fault+0xcc/0x148) from [<c0b79718>] (do_page_fault+0x374/0x3ec)
<4>[ 88.860775] [<c0b79718>] (do_page_fault+0x374/0x3ec) from [<c0100268>] (do_DataAbort+0x34/0x12c)
<4>[ 88.860792] [<c0100268>] (do_DataAbort+0x34/0x12c) from [<c0b77ff4>] (__dabt_usr+0x34/0x40)
<4>[ 88.860800] Exception stack(0xec7c1fb0 to 0xec7c1ff8)

And later on:

<1>[ 92.787679] Unable to handle kernel paging request at virtual address 00100100
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Something in Linux 3.10.13 isn't a fan of the Sprint device. There may not be any working versions for a while. The errors you are posting relate to stuff that isn't part of any of the custom features. That is all part of the core Linux kernel.

I'm sure if you revert the Linux updates, it will work again. That isn't something I can do right now, though.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
Yup I was thinkin it was something with the new version of Linux too, I'm running 16.44 from 11/11 and it's running great.... still I'd like to move forward with everyone else and not be stuck on just 16.44. Wouldn't want to miss out on all your upcoming features and work.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I'm compiling one more test before I put Sprint on hold. From everything I've seen the issue was common to Linux 3.10.13 so I went a step back to 3.10.12. If that doesn't resolve it, there is not much else I can do until I have time to sit down and go through the updates line by line to see what is causing the issue.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ffolkes:
Thanks for your attention, but I don't think that's it. I was suspicious of a few 3.10.x commits too, but I've gone back and rebuilt step by step from your repo. I'm up to "readahead: make context readahead more conservative" and just did a make clean/make and everything seems fine. I'll let you know if I find anything.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
I'm going to go bang my head on the desk for a while and see if it helps.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ffolkes:
Huh? No, it was to tell you that before I went to bed in case it rang a bell when you saw it, then get some sleep, then wake up about 5 hours ago and spend 45 minutes per build trying to track down the problem to help you since your subsequent posts made it clear you didn't have the time or device. Then, when I definitely could find a safe point I shared it with you in case you were still interested. You said you were doing one test build and giving up, and that post was before I was even awake.

Anyway, I just noticed CONFIG_INTELLI_THERMAL_V2=y adds about 10 seconds to the time between the GN4 screen and the boot animation starting. I was wondering if you noticed that delay on your device as well? I found out that overzealous throttling stuff from kmsg was from my config errantly using CONFIG_INTELLI_THERMAL instead of _V2. Now the thermal throttling works properly, but there's the boot delay.

---------- Post added at 07:35 PM ---------- Previous post was at 07:18 PM ----------

Actually now I see the whole problem appears to be related to CONFIG_INTELLI_THERMAL_V2. I disabled it and no more errors, reenabled it and it spews them out again.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ryanalan82:
I was having that boot animation delay as well with the past couple builds.... except today's 12.03, which just bootlooped and never booted into android.

Also thanks for figuring out what's wrong.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
They are separate issues. When reverting back enough to find out the i/o changes cause the error, the fix for intelli-thermal was also removed. It's hard to follow with the issues flowing into each other across three threads. I'm working on fixes.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Removed the readahead change since the issue appeared after the readahead was reduced with that change present but not when it was that way before. Outside of that, all other changes were values or reverted later.

Lag shouldn't be an issue, as quadrant just returned 24k with intelli-thermal v2 enabled and running.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ffolkes:
Thanks for looking into this. Even with all the latest commits the errors and delay still persists, in both your latest img and my now-uptodate test builds. I timed the boot delay, and it was about 22 seconds longer than normal. And the error is the same as what I posted before. When it happens (every few seconds) the entire system lags for about 250ms, and sometimes randomly reboots. I put some debug code in intellithermal_v2, and nothing seems to ever run, however the sysfs entries are there. I'm thinking the long boot delay might be a clue that something isn't initializing right in intellithermal? If you aren't experiencing this, do you have any suggestions for any useful debug code I can put in intellithermal_v2 to send you?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
If it boots at all that is good enough until I have more time.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] pongoface:
Umbrella. Found this Chinese kernel today for the note 4. Runs extremely smooth but doesnt have sprint connectivity in it. Found it on xda n4 echoe rom china. Might have some answers in it for you or not. Not a developer here just a fan. BTW I am using your stockish sprint kernel for my appradio unchained setup. Thanks alot. It is a great kernel just lags once in a great while. Your awesome. Thanks alot.

https://mega.co.nz/#!axx2AYSb!DoK2WKO_Fn456ksKWvGApILeVDRNmcmNADIC2MdAieQ
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Not sure what you want me to do with that.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] pongoface:
Is there a way to make that kernel work with sprint radios? Is what I asking is all? No biggy. Dont waste your time. Ill research how to change it. Its plow season so ill have so time to kill.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Sprint is touchy. It may be possible with a modified ramdisk, but you may have to recompile the kernel. I am trying to stick with building my own kernel or helping others build one, but not porting premade kernels. That makes the whole process of building one myself a little pointless if I go port someone else's.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ffolkes:
Ok, thanks. If intellithermal isn't working, will qpnp-temp-alarm take over to protect the SoC from thermal damage in a worst-case-scenario?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] ffolkes:
After much testing, I've observed the following:

The intellithermal kmsg errors, all the random FCs, and the 250ms lags went away after removing this from the ramdisk:

rm -f /dev/urandom
ln -s /dev/erandom /dev/urandom
rm -f /dev/random
ln -s /dev/erandom /dev/random

I tried what I used in my other kernel, and that fixed the above problems, but instead new problems started - opening the browser and loading a page would consistently result in 70% loading, then a FC. Removing it altogether fixes all the above problems, but then of course you lose the optimized random generators.

chmod 644 /dev/frandom
chmod 644 /dev/erandom
mv /dev/random /dev/random.ori
mv /dev/urandom /dev/urandom.ori
ln /dev/frandom /dev/random
chmod 644 /dev/random
ln /dev/erandom /dev/urandom
chmod 644 /dev/urandom

Intellithermal still likes to crash (random reboots) if things get too hot, then it won't boot at all until things get cooler. I don't know if this gives you any insight, but disabling core_control_enabled in probe_cc() eliminates the huge boot lag. So I guess that means the driver at least loads but there must be a problem with the hotplugging aspect. I think random reboots still persist with _v2 even with core control disabled, but it was been a while since I saw one. I'll see what changes over the next few hours.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Can we move the posts about your kernel build to the building thread to not confuse people?

I get you want to fix your issues, but that's exactly why that thread exists. Plus it'll be seen by all kernel devs.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] shawn01:
Twistedumbrella, I was hoping you could private message me I had a couple of questions... thanks for your time?
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
Sorry, but my private messages are disabled.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] gundal:
Hey umbrella, since Canada doesn't have its own dedicated thread where should I post?

Seeing similar issues to sprint where recent builds are behaving funky. as you said anything above the linux 3.10.05 taht 11/11 had I am seeing a huge lag in turning the screen on from sleep (1-3 seconds)

Does the fingerprint scanner still work for tmobile?

It hasnt worked on canada (rogers to be specific) since the beginning

I plan on doing some reading in your 101 thread and trying to get my own compiled version up but just reporting what I see.

Thanks for the awesome work btw. I reaaallly notice how slick it runs back on 11/11 build after running 11/16 for a while
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
SM-N910W8 / North America (Canada) - NJ3

It's been there the whole time
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] gundal:
FAIL.

its because, canada note 4 itself doesnt have its own thread which is whhere all the others are also posted -.-
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
The "[Kernel] Deported / Stockish [North America (Canadian) Discussion]" is the Canadian thread.

You can't really complain that others posted there when you are posting about Canadian in Sprint.

FAIL.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] gundal:
I meant...

I FAIL....

for not finding it.

Then pointed out that canada itself doesnt have its own note thread.

misunderstanding, not at all complaining, quite thrilled with your work actually
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
You mean a section? I think that is the confusion. It could be because instead of using the carrier they used the region for that one. It was an unusual choice.
[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] twistedumbrella:
The idea to have individual carrier discussion threads was a good idea, in theory. It allowed finding the kernel support thread without leaving the device section that was already being viewed.

Instead of making things easier, it was only more work retrieving the correct link for all of the posts that ended up in the development thread. This does not include many of the issues that were carrier independant and ended up spanning multiple discussion threads, including the development and building threads.

Rather than posting links at the risk of rude comments boycotting the minimal effort necessary, all discussion is being funneled into

Issues, Reports, & Configuration

.

It was a good run. Thanks for reading.