yashsingh1/xdaforums huggingface dataset:
[Galaxy Note 4 Unified Development] friedrich420:
I just reset the values with ktweaker and trickster at 2.8 and im running antutu and i saw it going to that frequency quite a few times so far :) :)

with version D.. maybe it was a glitch before?

I used "lock frequency" on trickster this time..bc it wont let you on ktweaker..
[Galaxy Note 4 Unified Development] ktoonsez:
I have the limit set to 1400 and should be fine since the table for the speed he picked is way below 1400.
[Galaxy Note 4 Unified Development] ktoonsez:
And that was on "D" right?
[Galaxy Note 4 Unified Development] friedrich420:
Yes my friend :)

Dual confirmation both from antutu and cpuspy plus the live viewing of kmonitor;)
[Galaxy Note 4 Unified Development] friedrich420:
And cpuspy...
[Galaxy Note 4 Unified Development] twistedumbrella:
PEBCAK?

That was the exact issue I had that led to needing to rebuild the voltage table and rework how I was calculating current.
[Galaxy Note 4 Unified Development] friedrich420:
i have problems with synapse also..

mine boots ok, synapse works ok... the problem is it never connects to a wifi network..

it keeps saying "identifying ip" and never connects..

i dont understand how adding synapse will cause that so i dropped it...

what compression do you use?
[Galaxy Note 4 Unified Development] Pafcholini:
I'm using the lzo compression. I added the secure storage false for the wifi issue.

How did you add the synapse? With serviceinit

Class main?

Powered by ET
[Galaxy Note 4 Unified Development] friedrich420:
yeah...

service AEL-init /sbin/AEL.sh

class main

user root

oneshot
[Galaxy Note 4 Unified Development] Pafcholini:
[MENTION=5068852]thehacker911[/MENTION]

How did you slove the issue with the IMEI?

For me everything was ok but after made some changes in arm or sched i losed the IMEI.

Powered by ET
[Galaxy Note 4 Unified Development] thehacker911:
If I make a few changes in arm I lose my IMEI.

Even though I Sabermod with flags compress I lose the IMEI again.
[Galaxy Note 4 Unified Development] Pafcholini:
[MENTION=5068852]thehacker911[/MENTION] which recovery are you using?

Powered by ET
[Galaxy Note 4 Unified Development] thehacker911:
I using TWRP 2.8.5.0. I just got a different toolchain test . From time to time I reboots with the stick toolchain GCC 4.8 and also with the Linaro 4.9.3 . I will also test times the UBER Linaro , since I 'm currently really not satisfied with the kernel.
[Galaxy Note 4 Unified Development] Pafcholini:
I was investigated and samsung added new security feature. ...

TIMA PKM (Periodic Kernel Measurement ) performs continuous periodic monitoring of the kernel to detect if legitimate kernel code and data have been modified by malicious software. TIMA PKM also monitors key SE for Android data structures in the OS kernel memory to prevent malicious attacks from corrupting them and potentially disabling SE for Android.

TIMA RKP (Real time kernel protection) performs ongoing, strategically-placed real-time monitoring of the operating system from within TrustZone to prevent tampering of the kernel. TIMA RKP intercepts critical events happening inside the kernel, which are inspected in TrustZone. Also, if an event is determined to have impact on the integrity of the OS kernel,TIMA RKP either stops the event, or logs an attestation verdict that tampering is suspected, which is sent to the MDM. This protects against malicious modifications and injections to kernel code, including those that coerce the kernel into corrupting its own data.

TIMA RKP monitors code of kernel and memory events, and catches any malicious activity in real time whereas TIMA PKM periodic checks the kernel checksum. TIMA PKM also checks kernel modules whenever they are loaded.

This is the reason to lose the IMEI with some changes in the source.

Powered by ET
[Galaxy Note 4 Unified Development] UpInTheAir:
Thanks for the info, something not to look forward to when my Note Edge Exynos finally gets L.P.

I suppose just disabling TIMA in kernel will take care of that?

Any links to the source of your info?

Cheers.

UITA
[Galaxy Note 4 Unified Development] thehacker911:
[MENTION=4824728]Pafcholini[/MENTION]

