SD errata, bugfixes, replace hardcoded values

This commit is contained in:
Kostas Missos
2018-06-03 09:07:03 +03:00
committed by nwert
parent c9f5a2516f
commit c43b6f8a5d
6 changed files with 55 additions and 28 deletions

View File

@@ -378,8 +378,13 @@ int hos_launch(ini_sec_t *cfg)
memset(&ctxt, 0, sizeof(launch_ctxt_t));
list_init(&ctxt.kip1_list);
gfx_clear(&gfx_ctxt, 0xFF1B1B1B);
gfx_con_setpos(&gfx_con, 0, 0);
if (cfg && !_config(&ctxt, cfg))
return 0;
gfx_printf(&gfx_con, "Initializing...\n\n");
//Read package1 and the correct keyblob.
if (!_read_emmc_pkg1(&ctxt))
@@ -497,7 +502,7 @@ int hos_launch(ini_sec_t *cfg)
break;
}
//Clear 'BootConfig'.
//Clear 'BootConfig' for retail systems.
memset((void *)0x4003D000, 0, 0x3000);
//pkg2_decrypt((void *)0xA9800000);