2007年6月22日 星期五

What is RU.EFI / RU.EXE?

What does RU mean anyway?
RU = Read Universal 

Actually it should be Universal Read or Read Universe (just brag myself).  It was wrong in grammar but I've never corrected it.

The first version should be (if I remember it correctly) in 1993 when I first read the datasheet. I was lazy to always get the data sheet and looked for the bits to see what they mean, so I wrote a small tool to parse the registers and display the meanings of all registers. It did not look like this at the beginning.

RU.EXE was written by Turbo C initially and then Borland C++, it combines C and Assembly.

RU.EFI was done in 2012, very late after UEFI was introduced for many years.  It has almost the same functionality as RU.EXE but it works under UEFI shell as an UEFI application. 

Limitations:
RU.EXE works for DOS.  RU.EFI is an UEFI application which works under UEFI shell environment.  You can still run RU.EXE in Windows but most of IO will not be working.  For Windows version, please get SE.EXE or RW.EXE(aka RWEverything), they are also from my colleagues.  RW.EXE is a must have tool for debugging BIOS under Windows, the writer is a genius.

Important Notes:
RU might be buggy, it is not my responsibility to guarantee it reads/writes hardware correctly.  But if you find any bugs, feel free to leave me a comment here. Thanks a lot.
*** Please don't ask me to share the source code, I believe you can do better than an old man ***
*** Don't include RU for any commercial use ***

Followings are from help of RU.EXE/RU.EFI, you can also press F1 key in to read them.

RU helps you to read chipsets easier than using DEBUG.EXE.  And also helps you to debug the BIOS or motherboard problems.

It can read:

  1. PCI configuration space F6 ALT-1
  2. PCI Express
  3. Super I/O chipsets
    Manual access: Link
    Auto detection: Link
  4. System chipsets
  5. 16bit port read/write up to 32bit data
  6. IO space ALT-4
  7. IDE / AHCI data returned by Identify Command ALT-5
  8. Read/Write memory (In EMM386/Windows 9x max=1MB) ALT-7
  9. CPU MSRs (AMD and Intel), different AP support for RU.EFI ALT-8
  10. SMBIOS data ALT-9
  11. SMBUS data (partially working) ALT-0
  12. CPU Brand / ID / speed CTRL-I
  13. UEFI configuration tables Ctrl-I
  14. UEFI variables (RU.EXE must be used with RUSMI Aptio module) ALT-=
  15. ACPI tables ALT-6
  16. Read LBA from HDD ALT-F1
  17. AHCI MMIO ALT-F5
  18. INT15 E820 tables ALT-F2
  19. More.. (press CTRL-F1-Help or pull down menu to learn more)
Debug with RU:
  1. Save registers to a file including:
    Single page F2, memory binary SHIFT-F2 and all PCI registers
  2. Load a file to registers
  3. Dump PCI/ACPI/SMBIOS/E820 table in command line (RU /D)
    Usage: Link
  4. F8 Compare differences to current registers with file saved
  5. ~ Command line supported to write data to port/memory 
  6.  ALT-L or Enter to list and select the details of registers
  7. Report bug using F12 to save the screenshot.
Tips:
  1. Type any chars or CTRL-F to start the search dialog in full screen list selection page such as followings:
    • CTRL-I System Information
    • F6 List PCI devices
    • ENTER / ALT-L Register's detail
    • ALT-6 ACPI table
    • ALT-9 SMBIOS
    • ALT-= UEFI variable
    • ALT-F1 Mass storage
    • ALT-F2 E820 table 
    • ALT-F6 USB MMIO
  2. Use CTRL-UP and CTRL-DOWN to search up and down with last words typed above.
  3. Press F1 to check which hotkey is available.
  4. Read the bottom line (periodically changed) of the screen for the key usages for current page.

5 則留言:

ToDaoBei 提到...

Wouldy you help this issue for download ru.exe. thank you.

==========================
Forbidden

You don't have permission to access.
....

James Wang 提到...

Hi ToDaoBei,
Please leave me your email here, I can send you the RU.EXE.

James Wang 提到...

It should be working now.

匿名 提到...

Sorry, because I can't find any copyright or patent information in this website. I need this information to make sure I can use RU freely in my company.

James Wang 提到...

Hi,

As long as you don't sell RU or bundle it into your commercial product, you can use it freely.