Galaxy Core LTE (g386f) "Last hope" Kernel - Update 25.01.2016

Search This thread

Agasharr

Senior Member
Oct 3, 2013
77
31
www.krafciarka.pl
Nice ! Well, i think i won't try your kernel since my battery is not really in a good state and overclocking would make it worst, but do you think you could add OTG support in the kernel ? It seems the material and rom are OTG ready ('drivers' etc) but the kernel isn't

There are some otg settings in kernel config:
CONFIG_USB_OTG=n
CONFIG_USB_OTG_UTILS=n
CONFIG_EOS2_USB2_OTG=n
CONFIG_USB=n
CONFIG_USB_DEBUG=n
CONFIG_USB_ANNOUNCE_NEW_DEVICES=n
CONFIG_USB_DEVICEFS=n
CONFIG_USB_DEVICE_CLASS=n
CONFIG_USB_SUSPEND=n
CONFIG_USB_R8A66597_HCD=n
CONFIG_USB_OTG_WHITELIST=n

But even when compiling kernel with all of them enabled (except CONFIG_USB_OTG_WHITELIST) OTG doesn't work. So it wont be that easy ;)

As for battery life, it almost the same when idle as on stock, base clock is almost the same, differs only few MHz from stock. It uses more when You need it and that is obvious as it's overclocked over 400MHz from base clock.
 

Agasharr

Senior Member
Oct 3, 2013
77
31
www.krafciarka.pl
OTG no go ;)

OTG seems to be unavailable in G386F, even with kernel support it can't detect any connected device, and even more it's getting problems to connects the usual way to computer as a usb device. Or simply I did something wrong.
 

Attachments

  • Screenshot_2015-11-18-08-39-56.png
    Screenshot_2015-11-18-08-39-56.png
    88.2 KB · Views: 300

Agasharr

Senior Member
Oct 3, 2013
77
31
www.krafciarka.pl
Update: 25.01.2016, details at the first post.
If You want to reduce cpu speed, You can use an app or an init.d script, example:
Code:
#!/system/bin/sh
if [ -e /data/local/cpu_protection ] ; then
  echo failed > /data/local/cpu_failed
chmod 777 /data/local/cpu_failed
  exit
fi

echo applied > /data/local/cpu_protection
chmod 777 /data/local/cpu_protection
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "1602250" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "201500" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "1602250" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo "201500" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

This script can change cpu governor, min and max cpu speed.
You just need to edit it to suit to your needs.
 
  • Like
Reactions: AmineI

miki4

Member
Jul 15, 2012
35
30
Hi Agasharr, how do you compile the kernel? Where do you get the sources from?

I would like to have your proven modifications also in the kernel of the latest firmware (G386FXWUAOL1_G386FPHNAOL1_G386FXXUANL1_HOME.tar.md5).
I compared the boot.img of this firmware with the boot.img of G386FXXUAOA1_G386FPRTAOD1_G386FXXUANL1_HOME.tar (which I guess is the firmware your modded kernel is based on) and they are different. I could imagine that the new boot.img is further optimized so it would be worth it to build a new modded kernel and that there could be problems using your current modded kernel with a newer firmware.

In the attachment you find those two original boot.imgs. If you have time and are in the mood for this, I would be very happy to see a new modded kernel. :)

Thank you in advance
Miki4
 

Attachments

  • G386FXWUAOL1_boot_orig.img
    6.2 MB · Views: 32
  • G386FXXUAOA1_boot_orig.img
    6.2 MB · Views: 24
Last edited:

miki4

Member
Jul 15, 2012
35
30
The stock firmware G386FXWUAOL1_G386FPHNAOL1_G386FXXUANL1_HOME.tar.md5 is not vulnerable to the Stagefright exploits according to the Zimperium detector app.
 

Agasharr

Senior Member
Oct 3, 2013
77
31
www.krafciarka.pl
Hi Agasharr, how do you compile the kernel? Where do you get the sources from?

hi, my kernel is compiled from source code from http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=g386f and i can't "mod" another one without it's actual source code. There must be diferences in avaible source code and kernel from newest firmwares as I noticed here:
http://forum.xda-developers.com/showpost.php?p=63379095&postcount=12
But i can't do anything about it.
 

ZeroRetro

New member
Oct 20, 2016
2
0
Hi, fist of all I need to say thanks to Agasharr and all your job, really, yesterday I installed your stock modded ROM and this Kernel and all its working fine, so thanks for all the time you have invested on this.

I want to ask if you have tryed other modems, Im searching for one more "battery friendly" because the battery drain so fast.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    Kernel compiled with Linaro GCC 4.9.4-2015.06 Toolchain

    Update 25.01.2016
    overclock reworked - should be more battery friendly (available frequency:
    1612000 Hz
    1410500 Hz
    1209000 Hz
    1007500 Hz
    806000 Hz
    604500 Hz
    403000 Hz
    201500 Hz
    added CPU Governor (lionheart, nightmare)
    ntfs read/write support

    Unpack and flash with Odin:
    boot5.zip

    Update 15.10.2015
    Changes:
    cpu overclocked to 1612 MHz (default clock is 1196 MHz)
    added CPU Governor (userspace, lionheart, nightmare)
    added I/O Scheduler (sio - now default, deadline)

    combined with modded rom
    http://forum.xda-developers.com/gal...p-galaxy-core-lte-g386f-stock-modded-t3223353
    provides init.d support

    Unpack and flash with Odin:
    G386FXXUAOA1_G386FPRTAOD1_PRT 4.zip

    Added: 20.12.2015
    I decide to clean this post a bit. If You need only kernel, simply unpack it from G386FXXUAOA1_G386FPRTAOD1_PRT 4.zip
    1
    @Agasharr I agree with you, I ignore which is the best for us. By the way, this list may be outdated since 2012, maybe some new governors exist now ? @benplay G386FXXUAOA1_G386FPRTAOD1_PRT 2.zip flashed OK today with odin 3.10.6 for my French G386F too.
    1
    Update: 25.01.2016, details at the first post.
    If You want to reduce cpu speed, You can use an app or an init.d script, example:
    Code:
    #!/system/bin/sh
    if [ -e /data/local/cpu_protection ] ; then
      echo failed > /data/local/cpu_failed
    chmod 777 /data/local/cpu_failed
      exit
    fi
    
    echo applied > /data/local/cpu_protection
    chmod 777 /data/local/cpu_protection
    chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
    chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    echo "1602250" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
    chmod 666 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
    echo "201500" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
    
    chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
    echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
    chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
    echo "1602250" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
    chmod 666 /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
    echo "201500" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq

    This script can change cpu governor, min and max cpu speed.
    You just need to edit it to suit to your needs.
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