GeographicCone / UefiVarTool

Scriptable tool to read and write UEFI variables from EFI shell. View, save, edit and restore hidden UEFI (BIOS) Setup settings faster than with the OEM menu forms.
GNU General Public License v3.0
46 stars 3 forks source link

Issue with VarID #3

Open njavro opened 4 months ago

njavro commented 4 months ago

I have had a great success with UVT thus far, and am currently experiencing slight issue that might not be related to UVT itself but thought to ask here.

Following all the instructions and using SlimIFR I am interested in changing following variable: (SlimIFR format) Setup:0x0884 TCSS Platform Setting: USBC connector manager selection [0x00 - Disabled, 0x01 - Enable UCSI Device, 0x02 - Enable UCMC Device]

Within UEFI shell I run the following command in order to obtain current value of this variable: uvt Setup:0x0884, however I get warning that two variables share the same name:

Which one do you mean?
Setup(0x00) # Size: 0x0010
Setup(0x01) # Size: 0x151a
Get variable error: Use one of the above identifiers

Then I proceed to run uvt Setup(0x00):0x0884 hoping to resolve ambiguity and obtain the relevant variable value, however I encounter the following error: Get variable error: Variable size 0x0010 less than offset 0x0884 and value size 1

If I decide to try uvt Setup(0x01):0x0884 the output value for variable is 0x48c which as you can see does not make sense (value should be either 0x00,0x01 or 0x02.

Not sure what's causing the error for the first example, in any case any help would be appreciated.