Closed crawfxrd closed 3 years ago
~This can be done with firmware-smmstore, but it won't solve the reported issue in firmware-open. To do that would require not calling through the SMI interface, which I'm not sure is feasible.~
It looks like it would be sufficient to just copy the compact logic from firmware-smmstore and perform it on the memory slice when copied in app/bios.rs
.
No longer valid. Systems will use SMMSTOREv2 in the next update. Data will need to be migrated from SMMSTOREv1 to the NV Data FV format used by edk2.
Due to system76/firmware-open#145, upgrades cannot happen until the SMMSTORE region is compacted/cleared.
As commented in #29, a possible solution is to compact the store. This could happen either always on upgrade, or only when an error is detected with SMMSTORE (which currently happens when setting the override key).