system76 / edk2 Goto Github PK
View Code? Open in Web Editor NEWThis project forked from mrchromebox/edk2
EDK II
Home Page: http://www.tianocore.org/edk2/
License: Other
This project forked from mrchromebox/edk2
EDK II
Home Page: http://www.tianocore.org/edk2/
License: Other
After choosing "Delete System76 and Microsoft keys (Use your own)" in the firmware setup menu, both System76 and Microsoft keys can still be seen with sbkeysync from Linux.
The code hints that only PK is deleted and the computer is immediately rebooted, but the keys of System76 and Microsoft are not actually deleted:
edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
Lines 4521 to 4523 in 42a443d
edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
Lines 4842 to 4858 in 42a443d
I would expect all these steps to be performed to actually delete vendor keys:
edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
Lines 4181 to 4210 in 42a443d
Some models will need the note about the ME being disabled to be modified. It looks like a check just hasn't been implemented yet:
edk2/MdeModulePkg/Application/UiApp/FrontPage.c
Lines 745 to 750 in 6ad3ee1
Work being done in wip/uefipayloadpkg.
Remaining work for rebasing on tianocore/edk2:
system76
by 9768421BdsDxe
flushes all key events before booting (BdsReadKeys()
)BmEnumerateBootOptions()
BmIsLoadOptionPeHeaderValid()
?system76
I get the following error when trying to build https://github.com/system76/firmware-open with both the latest code and the code as of hash system76/firmware-open@b337ac6 (the last safe commit for 10th gen and older):
/home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c: In function ‘UsbIoBulkTransfer’:
/home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c:267:13: error: ‘UsbHcBulkTransfer’ accessing 80 bytes in a region of size 8 [-Werror=stringop-overflow=]
267 | Status = UsbHcBulkTransfer (
| ^~~~~~~~~~~~~~~~~~~
268 | Dev->Bus,
| ~~~~~~~~~
269 | Dev->Address,
| ~~~~~~~~~~~~~
270 | Endpoint,
| ~~~~~~~~~
271 | Dev->Speed,
| ~~~~~~~~~~~
272 | EpDesc->Desc.MaxPacketSize,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~
273 | BufNum,
| ~~~~~~~
274 | &Data,
| ~~~~~~
275 | DataLength,
| ~~~~~~~~~~~
276 | &Toggle,
| ~~~~~~~~
277 | Timeout,
| ~~~~~~~~
278 | &Dev->Translator,
| ~~~~~~~~~~~~~~~~~
279 | UsbStatus
| ~~~~~~~~~
280 | );
| ~
/home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c:267:13: note: referencing argument 7 of type ‘void *[10]’
In file included from /home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.h:40,
from /home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBus.c:10:
/home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbUtility.h:145:1: note: in a call to function ‘UsbHcBulkTransfer’
145 | UsbHcBulkTransfer (
| ^~~~~~~~~~~~~~~~~
make: Nothing to be done for 'tbuild'.
Building ... /home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf [X64]
make: Nothing to be done for 'tbuild'.
Building ... /home/user/Development/system76/firmware-open/edk2/UefiCpuPkg/CpuDxe/CpuDxe.inf [X64]
cc1: all warnings being treated as errors
make: *** [GNUmakefile:365: /home/user/Development/system76/firmware-open/edk2/Build/UefiPayloadPkgX64/RELEASE_COREBOOT/X64/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe/OUTPUT/UsbBus.obj] Error 1
build.py...
: error 7000: Failed to execute command
make tbuild [/home/user/Development/system76/firmware-open/edk2/Build/UefiPayloadPkgX64/RELEASE_COREBOOT/X64/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe]
build.py...
: error 7000: Failed to execute command
make tbuild [/home/user/Development/system76/firmware-open/edk2/Build/UefiPayloadPkgX64/RELEASE_COREBOOT/X64/UefiCpuPkg/CpuDxe/CpuDxe]
build.py...
: error F002: Failed to build module
/home/user/Development/system76/firmware-open/edk2/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf [X64, COREBOOT, RELEASE]
Full log: https://gist.github.com/MilesBHuff/145df4d28f359504d691e2a41da93887#file-build-log
OS: OpenSUSE Tumbleweed
I've installed all of the dependencies in scripts/deps.sh
, afaict.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.