[KERNEL][5.1.1][P607] zStock CIFS + NFS + SELinux options + Force Fast Charge [v1.2]

oneleft.ak

Member
Aug 5, 2012
48
38
48
Anchorage
Intro-
This is the stock kernel for the T-Mobile SM-P607T Samsung Note 10.1 (2014 Edition) with the following additional features:
  • Multiple flavors for SELinux preference
  • CIFS kernel support
  • NFS kernel support
  • Force Fast Charge support

Download Options-
  1. Enforcing ONLY - http://files.zpivot.com/sm-p607t/p607t-zstock-kernel-enforcing-only-1.2.37.tar.md5
    • SELinux stock behavior, always enforcing
  2. Permissive OPTIONAL - http://files.zpivot.com/sm-p607t/p607t-zstock-kernel-permissive-optional-1.2.37.tar.md5
    • SELinux mode can be change with setenforce command
  3. Permissive ONLY - http://files.zpivot.com/sm-p607t/p607t-zstock-kernel-permissive-only-1.2.37.tar.md5
    • SELinux always permissive

Install-
  1. Reboot into download mode
  2. Open ODIN
  3. Add the kernel file downloaded from link above to AP section
  4. Click start!

How to mount cifs/smb shares-
REQUIREMENTS:
  1. root
  2. busybox
  3. ability to read and follow directions
  4. custom kernel with cifs support (ie the kernel above)
INSTRUCTIONS:
  1. Open a terminal emulator or adb shell
  2. Code:
    su
  3. Code:
    mkdir /mnt/shares/*share_name*
  4. Code:
    busybox mount -t cifs -o username=guest,unc=\\\\*server_ip*\\*share_name*,ip=*server_ip* *server_ip*/*share_name* /mnt/shares/*share_name*
NOTES:
  • Make sure you replace *server_ip* in the instructions above with the ip address of your server, and *share_name* with the name of your shared folder.
  • You must mount your shares outside of /storage and /mnt/sdcard for all applications to have access. I have provided a public tmpfs for creating mount points at /mnt/shares.
  • ---Your samba share will now be accessible by all programs/apps under the /mnt/shares directory on root.

How to use Force Fast Charge-
DISPLAY FORCE FAST CHARGE INFO:
  1. Open a terminal emulator or adb shell
  2. Code:
    cat /sys/kernel/fast_charge/info

ENABLE FORCE FAST CHARGE MODE:
  1. Open a terminal emulator or adb shell
  2. Code:
    su
  3. Code:
    echo 1 > /sys/kernel/fast_charge/force_fast_charge

SET CUSTOM FORCE FAST CHARGE LEVELS:
  1. Open a terminal emulator or adb shell
  2. Code:
    su
  3. Code:
    echo 2 > /sys/kernel/fast_charge/force_fast_charge
  4. Code:
    echo 1000 > /sys/kernel/fast_charge/usb_charge_level
  5. Code:
    echo 2100 > /sys/kernel/fast_charge/ac_charge_level

NOTES:
  • Force Fast Charge will be disabled by default
  • When setting custom levels for usb and ac force fast charge, use one of the available values listed when using the display info command above (in the examples I used the max values)
  • Additional info:
    Code:
    /*
     * Forced Fast Charge - SysFS interface :
     * --------------------------------------
     *
     * /sys/kernel/fast_charge/force_fast_charge (rw)
     *
     *   0 - disabled (default)
     *   1 - substitute AC to USB
     *   2 - use custom mA configured through sysfs interface (see below)
     *
     * /sys/kernel/fast_charge/ac_charge_level (rw)
     *
     *   rate at which to charge when on AC (1.0A/h to 2.1A/h)
     *
     * /sys/kernel/fast_charge/usb_charge_level (r/w)
     *
     *   rate at which to charge when on USB (0.460A/h to 1.0A/h)
     *
     * /sys/kernel/fast_charge/wireless_charge_level (r/w)
     *
     *   rate at which to charge when on WIRELESS (0.650A/h to 1.2A/h)
     *
     * /sys/kernel/fast_charge/failsafe (rw)
     *
     *   0 - disabled - allow anything up to 2.1A/h to be used as AC / USB custom current
     *   1 - enabled  - behaviour as described above (default)
     *
     * /sys/kernel/fast_charge/ac_levels (ro)
     *
     *   display available levels for AC (for failsafe enabled mode)
     *
     * /sys/kernel/fast_charge/usb_levels (ro)
     *
     *   display available levels for USB (for failsafe enabled mode)
     *
     * /sys/kernel/fast_charge/wireless_levels (ro)
     *
     *   display available levels for WIRELESS (for failsafe enabled mode)
     *
     * /sys/kernel/fast_charge/version (ro)
     *
     *   display fast charge version information
     *
     * /sys/kernel/fast_charge/info (ro)
     *
     *   display complete fast charge configuration in human readable format
     *
     */

