-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
pre-commit: autoupdate hooks #117
Open
pre-commit-ci
wants to merge
5,150
commits into
dasharo-stable202002
Choose a base branch
from
pre-commit-ci-update-config
base: dasharo-stable202002
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
pre-commit: autoupdate hooks #117
pre-commit-ci
wants to merge
5,150
commits into
dasharo-stable202002
from
pre-commit-ci-update-config
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6cf37b9
to
fdb6e4f
Compare
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
…turesStrings.uni: fix incorrect min timeout in helptext Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
…ch other Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
… name Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
…n NETWORK_ENABLE Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
MdeModulePkg: * add defines * add PcdDetectPs2KbOnCmdAck DasharoPayloadPkg: * detect PS/2 keyboard by sending it an "echo" command if Dasharo/Ps2Controller is enabled or doesn't exist * remove PS/2 from ConIn if the variable exists and the keyboard is not connected or is disabled
…c: refresh logo after popup Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Fixing one confusing debug message in DasharoPayloadPkg/Library/SmmStoreLib/SmmStore.c in the process. Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com> Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
…row for selected item and better contrast Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
…vars are not populated but network boot is enabled Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Kacper Stojek <kacper.stojek@3mdeb.com>
…ticatedVariableGuid as header Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Karol Zmyslowski <karol.zmyslowski@3mdeb.com> Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com> Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
…c: add more debug logs Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
…c: reorganize Boot Manager registration Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
…2 detection Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
…sule update This should ensure that various protection mechanisms are off and won't get in the way of firmware flashing. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
The library was handling address switch event and updating pointers via EfiConvertPointer() from UefiRuntimeLib which can't be used in a non-runtime DXE. Turn event handler into an exported function and make SmmStoreFvb invoke that function in its handler of virtual address change. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This allows reusing SMMSTORE protocol for the purpose of firmware updates. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Such strings include, for example, coreboot version information. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Part of functions of the library are left unimplemented (return EFI_UNSUPPORTED) the rest use information about current firmware obtained from CBMEM and SMMSTOREv2 to perform flashing. Flashing is slightly optimized: FmpDeviceSetImageWithStatus() first reads a block and checks that it differs from the new contents before initiating erase and write. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
…s HAP-disabled HAP-disabled ME doesn't do anything, including writing to system flash, which is what we need for a firmware update that relies on a warm reset. coreboot assumes that HECI/soft-disabled state of ME isn't as good as HMRFPO and switches to HMRFPO doing a global reset which loses in-RAM capsules. Checking variable's value should be enough, if somebody manually set it to an invalid value, the update there will be a reboot without a capsule update. A more reliable solution would be to pass this information from coreboot. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
…psules Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
coreboot flash map data parsing library. There is a small amount of code, so modify it to mostly look like EDK code. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
This is a preparation for moving data from current image. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Introduce and integrate MergeFirmwareImages() which will perform the migration. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
The code is imported in its essentially unchanged form (although large chunks of unused code were removed). There is a header which maps C symbols to their equivalents in EDK2 to make the code work without modifications. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Returning an error from this function can disable useful functionality like capsule updates because progress bar treats such errors as fatal... Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
The information is stored in CBFS files with known names. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Simple EFI variables driver as a library. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Instead of copying whole SMMSTORE region. Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
…s bar Position and size of progress bar produced by DisplayUpdateProgressLibGraphics depends on the size of boot logo. As the logo can be customized by users, a dummy logo with determinable dimensions, depending on the size of current GOP mode, is created to make progress bar appear always in the same place. Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Project page: https://gitlab.com/bztsrc/scalable-font2 Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
…errors Reasoning for ignoring errors is that this driver gives only informational output, and failure to do so shouldn't abort the update process. Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Previously, the code chose the highest non-reserved RAM region below 4G mark, regardless of its size. If the memory is fragmented, this may result in failed memory allocation further down the line. Skip regions smaller than PeiMemSize as defined in BlPeiEntryPoint. In some cases, it isn't possible to differentiate between structures in RAM (e.g. coreboot tables) and memory reserved by System Agent (e.g. TSEG, GSM) based on memory region type. Both are reported as reserved memory and they may even be combined into one region, but their caching methods must be different. Because of that, MTRR setting code is no longer called at this point. This depends on coreboot setting memory caching attributes properly, which it already does. Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
This is required for initializing capsule update process from Linux's capsule_loader. It also fixes the possibility for putting the device in infinite FUM loop by creating the variable with runtime access. SetVariable() in WarnIfFirmwareUpdateMode() used to remove the variable failed because of mismatched attributes. According to UEFI specification, > If a preexisting variable is rewritten with no access attributes > specified, the variable will be deleted. This is exactly what is needed. The other way to delete a variable is to specify matching attributes and set the size of a variable as 0. Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com>
The MTRRs have already been programmed by FSB (coreboot). Change-Id: I8c6e7657b789edac8ee83a89318209a598712db8 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
86c9798
to
9b9293b
Compare
…version Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.4.0...v5.0.0) - [github.com/talos-systems/conform: v0.1.0-alpha.27 → v0.1.0-alpha.30](siderolabs/conform@v0.1.0-alpha.27...v0.1.0-alpha.30) - [github.com/codespell-project/codespell: v2.2.5 → v2.4.1](codespell-project/codespell@v2.2.5...v2.4.1)
9b9293b
to
e3fe2ce
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
updates: