Skip to content
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

Can't use setup_var (offset out of range) #36

Open
OmarRod1314 opened this issue Feb 1, 2023 · 7 comments
Open

Can't use setup_var (offset out of range) #36

OmarRod1314 opened this issue Feb 1, 2023 · 7 comments

Comments

@OmarRod1314
Copy link

I'm trying to reduce the Max TOLUD of my Lenovo M72e (Ivy) BIOS so I can get 2 GB worth of PCIE address bar for my graphics card... Unfortunately, even with the identified 0x2D1 offset in my GUID file and the "1 GB" 0x3 value from there, I keep getting this error in the end of the sequence. No changes were made as I still had 256 MB of ReBar like before so... What's left to do?

Here's the file just in case, extracted with Universal-IFR-Extractor and UEFITool beforehand. The command I used is "setup_var 0x2D1 0x3" and the setup_var_3 version of it. Same results.

Section_Freeform_subtype_GUID_97E409E6-4CC1-11D9-81F6-000000000000_Setup_Setup_body IFR.txt

@datasone
Copy link
Owner

datasone commented Feb 1, 2023

Can you try setup_var.efi for better error information?
The IFR info does show 0x2D1 in Setup, so the command should be right.

@OmarRod1314
Copy link
Author

Do I need to use the same command? And if the case, can I just reset the CMOS or load BIOS defaults to revert these changes? Just making sure before changing this out.

@datasone
Copy link
Owner

datasone commented Feb 1, 2023

The command is changed a little, but the README in setup_var.efi describes how to transform the grub commands to the newly ones.
Clearing CMOS usually will reset changes to default, as long as only operating with varstores used to store settings (i.e. shown in IFR txt). But it's very implementation-dependent and thus doesn't have a definite answer.

@OmarRod1314
Copy link
Author

I tried to boot this one but when I choose my device it just doesn't and boots the system instead.

@datasone
Copy link
Owner

datasone commented Feb 2, 2023

That tool needs to be used in a UEFI shell for showing results.

@OmarRod1314
Copy link
Author

What's that? I can't just put it into a Windows install efi folder like the another?

@datasone
Copy link
Owner

datasone commented Feb 8, 2023

You need to boot UEFI shell, and use the setup_var.efi inside the shell.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants