Skip to content

esrt: Add framework desktop GUID #152

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

Merged
merged 2 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,3 +439,28 @@ The scancodes are the same.
### Framework 16

It's not controlled by the EC, use https://keyboard.frame.work.

## Advanced commands

Mostly for debugging firmware.

### Check EFI Resource Table

On Framework Desktop:

```
> sudo framework_tool --esrt
ESRT Table
ResourceCount: 1
ResourceCountMax: 1
ResourceVersion: 1
ESRT Entry 0
GUID: EB68DBAE-3AEF-5077-92AE-9016D1F0C856
GUID: DesktopAmdAi300Bios
Type: SystemFirmware
Version: 0x204 (516)
Min FW Version: 0x100 (256)
Capsule Flags: 0x0
Last Attempt Version: 0x108 (264)
Last Attempt Status: Success
```
8 changes: 8 additions & 0 deletions framework_lib/src/esrt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ pub const AMD13_AI300_BIOS_GUID: GUID = GUID::build_from_components(
0x5d68,
&[0xbe, 0x61, 0x6b, 0x17, 0x88, 0x10, 0x14, 0xa7],
);
pub const DESKTOP_AMD_AI300_BIOS_GUID: GUID = GUID::build_from_components(
0xeb68dbae,
0x3aef,
0x5077,
&[0x92, 0xae, 0x90, 0x16, 0xd1, 0xf0, 0xc8, 0x56],
);
pub const RPL_CSME_GUID: GUID = GUID::build_from_components(
0x865d322c,
0x6ac7,
Expand Down Expand Up @@ -182,6 +188,7 @@ pub enum FrameworkGuidKind {
Fl16Bios,
Amd13Ryzen7040Bios,
Amd13Ai300Bios,
DesktopAmdAi300Bios,
WinUx,
Unknown,
}
Expand All @@ -196,6 +203,7 @@ pub fn match_guid_kind(guid: &Guid) -> FrameworkGuidKind {
FL16_BIOS_GUID => FrameworkGuidKind::Fl16Bios,
AMD13_RYZEN7040_BIOS_GUID => FrameworkGuidKind::Amd13Ryzen7040Bios,
AMD13_AI300_BIOS_GUID => FrameworkGuidKind::Amd13Ai300Bios,
DESKTOP_AMD_AI300_BIOS_GUID => FrameworkGuidKind::DesktopAmdAi300Bios,
TGL_RETIMER01_GUID => FrameworkGuidKind::TglRetimer01,
TGL_RETIMER23_GUID => FrameworkGuidKind::TglRetimer23,
ADL_RETIMER01_GUID => FrameworkGuidKind::AdlRetimer01,
Expand Down
Loading