19

I am trying to follow some instructions to update some firmware:

x64 UEFI environment:

  • Boot to UEFI shell
  • Run update.nsh

I don't know how to do this. When I boot, do I have a choice to boot to UEFI Shell?

Do I need a separate bootable CD to go to UEFI shell or is this something like safe mode where I press a certain key to go to it?

My OS: Windows Server 2012 R2

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
SeanClt
  • 2,219
  • 8
  • 26
  • 49
  • Advanced Startup – Ramhound Mar 26 '16 at 15:55
  • @Ramhound only if his question is how to get into UEFI setting – Tom Yan Mar 26 '16 at 15:59
  • Man I am lost so there is no build in shell and advanced settings are settings for uefi but not gives me shell? – SeanClt Mar 26 '16 at 16:00
  • @TomYan - Which is what `Advanced Startup` allows him to do – Ramhound Mar 26 '16 at 16:12
  • @Ramhound You mean his `UEFI Setting` (instead of `Advanced Startup`) MIGHT allow him to launch a EFI shell right (which he seemed to have confirmed negative)? Coz I have no idea what you are talking about. – Tom Yan Mar 26 '16 at 16:14
  • He has to change the boot order. Booting to his firmware will let him do that – Ramhound Mar 26 '16 at 16:30
  • @TomYanconfused by your comment "only if his question is how to get into UEFI setting" i mean title of the questions is how to boot so what is the different – SeanClt Mar 27 '16 at 22:31
  • I mean, if your UEFI shell doesn't have a builtin EFI shell, and you haven't prepared a USB drive (or the ESP on your system drive, if you can) as I told in my answer, it's useless to get into the UEFI setting (one way is through Advanced Startup, as @Ramhound told), because, what then? I don't even know how you can be confused by me... – Tom Yan Mar 28 '16 at 08:50
  • @SeanClt Also, even if your UEFI does have a EFI shell builtin, you'll still need to put the `update.nsh` (and the other files it need, if any) to a FAT32 volume. It's unlikely (if not impossible) your UEFI supports NTFS so you won't be able to navigate into your system volume ("`C:`") and run it. – Tom Yan Mar 28 '16 at 09:45

1 Answers1

18

It depends on whether your UEFI has a shell builtin. If it does, there should be an option in its settings / boot menu for you to launch it. Some motherboard also provide an option to launch a shell from the EFI system partition (ESP).

You should consult the manual of your motherboard for the path it will look for (the instructions are often vague, though). Usually they are looking for a file named Shell.efi in the ESP root folder.

Another way is to launch it just like you launch any other EFI binary (e.g., a bootloader). Since it's not really accessible to register an EFI binary in your UEFI or put the shell binary in your ESP in Windows, the easiest way is probably to add it as \EFI\Boot\bootx64.efi (also add the update.nsh script you need to run and the files it requires under *\EFI\Boot*) in a FAT(32)-formatted USB drive (it shouldn't matter whether it's MBR or GPT as long as your UEFI is standard-conforming enough). Then reboot and boot the USB in UEFI mode from your UEFI boot menu.

You can obtain the EFI shell binary from the EDK2 project repository:

P.S.: You may need to disable Secure Boot.

Peter Mortensen
  • 12,090
  • 23
  • 70
  • 90
Tom Yan
  • 9,075
  • 2
  • 17
  • 36