From e5566c0a4681e74cefb94298a3f2a8e3661ff086 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Thu, 27 Nov 2025 12:29:16 +0200 Subject: [PATCH] hekate: add force 8GB ram config mode --- bootloader/l4t/l4t.c | 2 +- bootloader/main.c | 4 ++++ nyx/nyx_gui/nyx.c | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bootloader/l4t/l4t.c b/bootloader/l4t/l4t.c index 80801c5d..c3e79836 100644 --- a/bootloader/l4t/l4t.c +++ b/bootloader/l4t/l4t.c @@ -739,7 +739,7 @@ static void _l4t_bpmpfw_b01_config(l4t_ctxt_t *ctxt) char *ram_oc_txt = ctxt->ram_oc_txt; u32 ram_oc_freq = ctxt->ram_oc_freq; u32 ram_oc_opt = ctxt->ram_oc_opt; - u32 ram_id = fuse_read_dramid(true); + u32 ram_id = fuse_read_dramid(false); // Set default parameters. *(u32 *)BPMPFW_B01_DTB_ADDR = 0; diff --git a/bootloader/main.c b/bootloader/main.c index 0d1aa60c..9482db15 100644 --- a/bootloader/main.c +++ b/bootloader/main.c @@ -1469,6 +1469,10 @@ extern void pivot_stack(u32 stack_top); void ipl_main() { + // Override DRAM ID if needed. + if (ipl_ver.rcfg.rsvd_flags & RSVD_FLAG_DRAM_8GB) + fuse_force_8gb_dramid(); + // Do initial HW configuration. This is compatible with consecutive reruns without a reset. hw_init(); diff --git a/nyx/nyx_gui/nyx.c b/nyx/nyx_gui/nyx.c index 94731074..62a70635 100644 --- a/nyx/nyx_gui/nyx.c +++ b/nyx/nyx_gui/nyx.c @@ -447,6 +447,10 @@ void nyx_init_load_res() nyx_str->info.magic = 0; nyx_str->info_ex.magic = 0; + // Override DRAM ID if needed. + if (nyx_str->info_ex.rsvd_flags & RSVD_FLAG_DRAM_8GB) + fuse_force_8gb_dramid(); + // Set display id from previous initialization. display_set_decoded_panel_id(nyx_str->info.panel_id);