pages: cleanup

This commit is contained in:
KazushiM
2023-02-12 23:55:54 +08:00
parent b0ace1d8ae
commit 63bbde2f58
10 changed files with 571 additions and 516 deletions

View File

@@ -10,25 +10,59 @@
content="Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.">
<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">
<style>
nav[role="tab-control"] > button {
#nav-list {
display: none;
}
#nav-popup {
display: unset;
}
@media (min-width: 768px) {
#nav-list {
display: unset;
}
#nav-popup {
display: none;
}
}
details[open] > summary:not([role]):not(:focus) {
color: unset;
}
div.hero > nav.container-fluid {
position: fixed;
top: 0;
z-index: 99;
-webkit-backdrop-filter: blur(20px);
backdrop-filter: blur(20px);
}
div.hero > header {
padding-top: 6rem;
}
button[role="tab"] {
border-radius: 0;
border-left-width: calc(var(--border-width) / 2);
border-right-width: calc(var(--border-width) / 2);
}
nav[role="tab-control"] > button:first-child {
button[role="tab"]:first-child {
border-top-left-radius: var(--border-radius);
border-bottom-left-radius: var(--border-radius);
border-left-width: var(--border-width);
}
nav[role="tab-control"] > button:last-child {
button[role="tab"]:last-child {
border-top-right-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
border-right-width: var(--border-width);
}
nav[role="tab-control"] > button:not(.outline) {
button[role="tab"]:not(.outline) {
pointer-events: none;
cursor: default;
}
@@ -37,8 +71,10 @@
margin: 1.5rem 0 1.5rem 0;
}
div.cust-element > blockquote {
margin-top: 0;
div.cust-element > blockquote, div.cust-element > blockquote > ul {
margin: 0;
font-size: calc(var(--font-size) * 0.8);
color: var(--muted-color);
}
div#download_btn_grid > a {
@@ -49,57 +85,64 @@
<body>
<div class="hero">
<nav class="container-fluid"
style="position: fixed; top: 0; z-index: 99; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);">
<nav class="container-fluid">
<ul>
<li><a href="#head" class="contrast">Switch OC Suite</a></li>
<li><a href="#head" class="contrast"><b>Switch OC Suite</b></a></li>
</ul>
<ul>
<li><a href="#readme" class="secondary">Read Me</a></li>
<li><a href="#download" class="secondary">Download</a></li>
<li><a href="#config" class="secondary">Config</a></li>
<li><a href="https://github.com/KazushiMe/Switch-OC-Suite" class="contrast">
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 496 512" height="16px">
<path fill="currentColor"
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z">
</path>
</svg>
</a></li>
<ul id="nav-popup">
<li>
<details role="list" dir="rtl">
<summary aria-haspopup="group" role="link" class="contrast">Jump to</summary>
<ul role="group">
<li><a href="#readme">README</a></li>
<li><a href="#download">Download</a></li>
<li><a href="#config">Configurator</a></li>
<li><a href="https://github.com/KazushiMe/Switch-OC-Suite" target="_blank">GitHub repository</a></li>
</ul>
</details>
</li>
</ul>
<ul id="nav-list">
<li><a href="#readme">README</a></li>
<li><a href="#download">Download</a></li>
<li><a href="#config">Config</a></li>
<li><a href="https://github.com/KazushiMe/Switch-OC-Suite" target="_blank">GitHub</a></li>
</ul>
</nav>
<header class="container" style="padding-top: 6rem;">
<header class="container">
<hgroup>
<h1>Switch OC Suite</h1>
<h2>Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.</h2>
</hgroup>
</header>
</div>
<section aria-label="Read Me" id="readme">
<section aria-label="README" id="readme">
<div class="container">
<article>
<header>
<hgroup>
<h2>Read Me</h2>
<h2>README</h2>
<h3>🚨DISCLAIMER: THIS IS PROVIDED AS IS. USE AT YOUR OWN RISK!🚨</h3>
</hgroup>
<li>
Overclocking in general will shorten the lifespan of some
hardware components. <strong>YOU ARE RESPONSIBLE for any problem or
potential damage</strong> if unsafe frequencies are ENABLED in
sys-clk-OC. Issues like asking for bypassing limit will BE IGNORED OR
CLOSED WITHOUT REPLY.
</li>
<li>
Due to HorizonOS design, instabilities from unsafe RAM clocks may
cause filesystem corruption. <strong>Always make backup before enabling
DRAM OC.</strong>
</li>
<ul>
<li>
Overclocking in general will shorten the lifespan of some
hardware components. <strong>YOU ARE RESPONSIBLE for any problem or
potential damage</strong> if unsafe frequencies are ENABLED in
sys-clk-OC. Issues like asking for bypassing limit will BE IGNORED OR
CLOSED WITHOUT REPLY.
</li>
<li>
Due to HorizonOS design, instabilities from unsafe RAM clocks may
cause filesystem corruption. <strong>Always make backup before enabling
DRAM OC.</strong>
</li>
</ul>
</header>
<body>
<h3>Features</h3>
<details>
<details open>
<summary>For Erista variant (HAC-001)</summary>
<ul>
<li>CPU Overclock (Safe: 1785 MHz)
@@ -119,7 +162,7 @@
<li>DRAM Overclock (Safe: 1862.4 MHz)</li>
</ul>
</details>
<details>
<details open>
<summary>For Mariko variant (HAC-001-01, HDH-001, HEG-001)</summary>
<ul>
<li>CPU / GPU Overclock (Safe: 1963 / 998 MHz)
@@ -139,7 +182,7 @@
<li>DRAM Overclock (Safe: 1996.8 MHz)</li>
</ul>
</details>
<details>
<details open>
<summary>Modded sys-clk and ReverseNX-RT</summary>
<ul>
<li>Auto CPU Boost
@@ -179,67 +222,64 @@
</li>
</ul>
</details>
<details>
<details open>
<summary>System Settings (Optional)</summary>
See <a
href="https://github.com/KazushiMe/Switch-OC-Suite/blob/master/system_settings.md">system_settings.md</a>
</details>
<h3 id="installation">Installation</h3>
<h3 id="installation" open>Installation</h3>
<ol type="1">
<li>Download latest <a href="#download">release</a>.</li>
<li>Copy all files in <code>SdOut</code> to the root of SD card.</li>
<li>Grab <code>x.x.x_loader.kip</code> for your Atmosphere version, rename it to <code>loader.kip</code> and
place it in <code>/atmosphere/kips/</code>.</li>
<li>Customization via <a href="#config">online loader configurator</a>
<details>
<summary>Default config</summary>
<table role="grid">
<thead>
<tr>
<th>Defaults</th>
<th>Mariko</th>
<th>Erista</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU OC</td>
<td>2397 MHz Max</td>
<td>2091 MHz Max</td>
</tr>
<tr>
<td>CPU Boost</td>
<td>1785 MHz</td>
<td>N/A</td>
</tr>
<tr>
<td>CPU Volt</td>
<td>1235 mV Max</td>
<td>1235 mV Max</td>
</tr>
<tr>
<td>GPU OC</td>
<td>1305 MHz Max</td>
<td>N/A</td>
</tr>
<tr>
<td>RAM OC</td>
<td>1996 MHz Max</td>
<td>1862 MHz Max</td>
</tr>
<tr>
<td>RAM Volt</td>
<td>Disabled</td>
<td>Disabled</td>
</tr>
<tr>
<td>RAM Timing</td>
<td>Auto-Adjusted</td>
<td>Disabled</td>
</tr>
</tbody>
</table>
</details>
<table role="grid">
<thead>
<tr>
<th>Defaults</th>
<th>Mariko</th>
<th>Erista</th>
</tr>
</thead>
<tbody>
<tr>
<td>CPU OC</td>
<td>2397 MHz Max</td>
<td>2091 MHz Max</td>
</tr>
<tr>
<td>CPU Boost</td>
<td>1785 MHz</td>
<td>N/A</td>
</tr>
<tr>
<td>CPU Volt</td>
<td>1235 mV Max</td>
<td>1235 mV Max</td>
</tr>
<tr>
<td>GPU OC</td>
<td>1305 MHz Max</td>
<td>N/A</td>
</tr>
<tr>
<td>RAM OC</td>
<td>1996 MHz Max</td>
<td>1862 MHz Max</td>
</tr>
<tr>
<td>RAM Volt</td>
<td>Disabled</td>
<td>Disabled</td>
</tr>
<tr>
<td>RAM Timing</td>
<td>Auto-Adjusted</td>
<td>Disabled</td>
</tr>
</tbody>
</table>
</li>
<li>Hekate-ipl bootloader Only
<ul>
@@ -248,35 +288,6 @@
</ul>
</li>
</ol>
<details>
<summary><s>Deprecated: patching sysmodules manually</s></summary>
<ul>
<li>This method is only served as reference as it could damage your MMC file system if not handled
properly.</li>
<li>Patched sysmodules would be persistent until pcv or ptm was updated in new HOS (normally in
<code>x.0.0</code>).
</li>
<li>Tools:
<ul>
<li>Lockpick_RCM</li>
<li>TegraExplorer</li>
<li><a href="https://github.com/SciresM/hactool">hactool</a></li>
<li><a href="https://github.com/shuffle2/nx2elf">nx2elf</a></li>
<li>elf2nso from <a href="https://github.com/switchbrew/switch-tools/">switch-tools</a></li>
<li><a href="https://github.com/The-4n/hacPack">hacpack</a></li>
</ul>
</li>
</ul>
<ol type="1">
<li>Dump <code>prod.keys</code> with Lockpick_RCM</li>
<li>Dump HOS firmware with TegraExplorer</li>
<li>Configure and run <code>test_patch.sh</code> to generate patched pcv &amp; ptm sysmodules in nca</li>
<li>Replace nca in <code>SYSTEM:/Contents/registered/</code> with TegraExplorer</li>
<li><code>ValidateAcidSignature()</code> should be stubbed to allow unsigned sysmodules to load (a.k.a.
<code>loader_patch</code>)
</li>
</ol>
</details>
<details>
<summary>How to build this project</summary>
<ol type="1">
@@ -291,29 +302,33 @@
</ol>
</details>
<h3 id="faq">Frequently Asked Questions</h3>
<details>
<details open>
<summary>How to enable unsafe frequencies in sys-clk-OC?</summary>
<li>Above all else, you should know <a href="#readme">what "unsafe" means and issues might arise</a>.</li>
<li>See the end of <a
href="https://github.com/KazushiMe/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md"
target="_blank">README in sys-clk-OC</a>. Add this line <code>allow_unsafe_freq=1</code> into
<code>/config/sys-clk/config.ini</code>
</li>
<ul>
<li>Above all else, you should know <a href="#readme">what "unsafe" means and issues might arise</a>.</li>
<li>See the end of <a href="https://github.com/KazushiMe/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md"
target="_blank">README in sys-clk-OC</a>. Place this line <code>allow_unsafe_freq=1</code> under
<code>[value]</code> section in
<code>/config/sys-clk/config.ini</code>
</li>
</ul>
</details>
<details>
<details open>
<summary>I would like to bypass limit enforced in sys-clk to improve handheld performance without charger
connected.</summary>
<li>Never will it be implemented here, or work out of the box.</li>
<li>You have to modify the code yourself for your own use. If you are to share modified binaries you have
made based on this project publicly, make sure to comply with GPL v2 licenses.</li>
<ul>
<li>Never will it be implemented here, or work out of the box.</li>
<li>You have to modify the code yourself for your own use. If you are to share modified binaries you have
made based on this project publicly, make sure to comply with GPL v2 licenses.</li>
</ul>
</details>
</body>
<footer>
<details role="list">
<summary aria-haspopup="listbox" role="button" class="secondary">
<summary aria-haspopup="group" role="button" class="secondary">
Acknowledgement
</summary>
<ul role="listbox">
<ul role="group">
<li><a href="https://github.com/CTCaer/hekate" target="_blank">CTCaer for Hekate-ipl bootloader, RE and
hardware research</a></li>
<li><a href="https://devkitpro.org/" target="_blank">devkitPro for All-In-One homebrew toolchains</a>
@@ -371,31 +386,38 @@
<h3>Configure frequencies and voltages to suit your hardware and preferences.</h3>
</hgroup>
</header>
<body>
<nav role="tab-control">
<button class="" id="tab_all" data-filter="0" disabled>Show All</button>
<button class="outline" id="tab_erista" data-filter="1" disabled>For Erista</button>
<button class="outline" id="tab_mariko" data-filter="2" disabled>For Mariko</button>
</nav>
<form id="form">
<nav role="tablist">
<button type="button" role="tab" class="" id="tab_all" data-platform="0" disabled>All</button>
<button type="button" role="tab" class="outline" id="tab_erista" data-platform="1" disabled>Erista</button>
<button type="button" role="tab" class="outline" id="tab_mariko" data-platform="2" disabled>Mariko</button>
</nav>
<label for="file">
<input id="file" type="file">
<small id="cust_rev">Upload loader.kip here</small>
</label>
<div id="config-list-basic"></div>
<div id="config-list-advanced"></div>
</form>
</body>
<footer>
<div class="grid">
<button id="load_default" role="button" disabled>Load Default</button>
<button id="load_saved" role="button" disabled>Load Last Saved</button>
<button id="save" role="button" disabled>Save</button>
<button type="button" id="load_default" role="button" disabled>Load Default</button>
<button type="button" id="load_saved" role="button" disabled>Load Last Saved</button>
<button type="submit" id="save" role="button" disabled>Save</button>
</div>
</footer>
</article>
</div>
</section>
<footer class="container">
<small>Build with <a href="https://picocss.com" target="_blank">Pico</a></small>
<small>
Build with <a href="https://picocss.com" target="_blank">Pico</a>.
All trademarks, logos and brand names are the property of their respective owners, used for identification purposes
only.
</small>
</footer>
</body>
<script type="text/javascript" src="./main.js"></script>