Changelog
v1.0 - Initial release
v1.1 - Added Enforcing only version (build 21)
v1.2 - Added Force Fast Charge support (build 37)


Thanks/Credits-
mkasick - CIFS/NFS empty mount patch - http://forum.xda-developers.com/showthread.php?t=2106480
blue cat - permissive only patch - http://forum.xda-developers.com/galaxy-note-10-2014/development/kernel-stock-selinux-permissive-kernel-t3232814
chad0989 - force fast charge initial work - http://forum.xda-developers.com/galaxy-nexus/verizon-develop/kernel-patch-devs-force-ac-fast-charging-t1524020
faux123 - force fast charge extensions
yank555-lu - force fast charge note 3 port

 
Last edited:

itsita

Senior Member
Sep 29, 2012
182
57
48
Just a question - do you know how to add charging at different voltages? It drives me crazy that our tab can only charge at 1.8V, no more, no less.

Sent from my LG-H818 using Tapatalk
 

oneleft.ak

Member
Aug 5, 2012
48
38
48
Anchorage
Just a question - do you know how to add charging at different voltages? It drives me crazy that our tab can only charge at 1.8V, no more, no less.

Sent from my LG-H818 using Tapatalk
I do not know how to adjust the voltage used for charging. Although you did give me an idea to implement the force fast charging kernel mod. I am currently building a test release with the added patches... let the experiments begin!!!
 
  • Like
Reactions: itsita

oneleft.ak

Member
Aug 5, 2012
48
38
48
Anchorage
Updated OP

Okay, I have updated the OP and added a new version with the force fast charge mod in place. I have only done minor testing to make sure the code was functional. I would suggest that you perform your own testing as your mileage may vary depending on the charging equipment you are using.
 
  • Like
Reactions: itsita

itsita

Senior Member
Sep 29, 2012
182
57
48
Okay, I have updated the OP and added a new version with the force fast charge mod in place. I have only done minor testing to make sure the code was functional. I would suggest that you perform your own testing as your mileage may vary depending on the charging equipment you are using.
Thanks! Ill test and post results :)

Sent from my SM-P605 using Tapatalk
 

oneleft.ak

Member
Aug 5, 2012
48
38
48
Anchorage
I am getting "md5 error! invalid binary " while adding the kernel file through odin..
plz guide
i have 607T with 5.1.1
This will happen when you change the filename before attempting to flash or if the download completed with errors. Make sure you are trying to flash the file from one of the download links in the OP.
 

itsita

Senior Member
Sep 29, 2012
182
57
48
This will happen when you change the filename before attempting to flash or if the download completed with errors. Make sure you are trying to flash the file from one of the download links in the OP.
hmm i'm getting the invalid binary message as well,
tried different odins and different files (didn't change the name or anything..)
 
  • Like
Reactions: oneleft.ak

oneleft.ak

Member
Aug 5, 2012
48
38
48
Anchorage
File server error

I also tried different odin versions but no success
I see what you mean, it appears my file server is altering the file size upon upload.... I am looking into it right now- Will update this thread once it has been corrected.

UPDATE:

Okay, turns out it was the ftp program(FileZilla) I was using to upload the files to my file server. The files have been restored correctly and I have personally tested all three of the links by downloading from my file server and flashing in ODIN.
Thanks for the heads up guys and please let me know if you run into any further issues--
 
Last edited:

jbm76

Senior Member
Mar 15, 2011
1,067
377
103
Brisbane
Worked well thank you :)

Set my levels to this - hopefully it speeds up the charge a little :)

Fast charge mode : 2 - Use custom mA on AC and USB
Custom AC level : 2100mA/h
Custom USB level : 1000mA/h
Custom Wireless level : 650mA/h
Failsafe mode : 1 - Failsafe active (default)
Valid AC levels : 1000 1100 1200 1300 1400 1500 1600 1700 1800 1900 2000 2100
Valid USB levels : 460 500 600 700 800 900 1000
Valid Wireless levels : 650 800 900 1000 1100 1200
 

outlawbiker

Member
May 30, 2009
43
4
8
I flashed the kernel from here, and followed the steps, when i go to check /sys/kernel/fast_charge/info to see if it worked, all i get is permission denied.

no matter what kernel ive used in the past on this tablet ive gotten "permission denied" like trying to set up linux deploy or linux on android. I am rooted, I am using a Permissive kernel, Busy Box installed. So what gives?
 

automatikjack

Senior Member
Dec 27, 2007
59
11
38
zombie thread warning*

So as i understand it, you can use kernels for older roms on newer releases right?

So for example, im trying out an unofficial lineage os rom, and it does not have fast charge support baked in, nothing through kernel auditor or 3c toolbox that can be changed. Could I flash this kernel and add support to the rom that way? The dinosaur charging speeds on this thing is really inconvenient if I ever forget to charge it overnight.