[KERNEL][6.0.1][J5 2015/H][Sabermod 4.8] The Dark Kernel V1.0

Status
Not open for further replies.

KingRaheel

Senior Member
Sep 8, 2016
504
644
0
Bangalore
Hey guys! This kernel is only for SM-J500H as of now. I will add support for other variants soon. Now lets talk business

Features:
Built using Sabermod 4.8 toolchain
Latest J500HXXU2BPK4 sources
Patched with SuperSu 2.79 (Systemless)
Patched Linux version to 3.10.104
KCAL advanced colour control
SELinux permissive
MSM Hotplug enabled
Mild CPU Undervolt (Beta experimental values)
Compiled with -03 flag for better optimization and speed
Fixed memory leak in alloc_pid
Free memory optimizations
Tuned XZ for ARM processors
NEON and VFP float enabled
Init.d support
Busyboxed
Insecure boot
Patched to boot Note 7 roms
ADB enabled by default

To do list:
New CPU governors
New I/O Schedulers
Overclock and Underclock (I Dont find this neccessary because the phone works properly without overclock as well)
Add support for other models

Please note that i am a beginner in kernel development. I learn and keep learning so that i can bring out something different. Lastly if you got some features on your mind then my ears are always open. However i can't assure you that it will be added or implemented but i can give it my best shot within my capabilities. Further development on this project is dependent on the response i get from you guys. Lack of response will bring an end to this project. Enjoy the kernel guys.

Instructions:
1. Take a backup of your boot partition using TWRP first.
2. Navigate to the zip and flash.
3. Reboot and enjoy.

Downloads:
Don't forget to hit the thanks button. It will hardly take a second:good:

Sources

Contributors:
@KingRaheel

Credits:
@Me ofcourse :P
@BlackMesa123 For Ramdisk edits

Status:Testing
Created on: 31/12/16
 
Last edited:

vaserbanix

Senior Member
Nov 12, 2010
2,121
2,033
193
Bucharest
Good job!

Good!
i'm happy to see this thread,
You just opend o door for new oportunities!
you have all my consideration for this.
if i understand well, this is for MM botloader?
can you share the wlan.ko(pronto_wlan.ko) from J500HXXU2BPK4 'till you make it to work with all versions?
Of course if you are agree with your kernel to be using in other rom ports!
Thanks!

EDIT:
Thanks...again, i didnt checked the zip archive.
i just see the wlan.ko in it!
 
Last edited:

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
@KingRaheel

I don't have the knowledge, but after looking at other kernel, it seems that the change you've made for Linux kernel 3.10.104 is not enough! Other files must be changed too, not only that. I think you have to cherry pick or merge the Linux kernel changes.

Take a look at the changelog of 3.10.104: https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.104 .

Also, I'm not sure, but I think the kernel version must be updated one by one, with it's changes/patches. E.g.: from 3.10.49 to 3.10.50, then 3.10.51 (I don't know if .50 and .51 versions exists, I just gave an example).
 
Last edited:
  • Like
Reactions: KingRaheel

KingRaheel

Senior Member
Sep 8, 2016
504
644
0
Bangalore
Good!
i'm happy to see this thread,
You just opend o door for new oportunities!
you have all my consideration for this.
if i understand well, this is for MM botloader?
can you share the wlan.ko(pronto_wlan.ko) from J500HXXU2BPK4 'till you make it to work with all versions?
Of course if you are agree with your kernel to be using in other rom ports!
Thanks!

EDIT:
Thanks...again, i didnt checked the zip archive.
i just see the wlan.ko in it!
Thank you sir. Yea its for MM bootloader. :) . As of now i am trying to figure out how to make the sources of j500h to work on other models. I know that it can be done using different defconfig files and i had got the zImage as well but i think there is something more to it. Hopefully once its out for other models, people can use it to port or build some rom. If they do then my work paid off :)
 

KingRaheel

Senior Member
Sep 8, 2016
504
644
0
Bangalore
@KingRaheel

Congratulations!
I see that you've chose Sabermod, a nice choice. Did you try 4.9+ toolchain (including 4.9) ? I'm curious if it works on stock kernel.
Thank you buddy. Yeah i had tried with uber 4.9 and it worked but the kernel was kind of creepy lol. Random reboots for some reason. I solved that today and i think ubertc is way better than sabermod in terms of stability and most importantly battery life.

@KingRaheel

I don't have the knowledge, but after looking at other kernel, it seems that the change you've made for Linux kernel 3.10.104 is not enough! Other files must be changed too, not only that. I think you have to cherry pick or merge the Linux kernel changes.