Maybe this will help you here:

https://github.com/HRTKernel/Hacker...mmit/da2298984899e369b42ad892631503c6e71fc1a4

I've got but unfortunately no longer made because I lack the time.
[Galaxy Note 4 Unified Development] Pafcholini:
Here you have mate: https://www.samsungknox.com/en/faq/what-difference-between-tima-pkm-and-tima-rkp

Also you can find the documentation in the source code.

In SD version you can find the tima_rkp in arch/arm/mach-msm/Kconfig

If I disable the tima_rkp from the defconfig the kernel doesn't recognise the IMEI, etc.

Placiano and I are trying to find the way to jump this restriction but we didn't have luck for now.

I think when I disable the tima_rkp the bootloader detect that the tima was disable but I'm not sure.

No mate, this files are just logs,etc. The real problem is the tima_rkp.

Powered by ET
[Galaxy Note 4 Unified Development] thehacker911:
Even if you can turn it off in the kernel, not us who says this is not yet checked in bootloader? Previously, you could read the boot loader via iosbuster and change. Unfortunately, Samsung has changed the file system.
[Galaxy Note 4 Unified Development] UpInTheAir:
Hopefully you guys/gals can find the way around it. Can't really help with it until I can play with LP firmware and source for my device. When that is, it's anyone's guess :(
[Galaxy Note 4 Unified Development] Pafcholini:
Here you have the document about knox and tima:

https://mega.co.nz/#!itBFQQiB!IpiwiozjQw_9YLFCTxKsSyVknVMMoR7DyATdurjxrTk

Powered by ET
[Galaxy Note 4 Unified Development] twistedumbrella:
The bootloader still looks for the Tima "magic number" when loading the kernel. Disabling it is the same as deleting a registry entry for a Windows program because you don't have the right serial number. You don't stop it from looking, you just cause a different error.
[Galaxy Note 4 Unified Development] Pafcholini:
[MENTION=593514]twistedumbrella[/MENTION] are you working on LP kernel?

Powered by ET!
[Galaxy Note 4 Unified Development] :
I dont know if this will help and my kernel knowledge isn't the best. Ktoonz kernel let's the n910f lollipop roms boot on tmob where as yours and AEL won't boot on the tmob. Maybe you might see something in his github and we can fix the n910g as well
[Galaxy Note 4 Unified Development] Pafcholini:
Thanks sawdoctor but we are trying to fix a restriction implemented by Samsung ... That restriction cause lose baseband,imei,etc. with some changes in the source code.
[Galaxy Note 4 Unified Development] :
Sammy are really being a pia at the moment with lollipop
[Galaxy Note 4 Unified Development] twistedumbrella:
Still no update for tmobile so I haven't done much of anything. There aren't even upstream updates that aren't aimed at lollipop. I moved to making games for now.
[Galaxy Note 4 Unified Development] chenxiaolong:
EDIT: Nevermind, this has already been suggested.
[Galaxy Note 4 Unified Development] twistedumbrella:
[youtube]a3EeLZ2yyeo[/youtube]
​
[Galaxy Note 4 Unified Development] Pafcholini:
is this yours?

Powered by ET!
[Galaxy Note 4 Unified Development] twistedumbrella:
I got it in my head I would try to remake Dead or Alive but since there's all sorts of trademarks I can't really release it. Just fun to play around.

http://www.ufe3d.com/forum/viewtopic.php?pid=1492#p1492
[Galaxy Note 4 Unified Development] mythos234:
Greetings, I need your help.

[YOUTUBE]eXUol3_-7O8[/YOUTUBE]

I hope you like that ;) I'm usually a low profile kernel maintainer for our lovely SimplTeam here on XDA, but I recently felt the need to aspire for something higher.. So I took the default Interactive governor and started modifying it according to my own crazy ideas.. It's probably not the most efficient one, but I'm not good enough with governors to make this work. I'm just going to start talking:

The main idea is to define a set frequency, I called it Sync_Freq and assigned it roughly 1.2Ghz. First part was then this:

This isn't really having an effect on anything, just wanted to try if I can get anything done. The next idea is more on the crazy side.

The idea here is that if the current frequency is the same as my predefined syncfreq of 1.2Ghz, we should keep the current frequency for a predefined time (I defined a timer "syncfreq_timer" for that, which is 20ms) and after those 20ms have passed, normal sampling becomes available again and the usual scaling continues.

So far so good, but I have no idea how to continue beyond the if above.. Some input would be really appreciated :)

Also some greetins to @Pafcholini, you can confirm my chaotic approach to everything :D
[Galaxy Note 4 Unified Development] twistedumbrella:
For the first part it seems like you would want to do a != and then set frequency to your set frequency if it isn't already. I am not sure what you were trying to do there, but it won't appear to work if you are only setting a min or a max because on the next cycle it will cancel itself out.

For the second part, you would have to define some sort of boolean that it's running the timer and have anywhere it alters the frequency not do anything if the boolean is true. All you would need in the if is setting the boolean true, starting the timer, and then when the timer runs out it, that function would set the boolean back to false.

​
[Galaxy Note 4 Unified Development] mythos234:
Tbh, I'm totally new to governors and just wanted to try what impact a different set of code might /* or might not */ have. Only after compiling I realized that the first two functions are cancled out and don't really accomplish ... anything at all. But I'm a stubborn donkey who learns new stuff by rammind the head against a wall. ;)

Thanks for the input, going to try this in a moment of clarity in the next days. Right now I have to worry about a OnePlus build.. :crying:
[Galaxy Note 4 Unified Development] twistedumbrella:
I'll probably be MIA for a while. I have an app to finish for a contract, an emulator to help prep for the upcoming Android TVs, a game to finish, a game to make for VR Jam, and then a whole mess of finding new stuff for when all that is done.
[Galaxy Note 4 Unified Development] UpInTheAir:
I think our problems are (were) much the same. I've just built my LL kernel for Note Edge Exynos and ran into some WIFI issues.

My work-arounds/fixes:

1. Reverted from SaberMod to stock ARM GCC 4.7 (contributed to long WIFI power on times)

2. Add in default.prop

[COLOR="Blue"]# Keep WIFI settings on flash/reboot
ro.securestorage.support=false
# Possible Screen mirroring / AllShare Cast fix
wlan.wfd.hdcp=disable[/COLOR]

3. Remove from my service SkyHigh-init /sbin/SkyHigh.sh (This prevented the WIFI connecting to networks - haven't looked at a fix yet):

[COLOR="Red"]#
# Fast Random Generator (frandom) support on boot
#
if [ -c "/dev/frandom" ]; then
# Redirect random and urandom generation to frandom char device
chmod 0666 /dev/frandom
chmod 0666 /dev/erandom
mv /dev/random /dev/random.ori
mv /dev/urandom /dev/urandom.ori
rm -f /dev/random
rm -f /dev/urandom
ln /dev/frandom /dev/random
chmod 0666 /dev/random
ln /dev/frandom /dev/urandom
chmod 0666 /dev/random
fi[/COLOR]

Hope this help some, as was really pulling my hair out with multiple issues affecting the same thing !!

Oh, BTW, I don't intend to actively support my work in XDA. I'm starting a Private Google Group for active projects. Maybe I'll reconsider once an infraction is lifted in September. (Yes, a Mod didn't agree with the method of dealing with a lazy ass troll). My SkyHigh Note Edge (Exynos) Kernel thread for TW LL is here: http://xdaforums.com/note-edge/general/info-skyhigh-sm-n915-exynos-kernel-t3086846

Cheers,

UITA :)
[Galaxy Note 4 Unified Development] jazzespresso:
thanks...I was not quite sure about should I delete it completely (was freezed it with Titanium backup)...Anyway, I delete it on Tab 4 5.1.1, yes I know this is Note 4, but all Samsung crap :p
[Galaxy Note 4 Unified Development] Mr nerd:
one question did samsung release the Kernels for Note 4 for MM yet?

Sorry answered my own question

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=N910P

