Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Hekate Switch: Difference between revisions

From GameBrew
No edit summary
(fix the octopus)
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=Hekate - Nyx
|title=Hekate - Nyx
|image=hekatenyxswitch.png
|image=hekatenyxnx.png
|description=Custom Nintendo Switch bootloader, firmware patcher, and more.
|description=Custom Nintendo Switch bootloader, firmware patcher, and more.
|author=CTCaer
|author=CTCaer
Line 8: Line 8:
|version=6.0.3_1.5.3
|version=6.0.3_1.5.3
|license=GPL-2.0
|license=GPL-2.0
|download=https://dlhb.gamebrew.org/switchhomebrews/hekatenyxswitch.7z
|download=https://github.com/CTCaer/hekate/releases
|website=https://gbatemp.net/threads/hekate-6-0-0-and-nix-1-5-0-released.623498/
|website=https://gbatemp.net/threads/hekate-6-0-0-and-nix-1-5-0-released.623498/
|source=https://github.com/CTCaer/hekate
|source=https://github.com/CTCaer/hekate
|donation=  
|donation=  
}}
}}
{{#seo:
Hekate is a powerful and user-friendly bootloader for the Nintendo Switch that allows users to customize and control their device's boot process.  
|title=Switch Homebrew Apps (System Tools) - GameBrew
|title_mode=append
|image=hekatenyxswitch.png
|image_alt=Hekate - Nyx
}}
Hekate is a powerful and user-friendly bootloader for the Nintendo Switch that allows users to customize and control their device's boot process. Unlike the standard Nintendo Switch bootloader, which provides limited functionality, Hekate provides a wide range of options and features that can greatly enhance the user's experience.


One of the key benefits of Hekate is its graphical user interface (GUI), which makes it easy for even novice users to navigate and understand. The interface provides a variety of customization options, including the ability to change the device's boot logo and select the default boot configuration.
One of the key benefits of Hekate is its graphical user interface (GUI), which makes it easy for even novice users to navigate and understand. The interface provides a variety of customization options, including the ability to change the device's boot logo and select the default boot configuration.


In addition to its easy-to-use GUI, Hekate offers a range of other features that are not available on the standard Nintendo Switch bootloader. For example, Hekate allows users to boot directly into the device's recovery mode, which can be useful for troubleshooting and repairing the device.
Another notable feature of Hekate is its support for [[emuMMC Switch|emuMMC]] (Emulated NAND). It allows you to allocate a section of your SD card as internal storage (NAND) for your Switch while it's running custom firmware. This means you can keep your stock OS for online use in games you own; It also protects the system from potential bricks since all the software is run from the SD card and any modifications can be reversed or recovered from.
 
Another notable feature of Hekate is its support for emuMMC (Emulated NAND), which allows users to create a separate virtual Nintendo Switch operating system on their device. This feature is particularly useful for users who wish to experiment with custom firmware or other modifications without affecting the device's primary operating system.


== Features ==
== Features ==
* '''Fully Configurable and Graphical''' with Touchscreen and Joycon input support
* Fully Configurable and Graphical with Touchscreen and Joycon input support.
* '''Launcher Style, Background and Color Themes'''
* Launcher Style, Background and Color Themes.
* '''HOS (Switch OS) Bootloader''' -- For CFW Sys/Emu, OFW Sys and Stock Sys
* HOS (Switch OS) Bootloader - For CFW Sys/Emu, OFW Sys and Stock Sys.
* '''Android & Linux Bootloader'''
* Android & Linux Bootloader.
* '''Payload Launcher'''
* Payload Launcher.
* '''eMMC/emuMMC Backup/Restore Tools'''
* eMMC/emuMMC Backup/Restore Tools.
* '''SD Card Partition Manager''' -- Prepares and formats SD Card for any combo of HOS (Sys/emuMMC), Android and Linux
* SD Card Partition Manager - Prepares and formats SD Card for any combo of HOS (Sys/emuMMC), Android and Linux.
* '''emuMMC Creation & Manager''' -- Can also migrate and fix existing emuMMC
* emuMMC Creation & Manager - Can also migrate and fix existing emuMMC.
* '''Switch Android & Linux flasher'''
* Switch Android & Linux flasher.
* '''USB Mass Storage (UMS) for SD/eMMC/emuMMC''' -- Converts Switch into a SD Card Reader
* USB Mass Storage (UMS) for SD/eMMC/emuMMC - Converts Switch into a SD Card Reader.
* '''USB Gamepad''' -- Converts Switch with Joycon into a USB HID Gamepad
* USB Gamepad - Converts Switch with Joycon into a USB HID Gamepad.
* '''Hardware and Peripherals info''' (SoC, Fuses, RAM, Display, Touch, eMMC, SD, Battery, PSU, Charger)
* Hardware and Peripherals info (SoC, Fuses, RAM, Display, Touch, eMMC, SD, Battery, PSU, Charger).
* '''Many other tools''' like Archive Bit Fixer, Touch Calibration, SD/eMMC Benchmark, AutoRCM enabler and more
* Many other tools like Archive Bit Fixer, Touch Calibration, SD/eMMC Benchmark, AutoRCM enabler and more.
 
'''NOTE:''' For maximum performance of UMS in Windows, you need to run '''nyx_usb_max_rate__run_only_once_per_windows_pc.reg''', only once per PC you have.
It only affects hekate's usb device. You can also view that file with text editor and see what it does. Linux/Mac OS users do not need that.


== How to update ==
'''Note:''' For maximum performance of UMS in Windows, you need to run nyx_usb_max_rate__run_only_once_per_windows_pc.reg, only once per PC you have. It only affects hekate's usb device. You can also view that file with text editor and see what it does. Linux/Mac OS users do not need that.
* Drag n drop <code>bootloader</code> folder into sd card root and hit merge/replace.<br />
'''No need to delete that folder first''', especially if you want your configs and payloads.
* You can choose to update your RCM injection device or PC with the new <code>hekate_ctcaer_x.x.x.bin</code> or not.<br />
In any case, <code>bootloader/update.bin</code>, will be checked and if newer it will get loaded.<br />
<code>update.bin</code> is hekate and it is already copied with the <code>bootloader</code> folder drag n drop update process.


'''Notice about Atmosphere 1.0.0 and up:''' The <code>fss0=atmosphere/fusee-secondary.bin</code> in <code>hekate_ipl.ini</code> must be changed to <code>fss0=atmosphere/package3</code>. And make sure that <code>atmosphere/contents</code> folder does not have old Atmosphere components.<br />
==Installation==
'''Notice about resized emuMMC:''' Resized emuMMC does not have the slow bug anymore. You can create a new one or recreate it via Nyx and the issue will be gone.
How to update:
* Drag n drop <code>bootloader</code> folder into sd card root and hit merge/replace.  
* No need to delete that folder first, especially if you want your configs and payloads.
* You can choose to update your RCM injection device or PC with the new <code>hekate_ctcaer_x.x.x.bin</code> or not.
* In any case, <code>bootloader/update.bin</code>, will be checked and if newer it will get loaded.
* <code>update.bin</code> is hekate and it is already copied with the <code>bootloader</code> folder drag n drop update process.


==Media==
Notice about Atmosphere 1.0.0 and up:
'''HEKATE 6 has just dropped so lets update! - ([https://www.youtube.com/watch?v=tqdBNaZmXHA Alien Retro Gaming])'''<br>
* The <code>fss0=atmosphere/fusee-secondary.bin</code> in <code>hekate_ipl.ini</code> must be changed to <code>fss0=atmosphere/package3</code>.
<youtube>tqdBNaZmXHA</youtube>
* And make sure that <code>atmosphere/contents</code> folder does not have old Atmosphere components.


==Screenshots==
Notice about resized emuMMC:
https://dlhb.gamebrew.org/switchhomebrews/hekatenyxswitch-01.png
* Resized emuMMC does not have the slow bug anymore.  
https://dlhb.gamebrew.org/switchhomebrews/hekatenyxswitch-02.png
* You can create a new one or recreate it via Nyx and the issue will be gone.
https://dlhb.gamebrew.org/switchhomebrews/hekatenyxswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/hekatenyxswitch-04.png


