-
-
Notifications
You must be signed in to change notification settings - Fork 3
Novacustom capsule tests #800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Using the capsule with wrong certificate Using the valid capsule, the update is performed properly. Immediately after the update ethernet stops working.
*edit |
If the FW (both current and capsule) was not built with these changes: Dasharo/edk2#240 then it is an expected outcome... I.e. the GBE region was probably overwritten in your case |
That sounds like Dasharo/dasharo-issues#1075 which has not been addressed for NovaCustom either. |
After recreating the capsules with GBE region filled using DCU, the capsule update fails with valid capsule. It seems the CI creates the capsules a bit differently. It uses the keys from edk2 repo instead of generating them using the
I've been using the |
Seems that the capsule indeed has to be signed with the testing keys from the EDK2 repository, not using ones generated using the |
@philipanda, there is a manual step of making EDK aware of the root key ( |
No, I have not been copying it. Thank you for pointing that out. CI does not generate the keys using capsule.sh but uses the testing keys from edk2 repo, which are already there. |
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
it can be changed on lib_dcu platforms, no reason to fail here Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
It is controlled by the test suite anyway Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
14dc281
to
736c98a
Compare
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
@mkopec I'll modify both images by setting the MAC addresses using DCU and continue |
Setting the MAC using dcu in both the initial FW and the FW from which a capsule is generated does not help with Ethernet. After performing a capsule update I've flashed only the gbe region using
Logs: FW and capsule used: *edit |
@philipanda did you bump |
@krystian-hebel Yes, I was able to perform the update manually. The photo showing the update was taken during a successful update. With the exact same capsules and the same base firmware the update often fails with status 'Out of Resources'. And the update always breaks ethernet, which is fixable by flashing the gbe region, even using the exact same firmware image out of which the capsule was created. |
Looks like the migration proceeds but the actual reading of the old GbE region is failing. @SergiiDmytruk any idea why the gbe region would be all 0xFF's when read through the extended BIOS window? I see you authored this commit: Dasharo/coreboot@01c93ef Actually it looks like everything outside of the BIOS region is 0xFFs when read through the ext BIOS window |
I see the same values for Meteor Lake as for other SoCs:
Maybe they should be different for MTL? In particular, there is an assumption that the top of that window is used by the flash chip (see Actually, I just realized that for MSI the flash map starts with:
So reads might actually return all 0xFFs without breaking anything and I don't remember verifying the contents, I think update just failed without that commit. |
Extended decode window starts at 0xf9000000 as expected:
Reading RW_FWID_A works:
But reading stuff before the (IFD) BIOS region seems to fail with all FFs (this should contain the descriptor signature):
To me this looks like the extended BIOS decode window can only decode the IFD BIOS region, although Intel docs aren't clear on this |
Good guess. This would imply that we're not updating ME on MSI and can't change layout on capsules updates. Sounds like flash might need to be accesses via a combination of fast SPI and real SPI interfaces or, much simpler, fast SPI needs to be disabled (no idea how much faster it is). |
I think writing does work, and only reading is failing, because the GbE region after migration is full of FFs instead of whatever was there before |
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
Signed-off-by: Filip Gołaś <filip.golas@3mdeb.com>
b6d6686
to
d6b42dd
Compare
@@ -0,0 +1,3 @@ | |||
SPDX-FileCopyrightText: 2024 3mdeb <contact@3mdeb.com> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use https://github.com/Dasharo/osfv-test-data/tree/master/uefi-shell?
Also, this isn't proper license for something that came from edk2 code.
No description provided.