2021年8月25日 星期三

Errors for writing UEFI variables

Recently I got lots of questions for writing UEFI variables (ALT =), I believe it is because users wants to unlock the capability of your system.  And some blogs even mentioned how to do it with RU.

Due to the security reason, recent UEFI system firmware will not allow you to modify sensitive settings (variables).  And there is no way to change it unless you can update the SPI by a physical  programmer.

Here are what error numbers mean (UEFI spec) after you pressed CTRL-W.

0x00000000 EFI_SUCCESS               
0x00000001 EFI_LOAD_ERROR            
0x00000002 EFI_INVALID_PARAMETER     
0x00000003 EFI_UNSUPPORTED           
0x00000004 EFI_BAD_BUFFER_SIZE       
0x00000005 EFI_BUFFER_TOO_SMALL      
0x00000006 EFI_NOT_READY             
0x00000007 EFI_DEVICE_ERROR          
0x00000008 EFI_WRITE_PROTECTED       
0x00000009 EFI_OUT_OF_RESOURCES      
0x0000000a EFI_VOLUME_CORRUPTED      
0x0000000b EFI_VOLUME_FULL           
0x0000000c EFI_NO_MEDIA              
0x0000000d EFI_MEDIA_CHANGED         
0x0000000e EFI_NOT_FOUND             
0x0000000f EFI_ACCESS_DENIED         
0x00000010 EFI_NO_RESPONSE           
0x00000011 EFI_NO_MAPPING            
0x00000012 EFI_TIMEOUT               
0x00000013 EFI_NOT_STARTED           
0x00000014 EFI_ALREADY_STARTED       
0x00000015 EFI_ABORTED               
0x00000016 EFI_ICMP_ERROR            
0x00000017 EFI_TFTP_ERROR            
0x00000018 EFI_PROTOCOL_ERROR        
0x00000019 EFI_INCOMPATIBLE_VERSION  
0x0000001a EFI_SECURITY_VIOLATION    
0x0000001b EFI_CRC_ERROR             
0x0000001c EFI_END_OF_MEDIA          
0x0000001f EFI_END_OF_FILE           
0x00000020 EFI_INVALID_LANGUAGE      
0x00000021 EFI_COMPROMISED_DATA      
0x00000023 EFI_HTTP_ERROR            

 I won't be able to provide you on how to make it working, it is what it is from RU's perspective.

 

2021年5月7日 星期五

RU5.28.0397 BETA

Updated: 0396 build was removed and here is the new update 0397 build, thanks to @martin reporting the problem.

This version fixed mainly SIO and keyboard not working properly.  But I just did some very limited tests and some are not even tested.  Please note that It's not guaranteed that it works as expected.

Fix

  • Fix RU can't remember SIO LDN
  • Possibly fix the problem of reading keyboard input
  • Fix the problem of showing many non-existed SIOs
  • Possibly fix RU /L for SMBUS not working

RU /Sxx (Safe mode)

        xx stands for bits, for examples: RU /S4 means to skip SIO detection
  • BIT0=1: Read MTRR only for ALT-8 CPU
  • BIT1=1: Display readings from keyboard
  • BIT2=1: Skip detecting SIO
  • BIT3=1: Skip initializing text mode

Files

2020年9月22日 星期二

RU 5.27.0388 BETA

This version mainly add a test switch in command line for debugging keyboard combination problems.

Also it fixes the problem of "Save all PCI devices" resulting wrong data saved when 32-bit width is selected as reported by an user.

NOTE: It has not been tested, any wrong readings can be happened.

Command line "/S"

  • RU /S2
    • It shows RU key codes on the top of the screen when a key is pressed
  • RU /S1
    • It will only access CPU MTRRs, not all MSRs.  This is to avoid the hang while reading full set of MSRs

Get 5.27.0388 here

Password : 10462733123319

2020年8月25日 星期二

RU 5.26.0386 BETA

This version only fixes dome problem.  The main change is that RU takes too much time on some system scanning PCI devices.

NOTE: I didn't test it at all so it could be buggy.

  • Fix PCI hangs with PCI device base code 0xa.
  • Add IDE/AHCI prefix to ALT-5(HDD detection) device name
  • Fix "RU /L" loading file error
  • Fix SMBIOS data not restored after re-enter RU
  • SIO: Fix it detected lots of non-existed SIOs on some systems
  • Fix ACPI table displayed wrong MCFG/FPDT/DMAR/DBG2 details
  • Add new ACPI UEFI table
  • Previously RU scan all PCI functions unconditionally for better compatibility but it takes time. It is changed to scan PCI functions only if it's multi-function
  • Use Shift-F6  for scanning PCI functions unconditionally.
  • Fix SPD ALT-0 read failed (error: not existed)

Known issues: 

  •  All characters typed will be converted to lower cases

 

Get RU 5.26.0386 here

Password: 1374101733321016

2020年5月7日 星期四

RU 5.25.0379 Beta

This release was requested by an user to support detecting multiple SIO.  Again, not all functions are tested. 
I am also surprised some of bugs existed for a long time but no one reported to me XD
  • Support Exar SIO detection
  • Support for detecting up to 6 SIOs at the same time (NOT TESTED)
  • Fix ACPI (ALT-6) hangs on Intel Menlow platform
  • Ctrl-S is replaced by Ctrl-U to toggle sound
  • Fix some strings displaying problems
Download it here.
Password: 2002118028047

Tutorial: Type to find string

On any screen like below, you can just type any key to start the "find" dialog, so you don't need to browse the name one by one.  This has been done for years but I doubt anyone knows that.

Below is an example on variable (ALT-=) selection screen:




2019年11月13日 星期三

RU 5.24.0370 Beta

Features
  • List all available MSRs from #0 - #1000 even for those MSRs not recorded in RU name database
  • CPU MSR ALT-8 names can be searched: ALT-L/ENTER then type the name on the main screen

Changes
  • RU.EXE: Fix Save Default EXE is not working
  • Add page number displayed for CPU MSR
  • SIO: Add Fintek vendor IDs for auto-detection (NOT-TESTED)
  • SIO: Fix auto-detection is not working (tested only on one system)
  • Command line mode ` : All functions key are allowed (not sure is there will be any side effects)
  • Command line mode ` : The line will be changed to color red indicating it is in command line mode
  • Fix ACPI ALT-6 page number are displayed incorrectly after page #0xFF
  • UEFI configuration table from System Info CTRL-I can be browsed more than one page
  • Some minor UI changes
Download here
Password: 23234124810135744