== Bootloader folders and files ==
==User guide==
{| class="wikitable"
=== Bootloader folders and files ===
! Folder/File
{| class="wikitable"  style="width: 800px;"
! style="width: 20%;"|Folder/File
! Description
! Description
|-
|-
Line 73: Line 61:
| Main folder.
| Main folder.
|-
|-
| |__ bootlogo.bmp
|&nbsp;<nowiki>|</nowiki>__ bootlogo.bmp
| It is used if no <code>logopath</code> key is found. User provided. Can be skipped.
| It is used if no <code>logopath</code> key is found. User provided. Can be skipped.
|-
|-
| |__ hekate_ipl.ini
|&nbsp;<nowiki>|</nowiki>__ hekate_ipl.ini
| Main bootloader configuration and boot entries in <code>Launch</code> menu.
| Main bootloader configuration and boot entries in <code>Launch</code> menu.
|-
|-
| |__ nyx.ini
|&nbsp;<nowiki>|</nowiki>__ nyx.ini
| Nyx GUI configuration
| Nyx GUI configuration
|-
|-
| |__ patches.ini
|&nbsp;<nowiki>|</nowiki>__ patches.ini
| Add external patches. Can be skipped. A template can be found [https://github.com/CTCaer/hekate/blob/master/res/patches_template.ini here]
| Add external patches. Can be skipped. A template can be found [https://github.com/CTCaer/hekate/blob/master/res/patches_template.ini here]
|-
|-
| |__ update.bin
|&nbsp;<nowiki>|</nowiki>__ update.bin
| If newer, it is loaded at boot. Normally for modchips. Auto updated and created at first boot.
| If newer, it is loaded at boot. Normally for modchips. Auto updated and created at first boot.
|-
|-
Line 94: Line 82:
| Nyx user resources. Icons and more.
| Nyx user resources. Icons and more.
|-
|-
| |__ background.bmp
|&nbsp;<nowiki>|</nowiki>__ background.bmp
| Nyx - Custom background. User provided.
| Nyx - Custom background. User provided.
|-
|-
| |__ icon_switch.bmp
|&nbsp;<nowiki>|</nowiki>__ icon_switch.bmp
| Nyx - Default icon for CFWs.
| Nyx - Default icon for CFWs.
|-
|-
| |__ icon_payload.bmp
|&nbsp;<nowiki>|</nowiki>__ icon_payload.bmp
| Nyx - Default icon for Payloads.
| Nyx - Default icon for Payloads.
|-
|-
Line 106: Line 94:
| hekate and Nyx system modules folder.
| hekate and Nyx system modules folder.
|-
|-
| |__ emummc.kipm
|&nbsp;<nowiki>|</nowiki>__ emummc.kipm
| emuMMC KIP1 module. !Important!
| emuMMC KIP1 module. !Important!
|-
|-
| |__ libsys_lp0.bso
|&nbsp;<nowiki>|</nowiki>__ libsys_lp0.bso
| LP0 (sleep mode) module. Important!
| LP0 (sleep mode) module. Important!
|-
|-
| |__ libsys_minerva.bso
|&nbsp;<nowiki>|</nowiki>__ libsys_minerva.bso
| Minerva Training Cell. Used for DRAM Frequency training. !Important!
| Minerva Training Cell. Used for DRAM Frequency training. !Important!
|-
|-
| |__ nyx.bin
|&nbsp;<nowiki>|</nowiki>__ nyx.bin
| Nyx - hekate's GUI. !Important!
| Nyx - hekate's GUI. !Important!
|-
|-
| |__ res.pak
|&nbsp;<nowiki>|</nowiki>__ res.pak
| Nyx resources package. !Important!
| Nyx resources package. !Important!
|-
|-
| |__ thk.bin
|&nbsp;<nowiki>|</nowiki>__ thk.bin
| Atmosphère Tsec Hovi Keygen. !Important!
| Atmosphère Tsec Hovi Keygen. !Important!
|-
|-
Line 134: Line 122:
|}
|}


== Bootloader configuration ==
=== Bootloader configuration ===
The bootloader can be configured via 'bootloader/hekate_ipl.ini' (if it is present on the SD card). Each ini section represents a boot entry, except for the special section 'config' that controls the global configuration.
The bootloader can be configured via 'bootloader/hekate_ipl.ini' (if it is present on the SD card). Each ini section represents a boot entry, except for the special section 'config' that controls the global configuration.


There are four possible type of entries. &quot;'''[ ]'''&quot;: Boot entry, &quot;'''{ }'''&quot;: Caption, &quot;'''#'''&quot;: Comment, &quot;''newline''&quot;: .ini cosmetic newline.
There are four possible type of entries. &quot;'''[ ]'''&quot;: Boot entry, &quot;'''{ }'''&quot;: Caption, &quot;'''#'''&quot;: Comment, &quot;'''newline'''&quot;: .ini cosmetic newline.


'''You can find a template [https://github.com/CTCaer/hekate/blob/v6.0.2/res/hekate_ipl_template.ini Here]'''
You can find a template [https://github.com/CTCaer/hekate/blob/v6.0.2/res/hekate_ipl_template.ini here].


=== hekate Global Configuration keys/values (when entry is ''[config]''): ===
==== hekate Global Configuration keys/values (when entry is [config]) ====
{| class="wikitable"
{| class="wikitable"  style="width: 800px;"
! Config option
! style="width: 20%;"| Config option
! Description
! Description
|-
|-
Line 174: Line 162:
|}
|}


=== Boot entry key/value combinations: ===
==== Boot entry key/value combinations ====
{| class="wikitable"
{| class="wikitable"  style="width: 800px;"
! Config option
! style="width: 20%;"| Config option
! Description
! Description
|-
|-
Line 203: Line 191:
| Replaces the exosphere fatal binary for Mariko
| Replaces the exosphere fatal binary for Mariko
|-
|-
| ----------------------
|----------------------
| ----------------------------------------------------------
|----------------------------------------------------------
|-
|-
| kip1patch=patchname
| kip1patch=patchname
Line 230: Line 218:
| Enables Atmosphère patching. Not needed when <code>fss0</code> is used.
| Enables Atmosphère patching. Not needed when <code>fss0</code> is used.
|-
|-
| ----------------------
|----------------------
| ----------------------------------------------------------
|----------------------------------------------------------
|-
| payload={FILE path}
| payload={FILE path}
| Payload launching. Tools, Android/Linux, CFW bootloaders, etc. Any key above when used with that, doesn't get into account.
| Payload launching. Tools, Android/Linux, CFW bootloaders, etc. Any key above when used with that, doesn't get into account.
|-
|-
| ----------------------
|----------------------
| ----------------------------------------------------------
|----------------------------------------------------------
|-
| l4t=1
| l4t=1
| L4T Linux/Android native launching.
| L4T Linux/Android native launching.
Line 254: Line 240:
| Each distro supports more keys. Check README_CONFIG.txt for more info.
| Each distro supports more keys. Check README_CONFIG.txt for more info.
|-
|-
| ----------------------
|----------------------
| ----------------------------------------------------------
|----------------------------------------------------------
|-
| id=IDNAME
| id=IDNAME
| Identifies boot entry for forced boot via id. Max 7 chars.
| Identifies boot entry for forced boot via id. Max 7 chars.
Line 273: Line 258:
'''Warning''': Careful when you define ''fss0 core'' kips when using <code>fss0</code> or the folder (when using <code>/*</code>) includes them. This is in case the kips are incompatible between them. If compatible, you can override <code>fss0</code> kips with no issues (useful for testing with intermediate kip changes). In such cases, the <code>kip1</code> line must be under <code>fss0</code> line.
'''Warning''': Careful when you define ''fss0 core'' kips when using <code>fss0</code> or the folder (when using <code>/*</code>) includes them. This is in case the kips are incompatible between them. If compatible, you can override <code>fss0</code> kips with no issues (useful for testing with intermediate kip changes). In such cases, the <code>kip1</code> line must be under <code>fss0</code> line.


=== Boot entry key/value combinations for Exosphère: ===
==== Boot entry key/value combinations for Exosphère ====
{| class="wikitable"
{| class="wikitable"  style="width: 900px;"
! Config option
! style="width: 20%;"| Config option
! Description
! Description
|-
|-
Line 298: Line 283:
'''Note2''': <code>blank_prodinfo_{sys/emu}mmc</code>, <code>allow_writing_to_cal_sysmmc</code> and <code>usb30_force_enabled</code> in <code>exosphere.ini</code> and <code>system_settings.ini</code> respectively, are the only atmosphere config keys that can affect hekate booting configuration externally, '''if''' the equivalent keys in hekate config are missing.
'''Note2''': <code>blank_prodinfo_{sys/emu}mmc</code>, <code>allow_writing_to_cal_sysmmc</code> and <code>usb30_force_enabled</code> in <code>exosphere.ini</code> and <code>system_settings.ini</code> respectively, are the only atmosphere config keys that can affect hekate booting configuration externally, '''if''' the equivalent keys in hekate config are missing.


=== Payload storage: ===
==== Payload storage ====
hekate has a boot storage in the binary that helps it configure it outside of BPMP enviroment:
hekate has a boot storage in the binary that helps it configure it outside of BPMP enviroment:


{| class="wikitable"
{| class="wikitable"  style="width: 800px;"
! Offset / Name
! style="width: 20%;"| Offset / Name
! Description
! Description
|-
|-
Line 330: Line 315:
|}
|}


=== Nyx Configuration keys/values (nyx.ini): ===
==== Nyx Configuration keys/values (nyx.ini) ====
{| class="wikitable"
{| class="wikitable"  style="width: 800px;"
! Config option
! style="width: 20%;"| Config option
! Description
! Description
|-
|-
Line 369: Line 354:
|}
|}


==FAQ==
===FAQ===
'''Q. Which Linux/Android distributions are supported in Partition Manager?'''<br>
'''Q. Which Linux/Android distributions are supported in Partition Manager?'''<br>
* For L4T Linux you can use the official Ubuntu Bionic 3.4.0 and newer or any other distro betas.
* For L4T Linux you can use the official Ubuntu Bionic 3.4.0 and newer or any other distro betas.
Line 379: Line 364:
* It is also suggested to format your sd card via hekate. That's because it prepares it for performance. something that many partitioning tools neglect.
* It is also suggested to format your sd card via hekate. That's because it prepares it for performance. something that many partitioning tools neglect.


<pre>
==Screenshots==
hekate (c) 2018,     naehrwert, st4rk.
https://dlhb.gamebrew.org/switchhomebrews/hekatenyxnx2.png
        (c) 2018-2022, CTCaer.
 
https://dlhb.gamebrew.org/switchhomebrews/hekatenyxnx3.png
 
https://dlhb.gamebrew.org/switchhomebrews/hekatenyxnx4.png
 
==Compatibility==
Supports booting ALL current CFWs, Android/Linux booting and payload tools. No more SD card removals.
 
Supports: Erista (T210) and Mariko (T210B01) units.
 
Latest HOS supported: 16.0.2.
 
==Changelog==
'''hekate v6.0.3'''
*A mitigation was added for bad chainloaders that leave sd gpios in a bad state.
*L4T: Now some 2019 T210B01 Samsung ram chips can be overclocked to 2133 MHz for Linux/Android.
*L4T: Added a mandatory change for supporting SD UHS DDR200 bus speed for Linux/Android.
*Fixed an edge case where if hekate was run and the rtc alarm was fired after, booting to HOS would power off the device.
*Since in that case the Switch was awakened via Power or USB, all flags are now cleared during Auto HOS Power off checks.
*Various fixes and improvements.
 
'''Nyx v1.5.3'''
*SD Card/eMMC benchmark now stalls less between each read, in order to stress the cards more.
*Various fixes and improvements.
 
'''BDK'''
*GPIO: Reorder configuration of input/output functions in order to mitigate bad configs from previous loaders.
*GPIO: Added a dobounce set function.
*SDMMC: Added SD UHS DDR200 bus speed mode, capable of reaching 200MB/s on UHS-I bus.
*Can be enabled with the BDK_SDMMC_UHS_DDR200_SUPPORT build time flag.
*SDMMC: Added proper SD DDR50 bus speed mode. Not used by default.
*SDMMC: Corrected the order of setting SD power limit. By spec, it only matters on SDR50 and up.
*SDMMC: Fixed an issue with sd removal detection.
*SDDMC: Added sdmmc driver type set support.
*SDMMC: Added debug printing functions of all SD card registers (CID/CSD/SCR/SSR).
*SDRAM: Added a function that allows latency allowance for SDMMC1 to be patched to eMMC values.
*INPUT: Reordered power on of touchscreen in order to induce a small reset at start.
*UTILS: Removed stop rtc alarm from power management functions.
 
==Credits==
hekate (c) 2018, naehrwert, st4rk.<br>
hekate (c) 2018-2022, CTCaer.<br>


Nyx GUI (c) 2019-2022, CTCaer.
Nyx GUI (c) 2019-2022, CTCaer.


Thanks to: derrek, nedwill, plutoo, shuffle2, smea, thexyz, yellows8.
Thanks to: derrek, nedwill, plutoo, shuffle2, smea, thexyz, yellows8.<br>
Greetings to: fincs, hexkyz, SciresM, Shiny Quagsire, WinterMute.
Greetings to: fincs, hexkyz, SciresM, Shiny Quagsire, WinterMute.<br>


Open source and free packages used:
Open source and free packages used:
- FatFs R0.13a, Copyright (c) 2017, ChaN
* FatFs R0.13a, Copyright (c) 2017, ChaN.
- bcl-1.2.0, Copyright (c) 2003-2006, Marcus Geelnard
* bcl-1.2.0, Copyright (c) 2003-2006, Marcus Geelnard.
- Atmosphère (Exosphere types/panic, prc id kernel patches),
* Atmosphère (Exosphere types/panic, prc id kernel patches), Copyright (c) 2018-2019, Atmosphère-NX.
  Copyright (c) 2018-2019, Atmosphère-NX
* elfload, Copyright (c) 2014 Owen Shepherd, Copyright (c) 2018 M4xw.
- elfload, Copyright (c) 2014 Owen Shepherd, Copyright (c) 2018 M4xw
* Littlev Graphics Library, Copyright (c) 2016 Gabor Kiss-Vamosi.
- Littlev Graphics Library, Copyright (c) 2016 Gabor Kiss-Vamosi
  <nowiki>                        ___
 
                        ___
                       .-'  `'.
                       .-'  `'.
                     /        \
                     /        \
Line 402: Line 426:
                     |        |          ___.--,
                     |        |          ___.--,
             _.._    |0) = (0) |    _.---'`__.-( (_.
             _.._    |0) = (0) |    _.---'`__.-( (_.
     __.--'`_.. '.__.\    '--. \_.-' ,.--'`    `&quot;&quot;`
     __.--'`_.. '.__.\    '--. \_.-' ,.--'`    `""`
     ( ,.--'`  ',__ /./;  ;, '.__.'`    __
     ( ,.--'`  ',__ /./;  ;, '.__.'`    __
     _`) )  .---.__.' / |  |\  \__..--&quot;&quot; &quot;&quot;&quot;--.,_
     _`) )  .---.__.' / |  |\  \__..--"" """--.,_
   `---' .'.''-._.-'`_./  /\ '.  \ _.--''````'''--._`-.__.'
   `---' .'.''-._.-'`_./  /\ '.  \ _.--''````'''--._`-.__.'
         | |  .' _.-' |  |  \  \  '.              `----`
         | |  .' _.-' |  |  \  \  '.              `----`
           \ \/ .'    \  \  '. '-._)
           \ \/ .'    \  \  '. '-._)
           \/ /        \  \    `=.__`'-.
           \/ /        \  \    `=.__`'-.
           / /\        `) )    / / `&quot;&quot;.`\
           / /\        `) )    / / `"".`\
     , _.-'.'\ \        / /    ( (    / /
     , _.-'.'\ \        / /    ( (    / /
       `--'`  ) )    .-'.'      '.'.  | (
       `--'`  ) )    .-'.'      '.'.  | (
             (/`    ( (`          ) )  '-;  [switchbrew]</pre>
             (/`    ( (`          ) )  '-;  [switchbrew] </nowiki>
 
==Changelog==
'''(v.6.0.3)'''
*hekate v6.0.3 changes
**A mitigation was added for bad chainloaders that leave sd gpios in a bad state
**L4T: Now some 2019 T210B01 Samsung ram chips can be overclocked to 2133 MHz for Linux/Android.
**L4T: Added a mandatory change for supporting SD UHS DDR200 bus speed for Linux/Adnroid.
**Fixed an edge case where if hekate was run and the rtc alarm was fired after, booting to HOS would power off the device.
**Since in that case the Switch was awakened via Power or USB, all flags are now cleared during Auto HOS Power off checks.
**Various fixes and improvements
*Nyx v1.5.3 Changes
**SD Card/eMMC benchmark now stalls less between each read, in order to stress the cards more.
**Various fixes and improvements
*BDK Changes
**GPIO: Reorder configuration of input/output functions in order to mitigate bad configs from previous loaders
**GPIO: Added a dobounce set function
**SDMMC: Added SD UHS DDR200 bus speed mode, capable of reaching 200MB/s on UHS-I bus.
**Can be enabled with the BDK_SDMMC_UHS_DDR200_SUPPORT build time flag
**SDMMC: Added proper SD DDR50 bus speed mode. Not used by default.
**SDMMC: Corrected the order of setting SD power limit. By spec, it only matters on SDR50 and up.
**SDMMC: Fixed an issue with sd removal detection
**SDDMC: Added sdmmc driver type set support
**SDMMC: Added debug printing functions of all SD card registers (CID/CSD/SCR/SSR).
**SDRAM: Added a function that allows latency allowance for SDMMC1 to be patched to eMMC values
**INPUT: Reordered power on of touchscreen in order to induce a small reset at start
**UTILS: Removed stop rtc alarm from power management functions
 
== External links ==
== External links ==
* Gbatemp - https://gbatemp.net/threads/hekate-6-0-0-and-nix-1-5-0-released.623498/
* GitHub - https://github.com/CTCaer/hekate
* Github - https://github.com/CTCaer/hekate
* GBAtemp - https://gbatemp.net/threads/hekate-6-0-0-and-nix-1-5-0-released.623498/

Revision as of 11:47, 26 April 2023

Hekate - Nyx
Hekatenyxnx.png
General
AuthorCTCaer
TypeSystem Tools
Version6.0.3_1.5.3
LicenseGPL-2.0
Last Updated2023/04/06
Links
Download
Website
Source

Hekate is a powerful and user-friendly bootloader for the Nintendo Switch that allows users to customize and control their device's boot process.

One of the key benefits of Hekate is its graphical user interface (GUI), which makes it easy for even novice users to navigate and understand. The interface provides a variety of customization options, including the ability to change the device's boot logo and select the default boot configuration.

Another notable feature of Hekate is its support for emuMMC (Emulated NAND). It allows you to allocate a section of your SD card as internal storage (NAND) for your Switch while it's running custom firmware. This means you can keep your stock OS for online use in games you own; It also protects the system from potential bricks since all the software is run from the SD card and any modifications can be reversed or recovered from.

Features

  • Fully Configurable and Graphical with Touchscreen and Joycon input support.
  • Launcher Style, Background and Color Themes.
  • HOS (Switch OS) Bootloader - For CFW Sys/Emu, OFW Sys and Stock Sys.
  • Android & Linux Bootloader.
  • Payload Launcher.
  • eMMC/emuMMC Backup/Restore Tools.
  • SD Card Partition Manager - Prepares and formats SD Card for any combo of HOS (Sys/emuMMC), Android and Linux.
  • emuMMC Creation & Manager - Can also migrate and fix existing emuMMC.
  • Switch Android & Linux flasher.
  • USB Mass Storage (UMS) for SD/eMMC/emuMMC - Converts Switch into a SD Card Reader.
  • USB Gamepad - Converts Switch with Joycon into a USB HID Gamepad.
  • Hardware and Peripherals info (SoC, Fuses, RAM, Display, Touch, eMMC, SD, Battery, PSU, Charger).
  • Many other tools like Archive Bit Fixer, Touch Calibration, SD/eMMC Benchmark, AutoRCM enabler and more.

Note: For maximum performance of UMS in Windows, you need to run nyx_usb_max_rate__run_only_once_per_windows_pc.reg, only once per PC you have. It only affects hekate's usb device. You can also view that file with text editor and see what it does. Linux/Mac OS users do not need that.

Installation

How to update:

  • Drag n drop bootloader folder into sd card root and hit merge/replace.
  • No need to delete that folder first, especially if you want your configs and payloads.
  • You can choose to update your RCM injection device or PC with the new hekate_ctcaer_x.x.x.bin or not.
  • In any case, bootloader/update.bin, will be checked and if newer it will get loaded.
  • update.bin is hekate and it is already copied with the bootloader folder drag n drop update process.

Notice about Atmosphere 1.0.0 and up:

  • The fss0=atmosphere/fusee-secondary.bin in hekate_ipl.ini must be changed to fss0=atmosphere/package3.
  • And make sure that atmosphere/contents folder does not have old Atmosphere components.

Notice about resized emuMMC:

  • Resized emuMMC does not have the slow bug anymore.
  • You can create a new one or recreate it via Nyx and the issue will be gone.

User guide

Bootloader folders and files

Folder/File Description
bootloader Main folder.
 |__ bootlogo.bmp It is used if no logopath key is found. User provided. Can be skipped.
 |__ hekate_ipl.ini Main bootloader configuration and boot entries in Launch menu.
 |__ nyx.ini Nyx GUI configuration
 |__ patches.ini Add external patches. Can be skipped. A template can be found here
 |__ update.bin If newer, it is loaded at boot. Normally for modchips. Auto updated and created at first boot.
bootloader/ini/ For individual inis. More configs menu. Autoboot is supported.
bootloader/res/ Nyx user resources. Icons and more.
 |__ background.bmp Nyx - Custom background. User provided.
 |__ icon_switch.bmp Nyx - Default icon for CFWs.
 |__ icon_payload.bmp Nyx - Default icon for Payloads.
bootloader/sys/ hekate and Nyx system modules folder.
 |__ emummc.kipm emuMMC KIP1 module. !Important!
 |__ libsys_lp0.bso LP0 (sleep mode) module. Important!
 |__ libsys_minerva.bso Minerva Training Cell. Used for DRAM Frequency training. !Important!
 |__ nyx.bin Nyx - hekate's GUI. !Important!
 |__ res.pak Nyx resources package. !Important!
 |__ thk.bin Atmosphère Tsec Hovi Keygen. !Important!
bootloader/screenshots/ Folder where Nyx screenshots are saved
bootloader/payloads/ For the Payloads menu. All CFW bootloaders, tools, Linux payloads are supported. Autoboot only supported by including them into an ini.
bootloader/libtools/ Reserved

Bootloader configuration

The bootloader can be configured via 'bootloader/hekate_ipl.ini' (if it is present on the SD card). Each ini section represents a boot entry, except for the special section 'config' that controls the global configuration.

There are four possible type of entries. "[ ]": Boot entry, "{ }": Caption, "#": Comment, "newline": .ini cosmetic newline.

You can find a template here.

hekate Global Configuration keys/values (when entry is [config])

Config option Description
autoboot=0 0: Disable, #: Boot entry number to auto boot.
autoboot_list=0 0: Read autoboot boot entry from hekate_ipl.ini, 1: Read from ini folder (ini files are ASCII ordered).
bootwait=3 0: Disable (It also disables bootlogo. Having VOL- pressed since injection goes to menu.), #: Time to wait for VOL- to enter menu. Max: 20s.
noticker=0 0: Animated line is drawn during custom bootlogo, signifying time left to skip to menu. 1: Disable.
autohosoff=1 0: Disable, 1: If woke up from HOS via an RTC alarm, shows logo, then powers off completely, 2: No logo, immediately powers off.
autonogc=1 0: Disable, 1: Automatically applies nogc patch if unburnt fuses found and a >= 4.0.0 HOS is booted.
bootprotect=0 0: Disable, 1: Protect bootloader folder from being corrupted by disallowing reading or editing in HOS.
updater2p=0 0: Disable, 1: Force updates (if needed) the reboot2payload binary to be hekate.
backlight=100 Screen backlight level. 0-255.

Boot entry key/value combinations

Config option Description
warmboot={FILE path} Replaces the warmboot binary
secmon={FILE path} Replaces the security monitor binary
kernel={FILE path} Replaces the kernel binary
kip1={FILE path} Replaces/Adds kernel initial process. Multiple can be set.
kip1={FOLDER path}/* Loads every .kip/.kip1 inside a folder. Compatible with single kip1 keys.
fss0={FILE path} Takes an Atmosphere package3 binary (formerly fusee-secondary.bin) and extracts all needed parts from it. kips, exosphere, warmboot and mesophere if enabled.
fss0experimental=1 Enables loading of experimental content from a FSS0 storage
exofatal={FILE path} Replaces the exosphere fatal binary for Mariko
kip1patch=patchname Enables a kip1 patch. Specify with multiple lines and/or in one line with , as separator. If actual patch is not found, a warning will show up
emupath={FOLDER path} Forces emuMMC to use the selected one. (=emuMMC/RAW1, =emuMMC/SD00, etc). emuMMC must be created by hekate because it uses the raw_based/file_based files.
emummcforce=1 Forces the use of emuMMC. If emummc.ini is disabled or not found, then it causes an error.
emummc_force_disable=1 Disables emuMMC, if it's enabled.
stock=1 Disables unneeded kernel patching and CFW kips when running stock or semi-stock. If emuMMC is enabled, emummc_force_disable=1 is required. emuMMC is not supported on stock. If additional KIPs are needed other than OFW's, you can define them with kip1 key. No kip should be used that relies on Atmosphère patching, because it will hang. If NOGC is needed, use kip1patch=nogc.
fullsvcperm=1 Disables SVC verification (full services permission). Doesn't work with Mesosphere as kernel.
debugmode=1 Enables Debug mode. Obsolete when used with exosphere as secmon.
atmosphere=1 Enables Atmosphère patching. Not needed when fss0 is used.
payload={FILE path} Payload launching. Tools, Android/Linux, CFW bootloaders, etc. Any key above when used with that, doesn't get into account.
l4t=1 L4T Linux/Android native launching.
boot_prefixes={FOLDER path} L4T bootstack directory.
ram_oc=0 L4T RAM Overclocking. Check README_CONFIG.txt for more info.
uart_port=0 Enables logging on serial port for L4T uboot/kernel.
Additional keys Each distro supports more keys. Check README_CONFIG.txt for more info.
id=IDNAME Identifies boot entry for forced boot via id. Max 7 chars.
logopath={FILE path} If it exists, it will load the specified bitmap. Otherwise bootloader/bootlogo.bmp will be used if exists
icon={FILE path} Force Nyx to use the icon defined here. If this is not found, it will check for a bmp named as the boot entry ([Test 2] -> bootloader/res/Test 2.bmp). Otherwise defaults will be used.

Note1: When using the wildcard (/*) with kip1 you can still use the normal kip1 after that to load extra single kips.

Note2: When using FSS0 it parses exosphere, warmboot and all core kips. You can override the first 2 by using secmon/warmboot after defining fss0. You can define kip1 to load an extra kip or many via the wildcard (/*) usage.

Warning: Careful when you define fss0 core kips when using fss0 or the folder (when using /*) includes them. This is in case the kips are incompatible between them. If compatible, you can override fss0 kips with no issues (useful for testing with intermediate kip changes). In such cases, the kip1 line must be under fss0 line.

Boot entry key/value combinations for Exosphère

Config option Description
nouserexceptions=1 Disables usermode exception handlers when paired with Exosphère.
userpmu=1 Enables user access to PMU when paired with Exosphère.
cal0blank=1 Overrides Exosphère config blank_prodinfo_{sys/emu}mmc. If that key doesn't exist, exosphere.ini will be used.
cal0writesys=1 Overrides Exosphère config allow_writing_to_cal_sysmmc. If that key doesn't exist, exosphere.ini will be used.
usb3force=1 Overrides system settings mitm config usb30_force_enabled. If that key doesn't exist, system_settings.ini will be used.

Note: cal0blank, cal0writesys, usb3force, as stated override the exosphere.ini or system_settings.ini. 0: Disable, 1: Enable, Key Missing: Use original value.

Note2: blank_prodinfo_{sys/emu}mmc, allow_writing_to_cal_sysmmc and usb30_force_enabled in exosphere.ini and system_settings.ini respectively, are the only atmosphere config keys that can affect hekate booting configuration externally, if the equivalent keys in hekate config are missing.

Payload storage

hekate has a boot storage in the binary that helps it configure it outside of BPMP enviroment:

Offset / Name Description
'0x94' boot_cfg bit0: Force AutoBoot, bit1: Show launch log, bit2: Boot from ID, bit3: Boot to emuMMC.
'0x95' autoboot If Force AutoBoot, 0: Force go to menu, else boot that entry.
'0x96' autoboot_list If Force AutoBoot and autoboot then it boots from ini folder.
'0x97' extra_cfg When menu is forced: bit5: Run UMS.
'0x98' xt_str[128] Depends on the set cfg bits.
'0x98' ums[1] When Run UMS is set, it will launch the selected UMS. 0: SD, 1: eMMC BOOT0, 2: eMMC BOOT1, 3: eMMC GPP, 4: emuMMC BOOT0, 5: emuMMC BOOT1, 6: emuMMC GPP,
'0x98' id[8] When Boot from ID is set, it will search all inis automatically and find the boot entry with that id and boot it. Must be NULL terminated.
'0xA0' emummc_path[120] When Boot to emuMMC is set, it will override the current emuMMC (boot entry or emummc.ini). Must be NULL terminated.

Nyx Configuration keys/values (nyx.ini)

Config option Description
themebg=2d2d2d Sets Nyx background color in HEX. EXPERIMENTAL.
themecolor=167 Sets Nyx color of text highlights.
entries5col=0 1: Sets Launch entry columns from 4 to 5 per line. For a total of 10 entries.
timeoff=100 Sets time offset in HEX. Must be in HOS epoch format
homescreen=0 Sets home screen. 0: Home menu, 1: All configs (merges Launch and More configs), 2: Launch, 3: More Configs.
verification=1 0: Disable Backup/Restore verification, 1: Sparse (block based, fast and mostly reliable), 2: Full (sha256 based, slow and 100% reliable).
------------------ ------- The following options can only be edited in nyx.ini -------
umsemmcrw=0 1: eMMC/emuMMC UMS will be mounted as writable by default.
jcdisable=0 1: Disables Joycon driver completely.
jcforceright=0 1: Forces right joycon to be used as main mouse control.
bpmpclock=1 0: Auto, 1: Fastest, 2: Faster, 3: Fast. Use 2 or 3 if Nyx hangs or some functions like UMS/Backup Verification fail.

FAQ

Q. Which Linux/Android distributions are supported in Partition Manager?

  • For L4T Linux you can use the official Ubuntu Bionic 3.4.0 and newer or any other distro betas.
  • For android you can get Android 10.

Q. I don't care about emuMMC/Linux/Android. Can the Part manager be used for something else?

  • Yes. You can still reformat your SD card to a single FAT32 partition.
  • You can even use it when you have exFAT and you want to format to FAT32.
  • It is also suggested to format your sd card via hekate. That's because it prepares it for performance. something that many partitioning tools neglect.

Screenshots

hekatenyxnx2.png

hekatenyxnx3.png

hekatenyxnx4.png

Compatibility

Supports booting ALL current CFWs, Android/Linux booting and payload tools. No more SD card removals.

Supports: Erista (T210) and Mariko (T210B01) units.

Latest HOS supported: 16.0.2.

Changelog

hekate v6.0.3

  • A mitigation was added for bad chainloaders that leave sd gpios in a bad state.
  • L4T: Now some 2019 T210B01 Samsung ram chips can be overclocked to 2133 MHz for Linux/Android.
  • L4T: Added a mandatory change for supporting SD UHS DDR200 bus speed for Linux/Android.
  • Fixed an edge case where if hekate was run and the rtc alarm was fired after, booting to HOS would power off the device.
  • Since in that case the Switch was awakened via Power or USB, all flags are now cleared during Auto HOS Power off checks.
  • Various fixes and improvements.

Nyx v1.5.3

  • SD Card/eMMC benchmark now stalls less between each read, in order to stress the cards more.
  • Various fixes and improvements.

BDK

  • GPIO: Reorder configuration of input/output functions in order to mitigate bad configs from previous loaders.
  • GPIO: Added a dobounce set function.
  • SDMMC: Added SD UHS DDR200 bus speed mode, capable of reaching 200MB/s on UHS-I bus.
  • Can be enabled with the BDK_SDMMC_UHS_DDR200_SUPPORT build time flag.
  • SDMMC: Added proper SD DDR50 bus speed mode. Not used by default.
  • SDMMC: Corrected the order of setting SD power limit. By spec, it only matters on SDR50 and up.
  • SDMMC: Fixed an issue with sd removal detection.
  • SDDMC: Added sdmmc driver type set support.
  • SDMMC: Added debug printing functions of all SD card registers (CID/CSD/SCR/SSR).
  • SDRAM: Added a function that allows latency allowance for SDMMC1 to be patched to eMMC values.
  • INPUT: Reordered power on of touchscreen in order to induce a small reset at start.
  • UTILS: Removed stop rtc alarm from power management functions.

Credits

hekate (c) 2018, naehrwert, st4rk.
hekate (c) 2018-2022, CTCaer.

Nyx GUI (c) 2019-2022, CTCaer.

Thanks to: derrek, nedwill, plutoo, shuffle2, smea, thexyz, yellows8.
Greetings to: fincs, hexkyz, SciresM, Shiny Quagsire, WinterMute.

Open source and free packages used:

  • FatFs R0.13a, Copyright (c) 2017, ChaN.
  • bcl-1.2.0, Copyright (c) 2003-2006, Marcus Geelnard.
  • Atmosphère (Exosphere types/panic, prc id kernel patches), Copyright (c) 2018-2019, Atmosphère-NX.
  • elfload, Copyright (c) 2014 Owen Shepherd, Copyright (c) 2018 M4xw.
  • Littlev Graphics Library, Copyright (c) 2016 Gabor Kiss-Vamosi.
                         ___
                      .-'   `'.
                     /         \
                     |         ;
                     |         |           ___.--,
            _.._     |0) = (0) |    _.---'`__.-( (_.
     __.--'`_.. '.__.\    '--. \_.-' ,.--'`     `""`
    ( ,.--'`   ',__ /./;   ;, '.__.'`    __
    _`) )  .---.__.' / |   |\   \__..--""  """--.,_
   `---' .'.''-._.-'`_./  /\ '.  \ _.--''````'''--._`-.__.'
         | |  .' _.-' |  |  \  \  '.               `----`
          \ \/ .'     \  \   '. '-._)
           \/ /        \  \    `=.__`'-.
           / /\         `) )    / / `"".`\
     , _.-'.'\ \        / /    ( (     / /
      `--'`   ) )    .-'.'      '.'.  | (
             (/`    ( (`          ) )  '-;   [switchbrew] 

External links

Advertising: