fix(pages): fix configurator offset to match customize table
This commit is contained in:
1 parent
77e6f57593
commit
0f1c8d2b67
3 files changed
+5
-45
No files matched your search
Vendored
+1
-41
@@ -1,41 +1 @@
|
||||
<!doctype html><html lang=en><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>Switch OC Suite | Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.</title><meta name=description 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-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)}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)}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)}button[role=tab]:not(.outline){pointer-events:none;cursor:default}div.cust-element{margin:1.5rem 0}div.cust-element>blockquote,div.cust-element>blockquote>ul{margin:0;font-size:calc(var(--font-size) * .8);color:var(--muted-color)}div#download_btn_grid>a{margin:.5rem 0}</style><div class=hero><nav class=container-fluid><ul><li><a href=#head class=contrast><b>Switch OC Suite</b></a></ul><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><a href=#download>Download</a><li><a href=#config>Configurator</a><li><a href=https://github.com/hanai3Bi/Switch-OC-Suite target=_blank>GitHub repository</a></ul></details></ul><ul id=nav-list><li><a href=#readme>README</a><li><a href=#download>Download</a><li><a href=#config>Config</a><li><a href=https://github.com/hanai3Bi/Switch-OC-Suite target=_blank>GitHub</a></ul></nav><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=README id=readme><div class=container><article><header><hgroup><h2>README</h2><h3>🚨DISCLAIMER: THIS IS PROVIDED AS IS. USE AT YOUR OWN RISK!🚨</h3></hgroup><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>Due to HorizonOS design, instabilities from unsafe RAM clocks may
|
||||
cause filesystem corruption. <strong>Always make backup before enabling
|
||||
DRAM OC.</strong></ul></header><h3>Features</h3><details open><summary>For Erista variant (HAC-001)</summary><ul><li>CPU Overclock (Safe: 1785 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2091 MHz<li>See <a href=https://github.com/hanai3Bi/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README
|
||||
for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1862.4 MHz)</ul></details><details open><summary>For Mariko variant (HAC-001-01, HDH-001, HEG-001)</summary><ul><li>CPU / GPU Overclock (Safe: 1963 / 998 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2397 / 1305 MHz or 2295 / 1267 MHz<li>See <a href=https://github.com/hanai3Bi/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README
|
||||
for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1996.8 MHz)</ul></details><details open><summary>Modded sys-clk and ReverseNX-RT</summary><ul><li>Auto CPU Boost<ul><li>For faster game loading<li>Enable CPU Boost (1785 MHz) when CPU Core#3 (System Core) is
|
||||
stressed (mainly I/O operations).<li>Effective only when charger is connected or governor is enabled.<li>This feature is considered unsafe on Erista, especially when combined with high GPU frequency or with governor enabled.</ul><li>CPU & GPU frequency governor (Experimental)<ul><li>Adjust frequency based on load. Might decrease power draw but can
|
||||
introduce stutters. Can be turned off for specific titles.</ul><li>Set charging current (100 mA - 2000 mA) and charging limit (20% -
|
||||
100%)<ul><li>Long-term use of charge limit may render the battery gauge
|
||||
inaccurate. Performing full cycles could help recalibration, or try <a href=https://github.com/CTCaer/battery_desync_fix_nx>battery_desync_fix_nx</a>.</ul><li>Global Profile<ul><li>Designated a dummy title id <code>0xA111111111111111</code>.<li>Priority: "Temp overrides" > "Application profile" > "Global
|
||||
profile" > "System default".</ul><li>Sync ReverseNX Mode<ul><li>No need to change clocks manually after toggling modes in ReverseNX
|
||||
(-RT and -Tool)</ul></ul></details><details open><summary>System Settings (Optional)</summary>
|
||||
See <a href=https://github.com/hanai3Bi/Switch-OC-Suite/blob/master/system_settings.md>system_settings.md</a></details><h3 id=installation open>Installation</h3><ol type=1><li>Download latest <a href=#download>release</a>.<li>Copy all files in <code>SdOut</code> to the root of SD card.<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>Customization via <a href=#config>online loader configurator</a><table role=grid><thead><tr><th>Defaults<th>Mariko<th>Erista<tbody><tr><td>CPU OC<td>2397 MHz Max<td>2091 MHz Max<tr><td>CPU Boost<td>1785 MHz<td>N/A<tr><td>CPU Volt<td>1235 mV Max<td>1235 mV Max<tr><td>GPU OC<td>1305 MHz Max<td>N/A<tr><td>RAM OC<td>1996 MHz Max<td>1862 MHz Max<tr><td>RAM Volt<td>Disabled<td>Disabled<tr><td>RAM Timing<td>Auto-Adjusted<td>Disabled</table><li>Hekate-ipl bootloader Only<ul><li>Add <code>kip1=atmosphere/kips/loader.kip</code> to boot entry
|
||||
section in <code>bootloader/hekate_ipl.ini</code>.</ul></ol><details><summary>How to build this project</summary><ol type=1><li>Grab necessary patches from the repo, then compile sys-clk, ReverseNX-RT and Atmosphere loader with
|
||||
devkitpro.<li>Before compiling Atmosphere loader, run <code>patch.py</code> in
|
||||
<code>Atmosphere/stratosphere/loader/source/</code> to insert oc module into loader sysmodule.<li>When compilation is done, uncompress the kip to make it work with configurator:
|
||||
<code>hactool -t kip1 Atmosphere/stratosphere/loader/out/nintendo_nx_arm64_armv8a/release/loader.kip --uncompress=./loader.kip</code></ol></details><h3 id=faq>Frequently Asked Questions</h3><details open><summary>How to enable unsafe frequencies in sys-clk-OC?</summary><ul><li>Above all else, you should know <a href=#readme>what "unsafe" means and issues might arise</a>.<li>See the end of <a href=https://github.com/hanai3Bi/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></ul></details><details open><summary>I would like to bypass limit enforced in sys-clk to improve handheld performance without charger
|
||||
connected.</summary><ul><li>Never will it be implemented here, or work out of the box.<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.</ul></details><footer><details role=list><summary aria-haspopup=group role=button class=secondary>Acknowledgement</summary><ul role=group><li><a href=https://github.com/CTCaer/hekate target=_blank>CTCaer for Hekate-ipl bootloader, RE and
|
||||
hardware research</a><li><a href=https://devkitpro.org/ target=_blank>devkitPro for All-In-One homebrew toolchains</a><li><a href=https://github.com/masagrator/ReverseNX-RT target=_blank>masagrator for ReverseNX-RT and
|
||||
info
|
||||
on BatteryChargeInfoFields in psm module</a><li><a href=https://developer.nvidia.com/embedded/dlc/tegra-x1-technical-reference-manual target=_blank>Nvidia for Tegra X1 Technical Reference Manual</a><li><a href=https://github.com/retronx-team/sys-clk target=_blank>RetroNX team for sys-clk</a><li><a href=https://github.com/Atmosphere-NX/Atmosphere target=_blank>SciresM and Reswitched Team for
|
||||
the
|
||||
state-of-the-art Atmosphere CFW of Switch</a><li><a href=http://switchbrew.org/wiki/ target=_blank>Switchbrew wiki for Switch in-depth info</a><li><a href=https://gitlab.com/switchroot/kernel target=_blank>Switchroot for their modified L4T
|
||||
kernel
|
||||
and device tree</a><li>ZatchyCatGames for RE and original OC loader patches for Atmosphere</ul></details></footer></article></div></section><section aria-label=Download id=download><div class=container><article><header><hgroup><h2>Download</h2><h3>Get latest version of Switch OC Suite and its corresponding Atmosphere package here.</h3></hgroup></header><div class=grid id=download_btn_grid><a role=button aria-busy=true id=loader_kip_btn>Generating link, please wait...</a>
|
||||
<a role=button aria-busy=true id=sdout_zip_btn>Generating link, please wait...</a>
|
||||
<a target=_blank role=button aria-busy=true id=ams_btn>Generating link, please wait...</a></div><footer>See <a href=#installation>Installation section</a> for how to use Switch OC Suite.</footer></article></div></section><section aria-label=Config id=config><div class=container><article><header><hgroup><h2>Configurator</h2><h3>Configure frequencies and voltages to suit your hardware and preferences.</h3></hgroup></header><form id=form><nav role=tablist><button type=button role=tab 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><footer><div class=grid><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 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>.
|
||||
All trademarks, logos and brand names are the property of their respective owners, used for identification purposes
|
||||
only.</small></footer><script src=./main.js></script>
|
||||
<!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content="width=device-width,initial-scale=1"><title>Switch OC Suite | Overclocking suite for Horizon OS (HOS) running on Atmosphere CFW. Licensed under GPL v2.</title><meta name=description 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-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)}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)}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)}button[role=tab]:not(.outline){pointer-events:none;cursor:default}div.cust-element{margin:1.5rem 0 1.5rem 0}div.cust-element>blockquote,div.cust-element>blockquote>ul{margin:0;font-size:calc(var(--font-size) * .8);color:var(--muted-color)}div#download_btn_grid>a{margin:.5rem 0}</style><div class=hero><nav class=container-fluid><ul><li><a href=#head class=contrast><b>Switch OC Suite</b></a></ul><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><a href=#download>Download</a><li><a href=#config>Configurator</a><li><a href=https://github.com/hanai3Bi/Switch-OC-Suite target=_blank>GitHub repository</a></ul></details></ul><ul id=nav-list><li><a href=#readme>README</a><li><a href=#download>Download</a><li><a href=#config>Config</a><li><a href=https://github.com/hanai3Bi/Switch-OC-Suite target=_blank>GitHub</a></ul></nav><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=README id=readme><div class=container><article><header><hgroup><h2>README</h2><h3>🚨DISCLAIMER: THIS IS PROVIDED AS IS. USE AT YOUR OWN RISK!🚨</h3></hgroup><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>Due to HorizonOS design, instabilities from unsafe RAM clocks may cause filesystem corruption. <strong>Always make backup before enabling DRAM OC.</strong></ul></header><h3>Features</h3><details open><summary>For Erista variant (HAC-001)</summary><ul><li>CPU Overclock (Safe: 1785 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2091 MHz<li>See <a href=https://github.com/hanai3Bi/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1862.4 MHz)</ul></details><details open><summary>For Mariko variant (HAC-001-01, HDH-001, HEG-001)</summary><ul><li>CPU / GPU Overclock (Safe: 1963 / 998 MHz)<ul><li>Unsafe<ul><li>Due to the limit of board power draw or power IC<li>Unlockable frequencies up to 2397 / 1305 MHz or 2295 / 1267 MHz<li>See <a href=https://github.com/hanai3Bi/Switch-OC-Suite/blob/master/Source/sys-clk-OC/README.md target=_blank>README for sys-clk-OC</a></ul></ul><li>DRAM Overclock (Safe: 1996.8 MHz)</ul></details><details open><summary>Modded sys-clk and ReverseNX-RT</summary><ul><li>Auto CPU Boost<ul><li>For faster game loading<li>Enable CPU Boost (1785 MHz) when CPU Core#3 (System Core) is stressed (mainly I/O operations).<li>Effective only when charger is connected or governor is enabled.<li>This feature is considered unsafe on Erista, especially when combined with high GPU frequency or with governor enabled.</ul><li>CPU & GPU frequency governor (Experimental)<ul><li>Adjust frequency based on load. Might decrease power draw but can introduce stutters. Can be turned off for specific titles.</ul><li>Set charging current (100 mA - 2000 mA) and charging limit (20% - 100%)<ul><li>Long-term use of charge limit may render the battery gauge inaccurate. Performing full cycles could help recalibration, or try <a href=https://github.com/CTCaer/battery_desync_fix_nx>battery_desync_fix_nx</a>.</ul><li>Global Profile<ul><li>Designated a dummy title id <code>0xA111111111111111</code>.<li>Priority: "Temp overrides" > "Application profile" > "Global profile" > "System default".</ul><li>Sync ReverseNX Line truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
var __awaiter=this&&this.__awaiter||function(c,d,a,b){function e(b){return b instanceof a?b:new a(function(a){a(b)})}return new(a||(a=Promise))(function(g,f){function h(c){try{a(b.next(c))}catch(a){f(a)}}function i(c){try{a(b.throw(c))}catch(a){f(a)}}function a(a){a.done?g(a.value):e(a.value).then(h,i)}a((b=b.apply(c,d||[])).next())})},CustPlatform,CustTable;const CUST_REV=4;(function(a){a[a.Undefined=0]="Undefined",a[a.Erista=1]="Erista",a[a.Mariko=2]="Mariko",a[a.All=3]="All"})(CustPlatform||(CustPlatform={}));class CustEntry{constructor(g,b,c,d,e,f,a=[0,1e6],h=1,i=!0){this.id=g,this.name=b,this.platform=c,this.size=d,this.desc=e,this.defval=f,this.step=h,this.zeroable=i,this.min=a[0],this.max=a[1]}validate(){let a=new ErrorToolTip(this.id).clear();return Number.isNaN(this.value)||this.value===void 0?(a.setMsg(`Invalid value: Not a number`).show(),!1):!!(this.zeroable&&this.value==0)||(this.value<this.min||this.value>this.max?(a.setMsg(`Expected range: [${this.min}, ${this.max}], got ${this.value}.`).show(),!1):this.value%this.step==0||(a.setMsg(`${this.value} % ${this.step} ≠ 0`).show(),!1))}getInputElement(){return document.getElementById(this.id)}updateValueFromElement(){var a;this.value=Number((a=this.getInputElement())===null||a===void 0?void 0:a.value)}isAvailableFor(a){return a===CustPlatform.Undefined||this.platform===a||this.platform===CustPlatform.All}createElement(){let a=this.getInputElement();if(!a){let b=document.createElement("div");b.classList.add("grid","cust-element"),a=document.createElement("input"),a.min=String(this.zeroable?0:this.min),a.max=String(this.max),a.id=this.id,a.type="number",a.step=String(this.step);let c=document.createElement("label");c.setAttribute("for",this.id),c.innerHTML=this.name,c.appendChild(a),b.appendChild(c);let d=document.createElement("blockquote");d.innerHTML="<ul>"+this.desc.map(a=>`<li>${a}</li>`).join('')+"</ul>",d.setAttribute("for",this.id),b.appendChild(d),document.getElementById("config-list-basic").appendChild(b),new ErrorToolTip(this.id).addChangeListener()}a.value=String(this.value)}setElementValue(){this.getInputElement().value=String(this.value)}setElementDefaultValue(){this.getInputElement().value=String(this.defval)}removeElement(){let a=this.getInputElement();a&&a.parentElement.parentElement.remove()}showElement(){let a=this.getInputElement();a&&a.parentElement.parentElement.style.removeProperty("display")}hideElement(){let a=this.getInputElement();a&&a.parentElement.parentElement.style.setProperty("display","none")}}CustTable=[new CustEntry("mtcConf","DRAM Timing",CustPlatform.Mariko,2,["<b>0</b>: AUTO_ADJ_MARIKO_SAFE: Auto adjust timings for LPDDR4 ≤3733 Mbps specs, 8Gb density. (Default)","<b>1</b>: AUTO_ADJ_MARIKO_4266: Auto adjust timings for LPDDR4X 4266 Mbps specs, 8Gb density.","<b>2</b>: NO_ADJ_ALL: No timing adjustment for both Erista and Mariko. Might achieve better performance on Mariko but lower maximum frequency is expected."],0,[0,2],1),new CustEntry("commonCpuBoostClock","Boost Clock in kHz",CustPlatform.All,4,["System default: 1785000","Boost clock will be applied when applications request higher CPU frequency for quicker loading.","This will be set regardless of whether sys-clk is enabled."],1785e3,[102e4,3e6],1,!1),new CustEntry("commonEmcMemVolt","EMC Vddq (Erista Only) & RAM Vdd2 Voltage in uV",CustPlatform.All,4,["Acceptable range: 1100000 ≤ x ≤ 1250000, and it should be divided evenly by 12500.","Erista Default (HOS): 1125000 (bootloader: 1100000)","Mariko Default: 1100000 (It will not work without sys-clk-OC)","Not enabled by default"],0,[11e5,125e4],12500),new CustEntry("eristaCpuMaxVolt","Erista CPU Max Voltage in mV",CustPlatform.Erista,4,["Acceptable range: 1100 ≤ x ≤ 1300","L4T Default: 1235"],1235,[1100,1300],1),new CustEntry("eristaEmcMaxClock","Erista RAM Max Clock in kHz",CustPlatform.Erista,4,["Values should be ≥ 1600000, and divided evenly by 3200.","<b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM"],1862400,[16e5,24e5],3200),new CustEntry("marikoCpuMaxVolt","Mariko CPU Max Voltage in mV",CustPlatform.Mariko,4,["System default: 1120","Acceptable range: 1100 ≤ x ≤ 1300"],1235,[1100,1300],5),new CustEntry("marikoEmcMaxClock","Mariko RAM Max Clock in kHz",CustPlatform.Mariko,4,["Values should be ≥ 1600000, and divided evenly by 3200.","<b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM."],1996800,[16e5,24e5],3200),new CustEntry("marikoEmcVddqVolt","EMC Vddq (Mariko Only) Voltage in uV",CustPlatform.Mariko,4,["Acceptable range: 550000 ≤ x ≤ 650000","Value should be divided evenly by 5000","Default: 600000","Not enabled by default.","This will not work without sys-clk-OC."],0,[55e4,65e4],5e3)];class ErrorToolTip{constructor(a,b){this.id=a,this.msg=b,this.id=a,this.element=document.getElementById(a),b&&this.setMsg(b)}setMsg(a){return this.msg=a,this}show(){var a,b,c,d,e,f;return(a=this.elemLine truncated
|
||||
var __awaiter=this&&this.__awaiter||function(e,t,i,s){return new(i||(i=Promise))((function(a,l){function n(e){try{o(s.next(e))}catch(e){l(e)}}function r(e){try{o(s.throw(e))}catch(e){l(e)}}function o(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(n,r)}o((s=s.apply(e,t||[])).next())}))};const CUST_REV=4;var CustPlatform;!function(e){e[e.Undefined=0]="Undefined",e[e.Erista=1]="Erista",e[e.Mariko=2]="Mariko",e[e.All=3]="All"}(CustPlatform||(CustPlatform={}));class CustEntry{constructor(e,t,i,s,a,l,n=[0,1e6],r=1,o=!0){this.id=e,this.name=t,this.platform=i,this.size=s,this.desc=a,this.defval=l,this.step=r,this.zeroable=o,this.min=n[0],this.max=n[1]}validate(){let e=new ErrorToolTip(this.id).clear();return Number.isNaN(this.value)||void 0===this.value?(e.setMsg("Invalid value: Not a number").show(),!1):!(!this.zeroable||0!=this.value)||(this.value<this.min||this.value>this.max?(e.setMsg(`Expected range: [${this.min}, ${this.max}], got ${this.value}.`).show(),!1):this.value%this.step==0||(e.setMsg(`${this.value} % ${this.step} ≠ 0`).show(),!1))}getInputElement(){return document.getElementById(this.id)}updateValueFromElement(){var e;this.value=Number(null===(e=this.getInputElement())||void 0===e?void 0:e.value)}isAvailableFor(e){return e===CustPlatform.Undefined||this.platform===e||this.platform===CustPlatform.All}createElement(){let e=this.getInputElement();if(!e){let t=document.createElement("div");t.classList.add("grid","cust-element"),e=document.createElement("input"),e.min=String(this.zeroable?0:this.min),e.max=String(this.max),e.id=this.id,e.type="number",e.step=String(this.step);let i=document.createElement("label");i.setAttribute("for",this.id),i.innerHTML=this.name,i.appendChild(e),t.appendChild(i);let s=document.createElement("blockquote");s.innerHTML="<ul>"+this.desc.map((e=>`<li>${e}</li>`)).join("")+"</ul>",s.setAttribute("for",this.id),t.appendChild(s),document.getElementById("config-list-basic").appendChild(t),new ErrorToolTip(this.id).addChangeListener()}e.value=String(this.value)}setElementValue(){this.getInputElement().value=String(this.value)}setElementDefaultValue(){this.getInputElement().value=String(this.defval)}removeElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.remove()}showElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.style.removeProperty("display")}hideElement(){let e=this.getInputElement();e&&e.parentElement.parentElement.style.setProperty("display","none")}}var CustTable=[new CustEntry("mtcConf","DRAM Timing",CustPlatform.Mariko,4,["<b>0</b>: AUTO_ADJ_MARIKO_SAFE: Auto adjust timings for LPDDR4 ≤3733 Mbps specs, 8Gb density. (Default)","<b>1</b>: AUTO_ADJ_MARIKO_4266: Auto adjust timings for LPDDR4X 4266 Mbps specs, 8Gb density.","<b>2</b>: NO_ADJ_ALL: No timing adjustment for both Erista and Mariko. Might achieve better performance on Mariko but lower maximum frequency is expected."],0,[0,2],1),new CustEntry("commonCpuBoostClock","Boost Clock in kHz",CustPlatform.All,4,["System default: 1785000","Boost clock will be applied when applications request higher CPU frequency for quicker loading.","This will be set regardless of whether sys-clk is enabled."],1785e3,[102e4,3e6],1,!1),new CustEntry("commonEmcMemVolt","EMC Vddq (Erista Only) & RAM Vdd2 Voltage in uV",CustPlatform.All,4,["Acceptable range: 1100000 ≤ x ≤ 1250000, and it should be divided evenly by 12500.","Erista Default (HOS): 1125000 (bootloader: 1100000)","Mariko Default: 1100000 (It will not work without sys-clk-OC)","Not enabled by default"],0,[11e5,125e4],12500),new CustEntry("eristaCpuMaxVolt","Erista CPU Max Voltage in mV",CustPlatform.Erista,4,["Acceptable range: 1100 ≤ x ≤ 1300","L4T Default: 1235"],1235,[1100,1300],1),new CustEntry("eristaEmcMaxClock","Erista RAM Max Clock in kHz",CustPlatform.Erista,4,["Values should be ≥ 1600000, and divided evenly by 3200.","<b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM"],1862400,[16e5,24e5],3200),new CustEntry("marikoCpuMaxVolt","Mariko CPU Max Voltage in mV",CustPlatform.Mariko,4,["System default: 1120","Acceptable range: 1100 ≤ x ≤ 1300"],1235,[1100,1300],5),new CustEntry("marikoEmcMaxClock","Mariko RAM Max Clock in kHz",CustPlatform.Mariko,4,["Values should be ≥ 1600000, and divided evenly by 3200.","<b>WARNING:</b> RAM overclock could be UNSTABLE if timing parameters are not suitable for your DRAM."],1996800,[16e5,24e5],3200),new CustEntry("marikoEmcVddqVolt","EMC Vddq (Mariko Only) Voltage in uV",CustPlatform.Mariko,4,["Acceptable range: 550000 ≤ x ≤ 650000","Value should be divided evenly by 5000","Default: 600000","Not enabled by default.","This will not work without sys-clk-OC."],0,[55e4,65e4],5e3)];class ErrorToolTip{constructor(e,t){this.id=e,this.msg=t,this.id=e,this.element=document.getElementById(e),t&&this.setMsg(t)}setMsg(e){return this.msg=e,this}show(){var e,t,i,s,a,l;return null===(e=this.elementLine truncated
|
||||
+3
-3
@@ -126,7 +126,7 @@ var CustTable: Array<CustEntry> = [
|
||||
"mtcConf",
|
||||
"DRAM Timing",
|
||||
CustPlatform.Mariko,
|
||||
2,
|
||||
4,
|
||||
["<b>0</b>: AUTO_ADJ_MARIKO_SAFE: Auto adjust timings for LPDDR4 ≤3733 Mbps specs, 8Gb density. (Default)",
|
||||
"<b>1</b>: AUTO_ADJ_MARIKO_4266: Auto adjust timings for LPDDR4X 4266 Mbps specs, 8Gb density.",
|
||||
"<b>2</b>: NO_ADJ_ALL: No timing adjustment for both Erista and Mariko. Might achieve better performance on Mariko but lower maximum frequency is expected."],
|
||||
@@ -439,7 +439,7 @@ class Cust {
|
||||
|
||||
parse() {
|
||||
let offset = this.beginOffset + this.magicLen;
|
||||
let revLen = 2;
|
||||
let revLen = 4;
|
||||
let rev = this.mapper[revLen].get(offset);
|
||||
if (rev != CUST_REV) {
|
||||
throw new Error(`Unsupported custRev, expected: ${CUST_REV}, got ${rev}`);
|
||||
@@ -493,7 +493,7 @@ class ReleaseInfo {
|
||||
sdOutZipAsset: ReleaseAsset;
|
||||
amsUrl: string;
|
||||
|
||||
readonly ocLatestApi = "https://api.github.com/repos/KazushiMe/Switch-OC-Suite/releases/latest";
|
||||
readonly ocLatestApi = "https://api.github.com/repos/hanai3Bi/Switch-OC-Suite/releases/latest";
|
||||
|
||||
async load() {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user