Skip to content

Commit 7fbd80d

Browse files
Merge pull request #152 from FrameworkComputer/desktop-esrt
esrt: Add framework desktop GUID
2 parents ad420df + a752647 commit 7fbd80d

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

EXAMPLES.md

+25
Original file line numberDiff line numberDiff line change
@@ -439,3 +439,28 @@ The scancodes are the same.
439439
### Framework 16
440440

441441
It's not controlled by the EC, use https://keyboard.frame.work.
442+
443+
## Advanced commands
444+
445+
Mostly for debugging firmware.
446+
447+
### Check EFI Resource Table
448+
449+
On Framework Desktop:
450+
451+
```
452+
> sudo framework_tool --esrt
453+
ESRT Table
454+
ResourceCount: 1
455+
ResourceCountMax: 1
456+
ResourceVersion: 1
457+
ESRT Entry 0
458+
GUID: EB68DBAE-3AEF-5077-92AE-9016D1F0C856
459+
GUID: DesktopAmdAi300Bios
460+
Type: SystemFirmware
461+
Version: 0x204 (516)
462+
Min FW Version: 0x100 (256)
463+
Capsule Flags: 0x0
464+
Last Attempt Version: 0x108 (264)
465+
Last Attempt Status: Success
466+
```

framework_lib/src/esrt/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ pub const AMD13_AI300_BIOS_GUID: GUID = GUID::build_from_components(
131131
0x5d68,
132132
&[0xbe, 0x61, 0x6b, 0x17, 0x88, 0x10, 0x14, 0xa7],
133133
);
134+
pub const DESKTOP_AMD_AI300_BIOS_GUID: GUID = GUID::build_from_components(
135+
0xeb68dbae,
136+
0x3aef,
137+
0x5077,
138+
&[0x92, 0xae, 0x90, 0x16, 0xd1, 0xf0, 0xc8, 0x56],
139+
);
134140
pub const RPL_CSME_GUID: GUID = GUID::build_from_components(
135141
0x865d322c,
136142
0x6ac7,
@@ -182,6 +188,7 @@ pub enum FrameworkGuidKind {
182188
Fl16Bios,
183189
Amd13Ryzen7040Bios,
184190
Amd13Ai300Bios,
191+
DesktopAmdAi300Bios,
185192
WinUx,
186193
Unknown,
187194
}
@@ -196,6 +203,7 @@ pub fn match_guid_kind(guid: &Guid) -> FrameworkGuidKind {
196203
FL16_BIOS_GUID => FrameworkGuidKind::Fl16Bios,
197204
AMD13_RYZEN7040_BIOS_GUID => FrameworkGuidKind::Amd13Ryzen7040Bios,
198205
AMD13_AI300_BIOS_GUID => FrameworkGuidKind::Amd13Ai300Bios,
206+
DESKTOP_AMD_AI300_BIOS_GUID => FrameworkGuidKind::DesktopAmdAi300Bios,
199207
TGL_RETIMER01_GUID => FrameworkGuidKind::TglRetimer01,
200208
TGL_RETIMER23_GUID => FrameworkGuidKind::TglRetimer23,
201209
ADL_RETIMER01_GUID => FrameworkGuidKind::AdlRetimer01,

0 commit comments

Comments
 (0)