Take a look at the changelog of 3.10.104: https://cdn.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.10.104 .

Also, I'm not sure, but I think the kernel version must be updated one by one, with it's changes/patches. E.g.: from 3.10.49 to 3.10.50, then 3.10.51 (I don't know if .50 and .51 versions exists, I just gave an example).
Yes you are right. The whole thing has be changed. Thats why i simply changed the version as its initial. Lol. I am getting many compilation errors with the patches made for linux 3.10.104 as i think its due to some config mistakes . So i am doing a lot of research on it and getting the errors solved one by one. :)
 
  • Like
Reactions: #Henkate

Sehab084

Senior Member
May 11, 2015
173
32
58
20
dhaka
1 overclock is necessary for gaming..The games (World of Gunship) i play lag but PBS by zonik was awesome the games didnt lag..I think at least overclock the GPU to 700 MHZ
2 why dont you just add overclock? i mean if people doesnt want overclocking they can just use app to use normal frequency. can someone tell me this if you put 2.1GHz frequency and i still use 1198MHz frequency will there be any difference if you dont put overclocking and use 1198MHz?

i will explain further if you dont understand 2nd question....
I use J500F currently using Resurrection remix
 

KingRaheel

Senior Member
Sep 8, 2016
504
644
0
Bangalore
1 overclock is necessary for gaming..The games (World of Gunship) i play lag but PBS by zonik was awesome the games didnt lag..I think at least overclock the GPU to 700 MHZ
2 why dont you just add overclock? i mean if people doesnt want overclocking they can just use app to use normal frequency. can someone tell me this if you put 2.1GHz frequency and i still use 1198MHz frequency will there be any difference if you dont put overclocking and use 1198MHz?

i will explain further if you dont understand 2nd question....
I use J500F currently using Resurrection remix
No need of explaining further. Not all people think the same way as you have said. Overclock to high frequencies will cause high temperature shoot up which will cause lag sometimes. Speed thrills but kills. PSB was smooth because it was using DJSteve kernel which ofcourse had all overclock capabilities. I will add overclock later once i add support to other variants.:cowboy:
 

#Henkate

Senior Member
Feb 1, 2012
3,485
3,120
253
25
フェアリーテイル
Thank you buddy. Yeah i had tried with uber 4.9 and it worked but the kernel was kind of creepy lol. Random reboots for some reason. I solved that today and i think ubertc is way better than sabermod in terms of stability and most importantly battery life.


Yes you are right. The whole thing has be changed. Thats why i simply changed the version as its initial. Lol. I am getting many compilation errors with the patches made for linux 3.10.104 as i think its due to some config mistakes . So i am doing a lot of research on it and getting the errors solved one by one. :)

May I know what was the cause of ubertc random reboot and how you fixed it? It is related to flags?
I'll try myself on stock kernel and I guess I'll run into same problem. Anyway, when I tried ubertc on cm kernel, phone was stuck at Galaxy J5 logo.


Regarding Linux kernel version, did you upgrade it one by one till 3.10.104?
 
Last edited:

KingRaheel

Senior Member
Sep 8, 2016
504
644
0
Bangalore
May I know what was the cause of ubertc random reboot and how you fixed it? It is related to flags?
I'll try myself on stock kernel and I guess I'll run into same problem. Anyway, when I tried ubertc on cm kernel, phone was stuck at Galaxy J5 logo.


Regarding Linux kernel version, did you upgrade it one by one till 3.10.104?
Yes flags. If any soft freeze then reboot. Lol. Actually the case should be opposite that is if any hard freeze then reboot. When i reported to samsung they changed it immediately. Like within 30 mins. Stupid samsung. I changed mine using menuconfig. Thats how i got sabermod also to work ;) . No fault in toolchains

Ofcourse one by one and compile or else you will get 2 pages of errors :laugh: .So i am on 3.10.99 now and i got many errors for 3.10.103 . So just trying to figure out where is the bug
 
Last edited:
  • Like
Reactions: #Henkate

Demicro

Senior Member
Aug 10, 2015
659
318
0
Mahon
Can someone help me to compile the wlan module.



---------- Post added at 03:19 AM ---------- Previous post was at 03:10 AM ----------

#Henkate;70323406 [user=7716560 said:
@KingRaheel[/user]

Congratulations!
I see that you've chose Sabermod, a nice choice. Did you try 4.9+ toolchain (including 4.9) ? I'm curious if it works on stock kernel.
I have used uberTC and linaro version 4.9. On my computer linaro compiles a bit slower than uber but has better stability
 
Last edited:
Status
Not open for further replies.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone