User Tools

Site Tools


computer:efi

EFI

EFI Shell

# list devices (fs: filesystem-devices)
Shell> map
Shell> map -r

Shell> FS2:
FS2:\> ls
Directory of: FS2:\
05/20/2025  12:12 <DIR>         4,096  EFI
          0 File(s)           0 bytes
          1 Dir(s)


# list boot entries
Shell> bcfg boot dump [-b|-v]

...
Option: 00. Variable: Boot0004
  Desc    - (B24/D0/F0) UEFI PXE IPv4: Intel(R) Ethernet Controller XXV710 for 25GbE SFP28(MAC:3cecef6b2ffa)
  DevPath - PciRoot(0x1)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(3CECEF6B2FFA,0x1)/IPv4(0.0.0.0)
  Optional- Y
Option: 01. Variable: Boot0008
  Desc    - UEFI: ATEN Virtual CDROM YS0J
  DevPath - PciRoot(0x0)/Pci(0x14,0x0)/USB(0x6,0x0)/USB(0x1,0x0)/CDROM(0x1)
  Optional- Y
Option: 02. Variable: Boot0009
  Desc    - UEFI: ATEN Virtual CDROM YS0J
  DevPath - PciRoot(0x0)/Pci(0x14,0x0)/USB(0x6,0x0)/USB(0x1,0x0)/CDROM(0x2)
  Optional- Y
Option: 03. Variable: Boot0000
  Desc    - iso
  DevPath - PciRoot(0x0)/Pci(0x14,0x0)/USB(0x6,0x0)/USB(0x1,0x0)/CDROM(0x1)/\EFI\BOOT\bootx64.efi
  Optional- N
...

# remove boot entry
Shell> bcfg boot rm <# of Option:>
Shell> bcfg boot rm 2

Shell> bcfg boot dump
...
Option: 00. Variable: Boot0004
  Desc    - (B24/D0/F0) UEFI PXE IPv4: Intel(R) Ethernet Controller XXV710 for 25GbE SFP28(MAC:3cecef6b2ffa)
  DevPath - PciRoot(0x1)/Pci(0x0,0x0)/Pci(0x0,0x0)/MAC(3CECEF6B2FFA,0x1)/IPv4(0.0.0.0)
  Optional- Y
Option: 01. Variable: Boot0008
  Desc    - UEFI: ATEN Virtual CDROM YS0J
  DevPath - PciRoot(0x0)/Pci(0x14,0x0)/USB(0x6,0x0)/USB(0x1,0x0)/CDROM(0x1)
  Optional- Y
Option: 02. Variable: Boot0000
  Desc    - iso
  DevPath - PciRoot(0x0)/Pci(0x14,0x0)/USB(0x6,0x0)/USB(0x1,0x0)/CDROM(0x1)/\EFI\BOOT\bootx64.efi
  Optional- N
...

# add boot entry #2
Shell> bcfg boot add 2 FS0:\EFI\GRUB\grubx64.efi "GRUB"

# boot entry
Shell> fs2:
Shell> cd efi/linux
Shell> ls
FS2:\efi\linux\> ls                                                             
Directory of: FS2:\efi\linux\                                                   
05/20/2025  12:12 <DIR>         4,096  .                                        
05/20/2025  12:12 <DIR>         4,096  ..                                       
05/20/2025  12:15           2,670,592  grubx64.efi                              
          1 File(s)   2,670,592 bytes                                           
          2 Dir(s)                                                              

Shell> grubx64.efi
computer/efi.txt · Last modified: 2025/05/20 15:54 by ms

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki