1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 19:52:11 +00:00

hos: set proper exo hos version for 12.1.0

Even if 12.0.0 one is api compatible, there was a master key change on 12.1.0.
This commit is contained in:
CTCaer 2023-03-31 09:17:13 +03:00
parent 3c3fcb29f9
commit b1112e0949
2 changed files with 5 additions and 1 deletions

View file

@ -1026,7 +1026,7 @@ int hos_launch(ini_sec_t *cfg)
pkg2_merge_kip(&kip1_info, (pkg2_kip1_t *)mki->kip1); pkg2_merge_kip(&kip1_info, (pkg2_kip1_t *)mki->kip1);
// Check if FS is compatible with exFAT and if 5.1.0. // Check if FS is compatible with exFAT and if 5.1.0.
if (!ctxt.stock && (sd_fs.fs_type == FS_EXFAT || kb == KB_FIRMWARE_VERSION_500)) if (!ctxt.stock && (sd_fs.fs_type == FS_EXFAT || kb == KB_FIRMWARE_VERSION_500 || ctxt.pkg1_id->fuses == 13))
{ {
bool exfat_compat = _get_fs_exfat_compatible(&kip1_info, &ctxt.exo_ctx.hos_revision); bool exfat_compat = _get_fs_exfat_compatible(&kip1_info, &ctxt.exo_ctx.hos_revision);

View file

@ -162,6 +162,10 @@ void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base)
else else
exo_fw_no = ctxt->pkg1_id->fuses - 1; // 3.0.1 - 7.0.1, 8.0.x. exo_fw_no = ctxt->pkg1_id->fuses - 1; // 3.0.1 - 7.0.1, 8.0.x.
// Set 12.1.0 specific revision.
if (ctxt->pkg1_id->kb == KB_FIRMWARE_VERSION_1210)
ctxt->exo_ctx.hos_revision = 1;
// Handle 15.0.0+. // Handle 15.0.0+.
if (ctxt->pkg1_id->fuses >= 17) if (ctxt->pkg1_id->fuses >= 17)
exo_fw_no++; exo_fw_no++;