[KERNEL][9.1] Performance Enhanced Overclock Kernel

Search This thread

rootfan

Senior Member
Jul 20, 2011
209
264
@rootfan on 2017 it goes to boot loop on 1.7 but 1.6 works
@go2xraj , would you see if the attached kernel works? If it does, it would help if you could post a log by doing the following:
Code:
adb shell
su
dmesg > /sdcard/log.txt
exit
exit
adb pull /sdcard/log.txt
then post the log.txt here
 

Attachments

  • R1_7_Permissive.zip
    19.4 MB · Views: 61
Last edited:
  • Like
Reactions: rchris494

rchris494

Senior Member
May 7, 2011
226
55
@go2xraj , would you see if the attached kernel works? If it does, it would help if you could post a log by doing the following:
Code:
adb shell
su
dmesg > /sdcard/log.txt
exit
exit
adb pull /sdcard/log.txt
then post the log.txt here
@rootfan the R1_7_Permissive.img works on 2017 (16gb) dev edition 9.0. the Kernel_R1_7.img boot looped for me using fastboot boot. R1_7_Permissive.img worked with fastboot boot. so i flashed it. system boots up flawless.

thanks for the update!
 

mikty

Member
Aug 18, 2017
11
4
Hi,
I use the 2015 shield tv for emulation. could someone confirm me that the overclock will boost significantly
the emulation of dreamcast, dolphin and maybe aerther2sx (ps2 emulator) ?
thanks for your reports
regards
 
  • Like
Reactions: beatLeo

bum2kev

Member
Jan 2, 2012
26
4
Hi,
I use the 2015 shield tv for emulation. could someone confirm me that the overclock will boost significantly
the emulation of dreamcast, dolphin and maybe aerther2sx (ps2 emulator) ?
thanks for your reports
regards
 
  • Like
Reactions: mikty

mikty

Member
Aug 18, 2017
11
4

Zeethoracle

Member
Nov 5, 2013
6
1
I appreciate such projects like this for our beloved shield devices. Quick question are there any other enhancements to this specific kernel besides the overclock vs the stock one? I’m currently on 9.1 Shield experience so might there be a compatibility issue with the latest relase of your C.Kern?
 
  • Like
Reactions: beatLeo

mikty

Member
Aug 18, 2017
11
4
Hi, I'm still on 7.2.3 version on stock firmware but with root. Can I flash directly with this overclock kernel or must I need to upgrade before on the new firmware 9.1 before flashing this last overclock kernel ? Thanks for your clarification. Regards
 

mikty

Member
Aug 18, 2017
11
4
so I updated the official firmware to 9.1 on my shield tv 2015 pro. Then I begin to flash the kernel using Minimal ADB and Fastboot with the command:
fastboot flash boot Kernel_R1_8.img.

then I install magisk and after Shield_Tools_V1_4.apk sucessfully. (see picks)
IMG_2342.JPG


IMG_2343.JPG


but If I reboot the shield tv I can't use anymore Shield_Tools_V1_4 and the kernel become again in 4.9.141:

IMG_2344.JPG


IMG_2346.JPG


If someone could help me to find what's wrong and why I can't keep the kernel after a reboot. thanks
regards.
 

Attachments

  • IMG_2341.JPG
    IMG_2341.JPG
    1.3 MB · Views: 26
  • IMG_2344.JPG
    IMG_2344.JPG
    1.3 MB · Views: 13
Last edited:

mikty

Member
Aug 18, 2017
11
4
nevermind, I successfully install the 1.8 kernel with the help of twrp-3.3.1-0-shieldtv-pie (install button, then install img from the hdd directly).
thanks again for your updated kernel
regards
 

xiaomi_jr

New member
Aug 13, 2022
1
0
I have flashed the 1.8 kernel on Shield 2017. Everythings works good!

Now I would like to do a factory reset of my shield to solve unrelated issues. What will happen? Does the kernel will be wiped out or not? Will there be problem when reinstalling Magisk and ShieldTools?

Thanks for the info
 

snake218

Senior Member
Nov 1, 2012
571
143
Hi, I'm having troubles with the kernel. Nvidia shield tv 2017 16gb, latest 9.1.

Installed 1.8 kernel with adb, booted then installed magisk and shield tools 1.4, reboot. Also installed Kernel via TWRP in my tests.

Edit: The problem is i have a microsd adapter connected that have worked normally on all firmwares, and after flashing kernel, the usb is not recognized anymore, it gives the "usb is ejected" error. Tried another usb stick and same problem. Overclock and fan control is working as fine.

