From 468a063c03f0a5de95aa467b0d1111538ee2d1ee Mon Sep 17 00:00:00 2001 From: TuxSH Date: Wed, 16 May 2018 23:19:55 +0200 Subject: [PATCH] Load the appropriate package1 key. The warmboot fw is now properly read. --- fusee/fusee-secondary/src/key_derivation.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fusee/fusee-secondary/src/key_derivation.c b/fusee/fusee-secondary/src/key_derivation.c index c085dad62..ac8deea0e 100644 --- a/fusee/fusee-secondary/src/key_derivation.c +++ b/fusee/fusee-secondary/src/key_derivation.c @@ -127,6 +127,9 @@ int derive_nx_keydata(uint32_t target_firmware, const nx_keyblob_t *keyblobs, ui /* Get needed data. */ set_aes_keyslot(0xC, g_dec_keyblobs[MASTERKEY_REVISION_500_CURRENT].keys[0], 0x10); + /* Also set the Package1 key for the revision that is stored on the eMMC boot0 partition. */ + load_package1_key(available_revision); + /* Derive keys for Exosphere, lock critical keyslots. */ switch (target_firmware) { case EXOSPHERE_TARGET_FIRMWARE_100: