From 080e3e2aa7db7b7d06c7d65207c454727931a774 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sat, 11 Feb 2023 23:22:53 +0200 Subject: [PATCH] hos: disable AHB aperture before secmon launch Seems that old secmon were missing that and it may cause bad behavior on boot. Only affects stock old secmon versions. --- bootloader/hos/hos.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bootloader/hos/hos.c b/bootloader/hos/hos.c index b52f286..76691ee 100644 --- a/bootloader/hos/hos.c +++ b/bootloader/hos/hos.c @@ -1070,6 +1070,9 @@ int hos_launch(ini_sec_t *cfg) sd_end(); emmc_end(); + // Close AHB aperture. Important when stock old secmon is used. + mc_disable_ahb_redirect(); + gfx_printf("Rebuilt & loaded pkg2\n\n%kBooting...%k\n", TXT_CLR_GREENISH, TXT_CLR_DEFAULT); // Clear pkg1/pkg2 keys. @@ -1172,7 +1175,7 @@ int hos_launch(ini_sec_t *cfg) else ccplex_boot_cpu0(secmon_base); - // Halt ourselves in waitevent state and resume if there's JTAG activity. + // Halt ourselves in wait-event state. while (true) bpmp_halt();