winnvram.efi and winldfw.efi in Longhorn 5112: It works

Discuss Windows Vista/Server 2008 to Windows 10.
Post Reply
BetaNewbie
Posts: 215
Joined: Sun Jul 21, 2013 7:38 am

winnvram.efi and winldfw.efi in Longhorn 5112: It works

Post by BetaNewbie »

Actually the help message of winnvram.efi is valid, and it is meant to be used like that.
Image

But VMware's built in EFI Shell shows wrong device names for whatever reason, results in setting incorrect file paths to the EFI boot entry you create with winnvram.efi.

On my setup, MBR partition table with two main partition. C partition is FAT32 active for boot files, and NTFS D partition for Windows.

Install 5112 in D partition in BIOS mode as normal.

Then set VM to UEFI mode, use a newer EFI Shell instead of the built-in one, I use the one in EDK2 UDK2018: https://github.com/tianocore/edk2/tree/ ... /UefiShell

If everything is right, you should see blk1/fs0 for C partition, and blk2 for D partition (which incorrectly shows as blk1 in VMware's shell).

Go to fs0:\boot, then run winnvram.efi to create your EFI boot entry:

Code: Select all

winnvram.efi fs0:\boot\winldfw.efi blk2:\WINDOWS\ "Windows Longhorn" "/NOEXECUTE=OPTIN"
Exit shell, you should see "Windows Longhorn" in the EFI boot manager, which boots straight to Windows.
Last edited by BetaNewbie on Sun Aug 18, 2019 2:16 pm, edited 2 times in total.

BetaNewbie
Posts: 215
Joined: Sun Jul 21, 2013 7:38 am

Re: winnvram.efi and winldfw.efi in Longhorn 5112: It works

Post by BetaNewbie »

winldfw.efi is basically winload.efi complied as an actual EFI application, you can clearly see that in the F8 menu:

Image

Notice the name of the boot entry is blank, because bootmgr is completely out of the boot chain. ESC just goes back to UEFI itself.

Beta12
User avatar
Posts: 278
Joined: Sat Sep 21, 2013 11:19 am
Location: Poland

Re: winnvram.efi and winldfw.efi in Longhorn 5112: It works

Post by Beta12 »

Longhorn 32 or 64-bit? If 64 then try this shell and bcfg to add/remove NVRAM boot entry.

AlphaBeta
User avatar
Donator
Posts: 2439
Joined: Sun Aug 12, 2012 4:33 pm
Location: Czechia

Re: winnvram.efi and winldfw.efi in Longhorn 5112: It works

Post by AlphaBeta »

BetaNewbie wrote:Notice the name of the boot entry is blank, because bootmgr is completely out of the boot chain. ESC just goes back to UEFI itself.
Maybe it's supposed to show the name of the UEFI boot entry that would have invoked it.
AlphaBeta, stop brainwashing me immediately!

Image

BetaNewbie
Posts: 215
Joined: Sun Jul 21, 2013 7:38 am

Re: winnvram.efi and winldfw.efi in Longhorn 5112: It works

Post by BetaNewbie »

Beta12 wrote:Longhorn 32 or 64-bit? If 64 then try this shell and bcfg to add/remove NVRAM boot entry.
32-bit. I doubt the x64 build have these files.
Also winnvram.efi wrote quite a few extra blobs, not just a simple boot entry.

Image

Post Reply