If anyone is looking.
[Galaxy Note 4 Unified Development] :
The 910c mm source code was released before Sammy released mm for the 910c haha. Looks like they may be getting their act together
[Galaxy Note 4 Unified Development] Pafcholini:
F variant source kernel was released 2 weeks ago. Still do not have TW MM firmware for F variant.

"If it compiles, it is good, if it boots up it is perfect".
[Galaxy Note 4 Unified Development] Mr nerd:
can anyone help me with this error please

DTC arch/arm/boot/dts/qcom/../apq8084-sec-trlte-r12.dtb
/home/mrnerd/android/kernel/note4_mm_deathkernel/mm/memory.c: In function 'zap_page_range':
/home/mrnerd/android/kernel/note4_mm_deathkernel/mm/memory.c:1501:2: error: too few arguments to function 'tlb_gather_mmu'
In file included from /home/mrnerd/android/kernel/note4_mm_deathkernel/mm/memory.c:68:0:
/home/mrnerd/android/kernel/note4_mm_deathkernel/arch/arm/include/asm/tlb.h:111:1: note: declared here
/home/mrnerd/android/kernel/note4_mm_deathkernel/mm/memory.c: In function 'zap_page_range_single':
/home/mrnerd/android/kernel/note4_mm_deathkernel/mm/memory.c:1527:2: error: too few arguments to function 'tlb_gather_mmu'
In file included from /home/mrnerd/android/kernel/note4_mm_deathkernel/mm/memory.c:68:0:
/home/mrnerd/android/kernel/note4_mm_deathkernel/arch/arm/include/asm/tlb.h:111:1: note: declared here
make[2]: *** [mm/memory.o] Error 1
make[1]: *** [mm] Error 2
[Galaxy Note 4 Unified Development] RaideN250:
Can anyone help me out? I managed to build my kernel and used AIK to add the zImage to my boot.img and flash it in TWRP. The problem is that it's stuck in a bootloop. The only thing I did was update the xpad.c file to support my xbox one controller (which I confirmed that it works). I can boot if I flash SuperSU after but the phone crashes in 30 seconds and reboots. Here is the kernel, if anyone can analize it and tell me what's wrong with it I'll be very thankful: https://www.dropbox.com/s/q2atsxx7urfkuoh/image-new.img?dl=0
[Galaxy Note 4 Unified Development] Pafcholini:
Patch it to permissive selinux ;)

"If it compiles, it is good, if it boots up it is perfect".
[Galaxy Note 4 Unified Development] RaideN250:
I just tried that and it didn't work (modified ~/android/kernel/security/selinux/Makefile to EXTRA_CFLAGS += -DCONFIG_ALWAYS_ENFORCE=false), I noticed that my Baseband turns to "Unknown" after flashing the new kernel too. I should mention that I have the N910F on official MM and the sources from Samsung. I think I'm building something wrong, I built this kernel at least 5 times already and I can't figure out what I'm doing wrong. I can boot for 30 seconds if I flash the latest SuperSU beta, otherwise stuck in bootloop.
[Galaxy Note 4 Unified Development] Pafcholini:
https://github.com/Emotroid-Team/em...mmit/6b5e9c01ac6e695c1d1dc6a3f117c5df666fb358

"If it compiles, it is good, if it boots up it is perfect".
[Galaxy Note 4 Unified Development] RaideN250:
That worked! The phone boots and stays booted for ~1 minute and then completely blacks out becoming unresponsive to touch and buttons (managed to confirm in settings that kernel is set to permissive), have to pull battery and restore old kernel to make it work again, Baseband turns to unknown again and signal bar doesn't show up, this time I enabled logging before building it, how can I check the logs?
[Galaxy Note 4 Unified Development] Pafcholini:
You have to enable mhi config ;)

"If it compiles, it is good, if it boots up it is perfect".
[Galaxy Note 4 Unified Development] RaideN250:
I think I got the kernel right, I'm not so sure about the boot.img, I think that's where I'm messing up. Here are the steps I'm doing using AIK, correct me if I'm wrong:

sudo ./unpackimg.sh boot.img
cd split_img
sudo rm boot.img-zImage
cd ..
sudo cp zImage ~/Kernel/AIK-Linux/split_img/boot.img-zImage
sudo ./repackimg.sh

Then I plug in my phone and copy the image-new.img to SD Card and flash to boot partition in TWRP.
[Galaxy Note 4 Unified Development] loycheewah:
It's a great post.. Although I don't quite understand.. hahaha
[Galaxy Note 4 Unified Development] lamhoang:
Hi guys, im new to all this building kernel stuff but i wanted to build one to play around with and learn some basic stuff. I downloaded the source code but I can't get the kernel to compile. What command do you guys use to compile? If I do make like most other kernel it still shows somes errors and then the make clean command also give errors. I also tried the two build scripts included but they give errors sooner or later? Any hints?
[Galaxy Note 4 Unified Development] noob4598:
Check this.guide out bro. Very detailed and up to date

https://xdaforums.com/galaxy-s6/general/guide-how-to-build-samsung-kernel-july-t3429355
[Galaxy Note 4 Unified Development] lamhoang:
thanks bro, somehow did not saw this when i try to search :D
[Galaxy Note 4 Unified Development] ProximusPRO:
god i feel like a pro now. :p
[Galaxy Note 4 Unified Development] twistedumbrella:
The tools are outdated. At the time, Samsung was doing some eccentric, proprietary stuff. Hopefully, they have since made it more generic.
[Galaxy Note 4 Unified Development] Rigzin01:
Hey guys...can you help me please? I have a samsung note 4 sm910h ..it seems it doesnt have any lte support or it does ..dont know. I read a thread somewhere that the sm910c and sm910h have the same hardware because both having the exynos. So is it possible to flash the rom of the sm910c in sm910h and also is the modem same in both phones?? Can i switch to lte then???

Thank you .?
[Galaxy Note 4 Unified Development] drizzyk27:
Not possible it's limited to H+ or 3g
[Galaxy Note 4 Unified Development] tripLr:
If anyone here wants to play with me on the kernel for the note 4 , we have Android 10 booting.

Let me know. I would love some help/education in the kernel department.

GitHub.com/triplr-dev
[Galaxy Note 4 Unified Development] ktoonsez:
Very cooooool. Good work man :good:
[Galaxy Note 4 Unified Development] ktoonsez:
Excellent, and here is version "F" for you to try, see if it hits the higher speeds more often please:

http://ktoonsez.jonathanjsimon.com/note4/TW/KT-NOTE4-KK4.4-TW-N910-11.13.2014F.zip
[Galaxy Note 4 Unified Development] twistedumbrella:
< 2841600 2764800 16250 10101 >,
< 2918400 2841600 16250 10101 >,
< 2995200 2918400 16250 10101 >,
< 3072000 2995200 16250 10101 >;

- >

< 2841600 2764800 16250 12145 >,
< 2918400 2841600 16250 12145 >,
< 2995200 2918400 16250 12145 >,
< 3072000 2995200 16250 12145 >;
[Galaxy Note 4 Unified Development] ktoonsez:
EDIT:

I see what u were answeering from, I will bump up minimum memory bandwidth on OC steps. :D
[Galaxy Note 4 Unified Development] friedrich420:
With performance governor ..

However, without another app (i.e. trickster to lock frequencies,) antutu automatically reverts to stock frequencies..

Still with D my man sorry.. i may have to go soon...
[Galaxy Note 4 Unified Development] ktoonsez:
Ok, I will look at performance gov, they have hardcoded a step on previous devices, so that may be it.
[Galaxy Note 4 Unified Development] friedrich420:
it was the same on interactive that i used before.. if i didnt use trickster to lock the frequencies, antutu would revert them..
[Galaxy Note 4 Unified Development] ktoonsez:
Yep, went thru all the pain on the S5 when they switched to the dtsi tables. Of course the documentation isnt updated but I assume its a Min/Max thing now, the S5 only has 3 columns like the documentation file does.
[Galaxy Note 4 Unified Development] twistedumbrella:
Now it's single core, then multi-core (me thinks)
[Galaxy Note 4 Unified Development] ktoonsez:
It might be, would be a shame to use lower bandwidth on multiple cores if that is true. Feel like testing this version on your "T" so I know that "T" is ok with this new base?

http://ktoonsez.jonathanjsimon.com/note4/TW/KT-NOTE4-KK4.4-TW-N910-11.13.2014G.zip
[Galaxy Note 4 Unified Development] twistedumbrella:
Seems like it's working, but I didn't get into configuration or anything. Just booted and went into the app and clicked around.
[Galaxy Note 4 Unified Development] ktoonsez:
Awesome :D :good: :highfive:
[Galaxy Note 4 Unified Development] risx:
I tried the OC switching in apq8084.dtsi from 3 to 0 but my processor never goes to 2.7Ghz, it always stays at 2.5Ghz

I noticed in the init.sku.rc that you set the scaling_max_feq to 2649600

---------- Post added at 07:52 PM ---------- Previous post was at 07:50 PM ----------

Could you publish the source for this one?
[Galaxy Note 4 Unified Development] ktoonsez:
Im gonna replace my current source with the new one once I get everything worked out :good:
[Galaxy Note 4 Unified Development] twistedumbrella:
Yes, but that is overwritten by the users init.d and / or app.
[Galaxy Note 4 Unified Development] risx:
okay thanks! I have been trying to get the OC to always be 2.7 for awhile now, without any luck

Got to be something I'm missing
[Galaxy Note 4 Unified Development] twistedumbrella:
The version number was more or less just forcing the DTSI to fully refresh. It didn't have much use other than getting dirty installs to reload.
[Galaxy Note 4 Unified Development] twistedumbrella:
[MENTION=4325945]ktoonsez[/MENTION] how is one kernel for multiple carriers working for you? That was something I did a test run of and, as I mentioned in your thread, Sprint didn't work. At the time, I dumped the idea because you know how things kinda explode when it doesn't work on just one...

I'm interested in establishing a failsafe way to pull it off, though. I have to re-diff the ramdisks but I had a list of the exact changes for each. I know selinux was one but wasn't relevant and tcp was another.

Interestingly enough, you can build the T-Mobile kernel with Sprint's it'sOn and only lose data on Sprint. The T-Mobile version is unaffected.
[Galaxy Note 4 Unified Development] ktoonsez:
It is currently working on all variants with one ramdisk, the only key to Sprint was to make sure the carrier stuff was in there, like:

mkdir /carrier 0771 system system

and on-fs stuff. That is what did it for me.

Going on a tangent here, we need triple team to see if we can start getting a last_kmsg to generate, they are very helpful with random reboots. Have you looked around at all, I tried like hell on my S5 and never got one to produce? I know [MENTION=2713505]friedrick[/MENTION]420 said yesterday that he was looking tooand didnt have any luck so far.
[Galaxy Note 4 Unified Development] twistedumbrella:
The flag is there and Samsung has it enabled. I think it is being produced, I just can't find where. The SEC_DEBUG stuff got changed around a lot, and when I stripped that to disable it, I lost kmsg altogether. I think they have it printing to some hidden location.

For Sprint, I did have all of that stuff. I was trying to do it through a script during boot instead of through the init.rc because the flag to have an init.{ro.device}.rc was invalid. It would be nice if they supported that and not just the {ro.hardware}
[Galaxy Note 4 Unified Development] ktoonsez:
Im sure you tried this but did u add this to defconfig?

CONFIG_SEC_LOG_LAST_KMSG=y
[Galaxy Note 4 Unified Development] twistedumbrella:
it's in the sec_defconfig in the stock version. I went to add it, but it was already there.

At one point, i added it again anyway. No luck with that.

Have you tried CONFIG_PRINTK_PROCESS=y from the engineering defconfig. It looks like if that is disabled, it cancels a lot of the logs in printk
[Galaxy Note 4 Unified Development] ktoonsez:
Are you any good at building binaries. Back in the day when I used to work on Siyah kernel I had a compiled binary that replaced the init binary and all it did was probe for info on the rom to know what ram disk to load. We could do the same thing by probing the model and load the right ram disk.

I have not tried the printk on this kernel but believe I did on the S5 but not sure.