mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 19:31:12 +00:00
hos: Remove emmc reinit for grabbing rsa modulus
This commit is contained in:
parent
4564db0b6d
commit
f7f99bddab
1 changed files with 3 additions and 7 deletions
|
@ -26,6 +26,7 @@
|
||||||
#include "../mem/heap.h"
|
#include "../mem/heap.h"
|
||||||
#include "../soc/fuse.h"
|
#include "../soc/fuse.h"
|
||||||
#include "../storage/emummc.h"
|
#include "../storage/emummc.h"
|
||||||
|
#include "../storage/nx_emmc.h"
|
||||||
#include "../storage/nx_sd.h"
|
#include "../storage/nx_sd.h"
|
||||||
#include "../storage/sdmmc.h"
|
#include "../storage/sdmmc.h"
|
||||||
#include "../utils/btn.h"
|
#include "../utils/btn.h"
|
||||||
|
@ -289,16 +290,11 @@ void config_exosphere(launch_ctxt_t *ctxt)
|
||||||
{
|
{
|
||||||
wb_cfg->fwno = exoFwNo;
|
wb_cfg->fwno = exoFwNo;
|
||||||
|
|
||||||
sdmmc_storage_t storage;
|
|
||||||
sdmmc_t sdmmc;
|
|
||||||
|
|
||||||
// Set warmboot binary rsa modulus.
|
// Set warmboot binary rsa modulus.
|
||||||
u8 *rsa_mod = (u8 *)malloc(512);
|
u8 *rsa_mod = (u8 *)malloc(512);
|
||||||
|
|
||||||
sdmmc_storage_init_mmc(&storage, &sdmmc, SDMMC_BUS_WIDTH_8, SDHCI_TIMING_MMC_HS400);
|
sdmmc_storage_set_mmc_partition(&emmc_storage, EMMC_BOOT0);
|
||||||
sdmmc_storage_set_mmc_partition(&storage, EMMC_BOOT0);
|
sdmmc_storage_read(&emmc_storage, 1, 1, rsa_mod);
|
||||||
sdmmc_storage_read(&storage, 1, 1, rsa_mod);
|
|
||||||
sdmmc_storage_end(&storage);
|
|
||||||
|
|
||||||
// Patch AutoRCM out.
|
// Patch AutoRCM out.
|
||||||
if ((fuse_read_odm(4) & 3) != 3)
|
if ((fuse_read_odm(4) & 3) != 3)
|
||||||
|
|
Loading…
Reference in a new issue