Hello,
I am trying to update SBL using the method shown in the documentation
https://slimbootloader.github.io/security/firmware-update.html but I get the following
error:
=================Read Capsule Image==============
BootMediumPciBase(0xE00A8000)
Init USB XHCI - Success
XHCI: Don't support multi-TT feature for Hub now. (force to disable MTT)
XhcPeiCheckUrbResult: STALL_ERROR! Completecode = 6
XhcPeiControlTransfer: error - Device Error, transfer - 2
XhcPeiCheckUrbResult: STALL_ERROR! Completecode = 6
XhcPeiControlTransfer: error - Device Error, transfer - 2
Enumerate Bus - Success
Found 7 USB devices on bus
Found mass storage on device 0
find boot partition
Partition type: MBR (1 logical partitions)
Find partion success
Find partition
Detected FAT on HwDev 0 Part 0
Capsule Image found, ImageSize=0x22128C
First 256Bytes of capsule image
00000000: 58 AE 3E 1A 80 B5 EF 4F-AC A3 A1 6D 9E 00 DF 5F *X.>....O...m..._*
00000010: 40 00 00 00 01 00 00 00-00 00 00 00 80 11 22 00 *@.............".*
00000020: 0C 01 00 00 40 00 00 00-38 10 22 00 78 10 22 00 *....@...8.".x.".*
00000030: 08 01 00 00 00 00 00 00-00 00 00 00 00 00 00 00 *................*
00000040: 01 00 00 00 00 00 01 00-10 00 00 00 00 00 00 00 *................*
00000050: 02 00 00 00 13 68 5C 60-C7 C2 42 42 9C 27 50 A4 *.....h\`..BB.'P.*
00000060: C3 63 DB A4 01 00 00 00-00 10 22 00 00 00 00 00 *.c........".....*
00000070: 42 49 4F 53 00 00 00 00-42 49 4F 53 02 00 00 00 *BIOS....BIOS....*
00000080: 00 00 00 00 00 00 00 00-49 42 42 50 00 10 00 00 *........IBBP....*
00000090: 00 D0 0C 00 00 00 00 00-4F 42 42 50 00 E0 0C 00 *........OBBP....*
000000A0: 00 30 15 00 00 00 00 00-FF FF FF FF FF FF FF FF *.0..............*
000000B0: FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF *................*
000000C0: FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF *................*
000000D0: FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF *................*
000000E0: FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF *................*
000000F0: FF FF FF FF FF FF FF FF-FF FF FF FF FF FF FF FF *................*
CapsuleImage: 0x79470010, CapsuleSize: 0x22128C
HASH verification for usage (0x00000400) with Hash Alg (0x1): Success
SignType (0x1) SignSize (0x100) SignHashAlg (0x1)
RSA verification for usage (0x00000400): Success
Set next FWU state: 0x7F
Get current FWU state: 0x7F
GetFfsFileByName: Not Found
GetVersionfromFv: Not Found
VerifyFwVersion failed with Status = 0x8000000E
ApplyFwImage failed with Status = Not Found
Firmware Update status updated to reserved region
Set next FWU state: 0x77
Firmware update Done! clear CSE flag to normal boot mode.
HECI SecMode 0
I think my capsule image is not generated correctly. To do this, follow the steps below:
1. Build SBL for Apollo Lake:
python BuildLoader.py build apl
2. Generate IFWI image using StitchIfwi.py which generate the APL_SBL_IFWI.bin file.
3. Flash APL_SBL_IFWI.bin using Dediprog.
4. Generate capsule image:
python ./BootloaderCorePkg/Tools/GenCapsuleFirmware.py -v -p BIOS
../bios/IFWI/stitching/Output/APL_SBL_IFWI.bin -k
./BootloaderCorePkg/Tools/Keys/TestSigningPrivateKey.pem -o FwuImage.bin
5. Enter in SBL shell and run fwupdate whit a USB key connected.
6. I get the log shown at the beginning.
Could you tell me if capsule image is correctly generated, if it is not, which BIOS file
must I use as argument for GenCapsuleFirmware.py?
Thanks.
Best regards.