I tried a few versions of the EFI Shell on my MacPro3,1:Hi @jackluke - I am trying to work with EFI code, and I saw you've included aUEFIShell.efi
in your very helpful OpenCore package. I copied that into a FAT32 partition on its own asbootx64.efi
and it boots up and works fine, but whenever I try to run any other.efi
file from it (even a mega-simple program to print "Hello, World!" and returnEFI_SUCCESS
) then whilst the other EFI works and runs fine to completion, the UEFI shell then hangs and doesn't return to its command prompt. Have you seen this behaviour? Do you have any tips?! (EDIT: It does exactly the same behaviour if I enable and run it from within OpenCore tools, I just checked.)
(Sorry if this is getting close to off-topic, I'd be very happy to accept any suggestions for somewhere better to discuss/ask about this!)
Code:
IFS=$'\n'
for thefile in $(find /Volumes/Updates/Misc_Software/rEFIt /Volumes/REFIND /Volumes/rEFInd* /Volumes/rEFIt /Volumes/Shell -iname 'Shell*.efi' -not -path '*/AArch64/*' -not -path '*/Arm/*' -not -iname '*Ia32*' -not -ipath '*/Ia32/*' -not -ipath '*/Ipf/*' -not -path '*/Mac EFI info/*' 2> /dev/null); do
eval $(stat -s "$thefile")
if (( st_size > 10000 )); then
echo $(printf "%010d" "$st_size") $(md5 -q "$thefile") "$thefile"
fi
done | sort
Code:
# 0001213280 45d7e15d83bada4d93792b7bbe629de5
# Doesn't work on MacPro3,1
menuentry "OpenCore OpenShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\OpenCore-0.6.1\EFI\OC\Tools\OpenShell.efi
disabled
}
# 0000392352 a0d861c975ba93c76dd74731274ed3b1
# Uefi doesn't work on MacPro3,1
menuentry "MinUefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\ShellBinPkg\MinUefiShell\X64\Shell.efi
disabled
}
# 0000939648 b1f99a44c80e0593ea009e5c5b4948f4
# Uefi doesn't work on MacPro3,1
menuentry "UefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\ShellBinPkg\UefiShell\X64\Shell.efi
disabled
}
# 0000875456 666ef50ddea21d8bfde7231a47d32104 Clover r5122
# Uefi doesn't work on MacPro3,1
menuentry "Clover Shell64U" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\Clover_r5122\tools\Shell64U.efi
disabled
}
# 0001135040 d327f564b264976ca4d7765d8638320e Clover r5122
menuentry "Clover Shell64" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\Clover_r5122\tools\Shell64.efi
}
# 0000362720 f5c3c2c7d3c12e6b03b72a13dc514c4f edk2-UDK2018/EdkShellBinPkg/MinimumShell/X64/Shell.efi
# disabled because it's minimum
menuentry "UDK2018 MinimumShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2018\EdkShellBinPkg\MinimumShell\X64\Shell.efi
disabled
}
# 0000771136 082080109f0d31e7f53c1774a52feec2 edk2-UDK2018/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
menuentry "UDK2018 FullShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2018\EdkShellBinPkg\FullShell\X64\Shell_Full.efi
}
# 0000417600 45c2110fc7a2088e43496b292e915a76 edk2-UDK2018/ShellBinPkg/MinUefiShell/X64/Shell.efi
# Uefi doesn't work on MacPro3,1
menuentry "UDK2018 MinUefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2018\ShellBinPkg\MinUefiShell\X64\Shell.efi
disabled
}
# 0000951744 63e2e5fbfb5e1a888a8485adaf97c288 edk2-UDK2018/ShellBinPkg/UefiShell/X64/Shell.efi
# Uefi doesn't work on MacPro3,1
menuentry "UDK2018 UefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2018\ShellBinPkg\UefiShell\X64\Shell.efi
disabled
}
# 0000362592 1e1387f12a18097db7a145b9972c0b94 edk2-UDK2010.SR1/EdkShellBinPkg/MinimumShell/X64/Shell.efi
# disabled because it's old
menuentry "UDK2010.SR1 MinimumShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2010.SR1\EdkShellBinPkg\MinimumShell\X64\Shell.efi
disabled
}
# 0000771072 c100999ee5aab596e3a3d60432ab55b8 edk2-UDK2010.SR1/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
# disabled because it's old
menuentry "UDK2010.SR1 FullShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2010.SR1\EdkShellBinPkg\FullShell\X64\Shell_Full.efi
disabled
}
# 0000359840 670efb800fd9c332f1460a5e6d576e12 edk2-UDK2010.SR1/ShellBinPkg/MinUefiShell/X64/Shell.efi
# Uefi doesn't work on MacPro3,1
menuentry "UDK2010.SR1 MinUefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2010.SR1\ShellBinPkg\MinUefiShell\X64\Shell.efi
disabled
}
# 0000881184 47817de4dcd4aff5764daa4fd3e3c10e edk2-UDK2010.SR1/ShellBinPkg/UefiShell/X64/Shell.efi
# Uefi doesn't work on MacPro3,1
menuentry "UDK2010.SR1 UefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2010.SR1\ShellBinPkg\UefiShell\X64\Shell.efi
disabled
}
# 0000354400 ab8911ed7d9f7d06c51c564a0e02eaf5 edk2-UDK2010/EdkShellBinPkg/MinimumShell/X64/Shell.efi
# disabled because it's old
menuentry "UDK2010 MinimumShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2010\EdkShellBinPkg\MinimumShell\X64\Shell.efi
disabled
}
# 0000755648 2bf7747032b06b2c1f98376ac0f2c743 edk2-UDK2010/EdkShellBinPkg/FullShell/X64/Shell_Full.efi
# disabled because it's old
menuentry "UDK2010 FullShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\edk2-UDK2010\EdkShellBinPkg\FullShell\X64\Shell_Full.efi
disabled
}
# 0000344512 91d90c7dcdafc40e27fc881c359b4888 UDK2010/MyWorkSpace/ShellBinPkg/MinUefiShell/X64/Shell.efi
# Uefi doesn't work on MacPro3,1
menuentry "myUDK2010 MinUefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\myUDK2010\ShellBinPkg\MinUefiShell\X64\Shell.efi
disabled
}
# 0000847232 bee8531ac28e31e89b630bd75582b9a9 UDK2010/MyWorkSpace/ShellBinPkg/UefiShell/X64/Shell.efi
# Uefi doesn't work on MacPro3,1
menuentry "myUDK2010 UefiShell" {
icon \EFI\refind\icons\tool_shell.png
loader \EFI\myUDK2010\ShellBinPkg\UefiShell\X64\Shell.efi
disabled
}
# 0001961712 46d712c389d9f0e5d55fa45c942f7f5f refit-src-0.14post shell.efi (fat)
I use edk2-UDK2018\EdkShellBinPkg\FullShell\X64\Shell_Full.efi
(UDK2018 is a branch of edk2 on GitHub).