datasone / setup_var.efi

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

Can I set any value larger than max? #10

Closed FNsi closed 1 year ago

FNsi commented 1 year ago

Would like to try😅

FNsi commented 1 year ago

I can prove it works fine.

datasone commented 1 year ago

I'm not quite sure what you mean by max, maybe you can write a bit more about the details?

I guess you are trying to provide larger value than the intended size, that will be limited by VALUE_SIZE.

FNsi commented 1 year ago

I'm not quite sure what you mean by max, maybe you can write a bit more about the details?

I guess you are trying to provide larger value than the intended size, that will be limited by VALUE_SIZE.

Nah, it's something in the text file

Flags: 0x12, Size: 32, Min: 0x200, Max: 0x1000, Step: 0x0

And I agree with you, the only limit is the value_size!!

datasone commented 1 year ago

I'm not quite sure what you mean by max, maybe you can write a bit more about the details? I guess you are trying to provide larger value than the intended size, that will be limited by VALUE_SIZE.

Nah, it's something in the text file

Flags: 0x12, Size: 32, Min: 0x200, Max: 6x1000, Step: 6x0

And I agree with you, the only limit is the value_size!!

Oh, that text describes the intended value range in the firmware setup.

This tool will only change corresponding value in settings storage, but how to interpret and apply the value depend on the firmware. So writing any value (within specified size) is valid for the tool, though it may be invalid for your firmware.

FNsi commented 1 year ago

I'm not quite sure what you mean by max, maybe you can write a bit more about the details?

I guess you are trying to provide larger value than the intended size, that will be limited by VALUE_SIZE.

Nah, it's something in the text file

Flags: 0x12, Size: 32, Min: 0x200, Max: 6x1000, Step: 6x0

And I agree with you, the only limit is the value_size!!

Oh, that text describes the intended value range in the firmware setup.

This tool will only change corresponding value in settings storage, but how to interpret and apply the value depend on the firmware. So writing any value (within specified size) is valid for the tool, though it may be invalid for your firmware.

Yep, and I am lucky hhaa.