USB sicks work fine in the laptop, i even reformat the usb stick in NTFS and Exfat and shield failed to recognize it too.

I already re flash everything on the shield (i tried the whole process 3 times, flash stock 9.0, update to 9.1, flash kernel, magisk app and shield tools) and the only solution is run stock kernel, the USB sticks are recognized again.
 
Last edited:

zollverein

New member
Aug 18, 2015
1
1
Also have usb issues with 2017 shield. Any USB storage devices are detected and can be formatted but come up as corrupted and can't be mounted as either adoptable or external storage.
 
  • Like
Reactions: snake218

snake218

Senior Member
Nov 1, 2012
571
143
Also have usb issues with 2017 shield. Any USB storage devices are detected and can be formatted but come up as corrupted and can't be mounted as either adoptable or external storage.
Yes, we have the same problem, only one USB flash drive could be recognized, but after format like external/internal storage, became corrupted.

Also updated to 9.1 hotfix 1, flashed TWRP (twrp-3.3.1-0-shieldtv-pie) and installed 1.8 Kernel via TWRP, i got a bootloop, device always restarted to bootloader.
 
Last edited:

BXM500

Senior Member
Dec 4, 2010
114
19
Yes, we have the same problem, only one USB flash drive could be recognized, but after format like external/internal storage, became corrupted.

Also updated to 9.1 hotfix 1, flashed TWRP (twrp-3.3.1-0-shieldtv-pie) and installed 1.8 Kernel via TWRP, i got a bootloop, device always restarted to bootloader.
Try not to flash TWRP, just boot into it. Does that work?

fastboot boot twrp.img
 

A.N.Droid

Senior Member
Dec 1, 2013
559
183
The latest kernel, R1.8, is for Shield experience 9.1. Supported Shield TVs include all 2015 models. The 2017 model (darcy) is untested with R1.8 and is therefore experimental. The 2019 models are not supported. Enjoy the kernel and leave any feedback that you may have :)

hi!
i haven´t been here since years...

i flashed your R1.8 kernel and also installed magisk and the shield tools as per your instruction on page 1 (fastboot, twrp is not installed) yesterday on my 2015 shield tv with 9.1 which i factory reseted before.
after setting everything up again, i attached various external drives (mostly sandisk and jmicron) but none of them work. i tried 2 usb sticks, one micro-sd card and three ssd drives, all with different size and controller (seagate, sabrent and a generic one).
none of them work. i always get the same notification and then they get ejected for being defective. i even reformated whith exfat and ntfs on the pc but it makes no difference. there is no way to format on the shield of course as they never get mounted. in media-rw, the corresponding folder(s) appear but are empty. some of them i was using regulary on the shield all the time without problem and on my pc, they work perfectly fine.
the main thing i use root for is streaming music from the shield, directly from yt and yt music to my sonos play with airmusic - which works great.
i wished i could download all the playlists i made there to usb for listening when driving. thats what i tried to do yesterday.
if i can be of any help fixing the issue, i would be glad to do so!

thanks for the otherwise great kernel!

edit:

i did some more tests and found out that exfat support is obviously missing or broken. i tried many different sticks and cards. as long as they are in fat32, the shield accepts them all. the problem with fat32 is that the maximum size of that filesystem is 32GB. so i took 2 different 64gb sticks the shield had rejected and created small patitions in fat32, leaving the rest unpartitioned. one with a 16gb partiton, in fat32 and one with a 26gb partition (i tried 32gb but thas obviously a bit too much even if the formatting in fat32 was possible.
this must be the case for whatever drive you connect to the shield, e.g. take a 1tb ssd, make one parition in fat 32 that is a little less then 32gb and the shield will accept it. of course, this doesn´t make much sense.
i dont believe i could find the flaw and fix it myself in reasonable time but i believe the op is capable of fixing that issue easily.
 
Last edited:
  • Like
Reactions: snake218

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    @A.N.Droid, @snake218, and others having problems with exfat / ntfs, I've added a Magisk module called Vold9_0 to the first post that should fix the issue. Right after installing the module and rebooting you may need to unplug your Shield TV and plug it back in to get it to boot.
    1
    @A.N.Droid, @snake218, and others having problems with exfat / ntfs, I've added a Magisk module called Vold9_0 to the first post that should fix the issue. Right after installing the module and rebooting you may need to unplug your Shield TV and plug it back in to get it to boot.
    First of all, Thank you for all your work.

    Fix is working, tested on Shield 2017, latest 9.1
    - Installed kernel via adb
    - installed Vold9 module on magisk, reboot
    - Rebooted to "no command" screen
    - Unplug, plug power back and booted normally, USB storage is working.
  • 41
    The latest kernel, R1.8, is for Shield experience 9.1. Supported Shield TVs include all 2015 and 2017 models. The 2019 models are not supported. Enjoy the kernel and leave any feedback that you may have :)

    Install Instructions:
    - Download and extract Kernel_R1_8.zip
    - Flash Kernel_R1_8.img in fastboot using fastboot flash boot Kernel_R1_8.img
    - You could also fastboot boot the kernel before flashing it to make sure everything is working correctly
    - Once your shield has booted up again install the latest magisk app if you haven't already
    - Open the magisk app and update / reboot if necessary
    - I've seen the shield fail to boot when rebooting right after updating Magisk. If this happens, just unplug your shield tv and plug it back in and everything should work fine
    - Install Shield_Tools_V1_4.apk and tune the kernel to your liking. By default, all settings are stock
    - If you need exfat / ntfs support, then install the attached Vold9_0 Magisk module

    Kernel R1.8 Features:
    - Based on the kernel sources for shield experience 9.1
    - 2.22 Ghz CPU overclock
    - 1.23 GHz GPU overclock
    - 1866 Mhz RAM Overclock
    - Fully customizable fan settings
    - The touchpad on the 2015 controller (blake) is enabled and works correctly
    - The blake touchpad cursor speed is adjustable
    - One of the the top triggers on the blake controller can be selected to act like a mouse button. This can be used along with the touchpad to scroll fairly conveniently
    - The kernel version has been updated from 4.9.141 to 4.9.324 using the upstream android 4.9-q branch. Some changes have also been integrated from Linux for tegra
    - Compiled with the latest aosp prebuilt clang, clang-r445002 version 14.0.2
    - Compiled with -O3 speed optimizations and link time optimization (LTO)
    - CFI is enabled for additional security


    Note: The cpu throttles to around 2.0Ghz at 66C. Keep this in mind when setting fan speeds if you're trying to maximize performance. Also, regardless of what you set, the fan will always turn off when the temperature falls below the lowest value. I'll probably change this in a future shield tools release.

    Old Changelogs:

    R1.1:
    Prerooted with magisk
    Selinux is permissive by default

    R1.2:
    GPU Overclock up to 1.23 GHz
    Boot frequencies are default and must be adjusted manually (using my app) to overclock
    Ondemand and interactive governors added. Interactive is default
    (debug feature) Serial console over ttyUSB0
    First release of shield tools, an app to help tune this kernel. Shield Tools does not work with earlier releases

    R1.3
    First release for pie
    Fully customizable fan settings
    Shield tools updated to V1.1 with fan controls and changes needed for pie
    Vendor and system verity are disabled
    System as root is removed to support Magisk.

    R1.3.1
    Use kernel modules again to fix some bugs such as USB issues.

    R1.4 / Shield Tools 1.2.1
    Kernel updated from 4.9.140 to 4.9.162
    1866 MHz RAM Overclock (Improves graphics performance significantly)
    Power throttling added by Nvidia in the pie release has been removed
    RAM control added to Shield Tools
    Shield Tools saves settings and applies them on boot now
    Shield Tools 1.2.1 fixes fan settings for 2017 shields.

    R1.5 / Shield Tools 1.3
    Kernel updated with Nvidia's latest rel-32-r7 sources
    Many more selectable RAM frequencies
    RAM voltage is slightly increased at frequencies above 1725 MHz
    New installation method that doesn't modify the system or vendor partitions
    Standby frequency reset issue fixed (actually fixed in Shield Tools 1.2.2)
    Kernel version is 4.9.140 again, but the sdcard bootloop issue is gone

    R1.6 / Shield Tools 1.4
    First release for android 11
    Kernel version updated from 4.9.141 to 4.9.309
    Touchpad on blake controller is enabled by default and a problem with the cursor jumping on initial touch has been fixed
    Blake touchpad speed can be adjusted
    Either the top right or top left trigger on the blake controller can be selected to act like a mouse button. This makes scrolling using the touchpad fairly convenient
    When setting fan speed values the same speed can now be repeated
    The speed and temperature dialogs now automatically scroll together
    Fan hysteresis is now set when changing temperatures to fix potential problems with the fan speed not decreasing properly
    All security features are left enabled. I'll disable them if there's actually a need for it
    Magisk's root directory overlay feature is used to load kernel modules

    R1.7
    Changes from the 9.0.2 release have been merged
    Kernel version updated to 4.9.311
    Werrors preventing compilation with clang 14 have been fixed
    Several CFI failures have been fixed allowing enforcing CFI to be used (at least on 2015 shields)
    Clang is now used to compile the kernel with LTO and CFI enabled
    Debug tracing has been disabled to save some memory
    In previous releases the voltage was too low on some shield tvs to reach a 2.22 GHz CPU overclock. This has been fixed.


    Changelog for the latest release R1.8:
    Changes from the 9.1 release have been merged
    Kernel version updated to 4.9.324
    CFI failure in the realtek ethernet driver that caused the 2017 shield to bootloop should be fixed



    Big thanks to Magisk.

    Standard Disclaimer: You're responsible for what you do to your devices, so don't blame anyone else if something goes wrong.

    Kernel Sources: https://github.com/rootfan/
    3
    @SkOrPn, upgrading Magisk should work fine with R1.4. I upgraded directly from Magisk Manager without issue. The problem you had seems to be that Shield Tools was denied root access. If you have any further problems make sure that Shield Tools has been granted root permission in Magisk Manager. @urkelz, I haven't seen the cpu overclock reset when coming out of standby. If it's an issue that others are having I'll look into fixing it.

    Magisk Rooted / Overclockable Boot.img
    Below you'll find a fastboot flashable magisk rooted overclock kernel. Extract the zip and fastboot boot the image to see if it works. If all goes well, you can flash it. Hopefully this will make the installation process easier for those that have had problems. You cannot update Magisk when using this version though and you may need to install the Magisk Manager app seperately. Also, as I only have the 2015 shield pro, you'll have to let me know if it works on the other models. @[email protected], go ahead and give this a try. You don't need a mouse for it.
    3
    I was under the impression magisk is root and kernal is for overclocking totally separate. I think once I read through the thread again the kernal is for overclocking and it is separate but only works on 7.2.3 guess I totally missed it I swear I've read this thread 10 times now. So root works on 8.0 but kernal only on 7.2.3. Can anyone confirm please.
    Yes, as it says on the main thread.

    kernel is part of the boot.img
    So both zip's contains a kernel, one of them has an edited kernel containing overclocks, other one dosnt.
    Both are rooted with magisk.

    The one for 7.2.3, is overclocked and rooted.
    The one for 8.0 is rooted.
    3
    @dfl and @imoldchen I've been working on an overclock kernel for 8.0. The kernel is basically ready to go, but I want to provide full fan control which will require some additions to the shield tools app. Hopefully I'll be able to get something out soon. @snake218 if you're on full android oreo and not pie, your best bet is to use the zip and twrp provided in this post https://forum.xda-developers.com/showpost.php?p=80110657&postcount=18. The problem is that you need the shield tools app to enable overclocking, and that is designed for android tv so it may not work on the full android that you're using.
    3
    Thank you so much for this! The performance increase is amazing on Shield 2015.

    For questions regarding Compatibility: Check that the first five digits of your kernel version under System-> Info match with the one you are about to flash (4.9.140-xxxxxxxxx), that should work, I am on Shied TV 8.2.2 .

    Widevine (Netflix etc.) is not affected.

    Flashing instructions:

    1. Boot to fastboot ( adb reboot bootloader )
    2. Unlock bootloader - this will wipe ALL of your data ( fastboot oem unlock )
    3. Reboot and reenable developer options
    4. Boot to twrp ( fastboot boot your/twrp/image.img
    5. Via MTP place the Kernel in the shields /sdcard
    6. With mouse flash the kernel using the gui
    7. Boot the device
    8. Install Shieldtools.apk ( adb install path/to/your/shield-tools.apk
    9. Launch Shield tools and grant root permissions permanently
    10. Tweak your settings
    11. Enjoy your overclocked Shield!

    I have maxed out all settings and it is working great, additionally I changed the fan settings for >70°C to max speed, since then I don't get any freezes.


    I have tested one game of which I knew performs badly on stock shield settings (Mario Kart WII on luigi circuit) and Dolphin MMJR, on stock Kernel. With all performance enhancing tweaks the max game speed on the first map is 78%, native Wii resolution.
    Using the same conditions with maxed out kernel and performance governor the max game speed goes as high as 92% - when there is not too much action going on on screen! It is definitly playable now though.

    On 720p Fps vary around 44 and 47 and the game speed is between 70% and 80%, looks nice, but feels slow.

    Sling Shot Extreme Open GL ES 3.1 on 3DMark gives 4438 points and Sling Shot on 3DMark gives 512 points, making it better than 95% than all other shields according to the stats.

    Thank you very much for this development.