datasone / setup_var.efi

UEFI command-line tool for read/write access of variables
Apache License 2.0
221 stars 8 forks source link

Hello, I confirm that it can be applied to Phoenix BOIS #12

Open shenlei89 opened 1 year ago

shenlei89 commented 1 year ago

Hello, I confirm that it can be applied to Phoenix BOIS Using the 'setup_varcv AmdSetup 0xC1' command will return offset=0x0f using “setup Var_ cv AmdSetup 0xC1 0x0f 0x01” command also prompts success But after entering the BIOS, nothing changed, and when entering this tool again to query 0xc1, the offset value returned is still 0x0f Is there anything special about Phoenix bios? Looking forward to your reply, thank you for your help, thank you!

datasone commented 1 year ago

How did you decide the offset 0x0F? Normally you need to analyze the UEFI firmware image for retrieving setting item offset information.

Besides, I think you are using the grub tool instead of setup_var.efi? (due to the setup_var_cv you mentioned). You are using the command wrongly (the first parameter is the name of the VarStore) and may refer to the README in that repo for detailed usage. Though I highly recommend using setup_var.efi instead of that deprecated tool.

BTW about the grub tool, some of the output came from legacy code and shouldn't be treated as correct (like that offset=0x0f). It's highly probable that the values doesn't match output names or tags.

shenlei89 commented 1 year ago

Thank you very much for your reply Please take a look at the following two pictures 1688830406047 1688830467545 I viewed the module of the option I wanted to modify through uefitool, then unzipped the module and explained it as a TXT document through the tool

shenlei89 commented 1 year ago

IGPU Configuration does not exist in setup, so I specified 'amdsetup' using the 'setup_var_cv' command. '0xc1' is the iGPU Configuration option, 0XF is the default offset value, and 0X1 is the offset value I want

shenlei89 commented 1 year ago

File_DXE_driver_CbsSetupDxeRN_CbsSetupDxeRN IFR.txt This document