boot: implement CheckAndRepairBootImages

This commit is contained in:
Michael Scire 2019-05-09 01:17:56 -07:00
parent a4ee4d20ad
commit 7581306109
13 changed files with 1581 additions and 3 deletions

View file

@ -134,13 +134,16 @@ int main(int argc, char **argv)
/* Configure the PMC wake pin settings. */
Boot::SetInitialWakePinConfiguration();
/* Configure output clock. */
if (hw_type != HardwareType_Copper) {
Boot::SetInitialClockConfiguration();
}
/* Set Fan enable config (Copper only). */
Boot::SetFanEnabled();
/* TODO: CheckAndRepairBootImages(); */
/* Repair boot partitions in NAND if needed. */
Boot::CheckAndRepairBootImages();
/* Tell PM to start boot2. */
if (R_FAILED(pmshellNotifyBootFinished())) {