perez987 / OpenCore-and-UEFI-Secure-Boot

UEFI Secure Boot and OpenCore
MIT License
91 stars 7 forks source link

I followed the guide and hit into this #9

Closed xxonehit closed 1 year ago

xxonehit commented 1 year ago
onehiz@TUFPC:~/efikeys/oc$ sh ./sign_opencore.sh https://github.com/acidanthera/OpenCorePkg/releases/download/0.8.7/OpenCore-0.8.7-RELEASE.zip 0.8.7
: not foundcore.sh: 4:
: not foundcore.sh: 9:

--2023-04-09 15:15:03--  https://github.com/acidanthera/OpenCorePkg/releases/download/0.8.7/OpenCore-0.8.7-RELEASE.zip%0D%0D
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-04-09 15:15:04 ERROR 404: Not Found.

-RELEASE.zip.ZIP.or OpenCore-0.8.7re-0.8.7
rm: cannot remove 'OpenCore-0.8.7'$'\r''-RELEASE.zip'$'\r': No such file or directory
: not foundcore.sh: 14:
: No such file or directoryvers/HfsPlus.efi
: not foundcore.sh: 17:
./sign_opencore.sh: 33: Syntax error: end of file unexpected (expecting "then")
perez987 commented 1 year ago

@xxonehit I don't know why this happens to you. It needs further investigation.

But just now I've done the full task, following the text of my article step by step, on a UTM virtual machine with Ubuntu on macOS Ventura, and all seems to have worked fine. In the end, I got a folder efikeys/oc/Signed/Downloaded/X64/EFI inside which are BOOT and OC folders with Driver, Tools and OpenCore.efi. All efi files are digitally signed: Bootx64.efi, drivers, tools and OpenCore.efi. I have seen no error.

Go through the code again and run it step by step very carefully, I suspect that some command has been omitted or misspelled. How do you do it, with WSL on Windows or with UTM on macOS?

It's a bit long but this is the output I get from running sh ./sign_opencore.sh https://github.com/acidanthera/OpenCorePkg/releases/download/0.9.0/OpenCore-0.9.0-RELEASE.zip 0.9.0. Something like this must be yours:


Code ```shell ubuntu@ubuntu-utm:~/efikeys/oc$ sh ./sign_opencore.sh https://github.com/acidanthera/OpenCorePkg/releases/download/0.9.0/OpenCore-0.9.0-RELEASE.zip 0.9.0 --2023-04-11 00:18:25-- https://github.com/acidanthera/OpenCorePkg/releases/download/0.9.0/OpenCore-0.9.0-RELEASE.zip Resolviendo github.com (github.com)... 140.82.121.4 Conectando con github.com (github.com)[140.82.121.4]:443... conectado. Petición HTTP enviada, esperando respuesta... 302 Found Ubicación: https://objects.githubusercontent.com/github-production-release-asset-2e65be/179354282/10b9bbfc-0c84-4dab-8faa-60e4d7c10886?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230410T221826Z&X-Amz-Expires=300&X-Amz-Signature=fcdeb1501ffd760bda1ac157d00ccd23a6563d30f624159616631c3cf2facbd3&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=179354282&response-content-disposition=attachment%3B%20filename%3DOpenCore-0.9.0-RELEASE.zip&response-content-type=application%2Foctet-stream [siguiente] --2023-04-11 00:18:26-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/179354282/10b9bbfc-0c84-4dab-8faa-60e4d7c10886?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230410%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230410T221826Z&X-Amz-Expires=300&X-Amz-Signature=fcdeb1501ffd760bda1ac157d00ccd23a6563d30f624159616631c3cf2facbd3&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=179354282&response-content-disposition=attachment%3B%20filename%3DOpenCore-0.9.0-RELEASE.zip&response-content-type=application%2Foctet-stream Resolviendo objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.109.133, 185.199.108.133, 185.199.111.133, ... Conectando con objects.githubusercontent.com (objects.githubusercontent.com)[185.199.109.133]:443... conectado. Petición HTTP enviada, esperando respuesta... 200 OK Longitud: 7308976 (7,0M) [application/octet-stream] Grabando a: “OpenCore-0.9.0-RELEASE.zip” 100%[======================================>] 7.308.976 43,2MB/s en 0,2s 2023-04-11 00:18:26 (43,2 MB/s) - “OpenCore-0.9.0-RELEASE.zip” guardado [7308976/7308976] Archive: OpenCore-0.9.0-RELEASE.zip creating: ./Downloaded/X64/ creating: ./Downloaded/X64/EFI/ creating: ./Downloaded/X64/EFI/BOOT/ inflating: ./Downloaded/X64/EFI/BOOT/BOOTx64.efi extracting: ./Downloaded/X64/EFI/BOOT/.contentFlavour extracting: ./Downloaded/X64/EFI/BOOT/.contentVisibility creating: ./Downloaded/X64/EFI/OC/ creating: ./Downloaded/X64/EFI/OC/ACPI/ creating: ./Downloaded/X64/EFI/OC/Tools/ inflating: ./Downloaded/X64/EFI/OC/Tools/ControlMsrE2.efi inflating: ./Downloaded/X64/EFI/OC/Tools/TpmInfo.efi inflating: ./Downloaded/X64/EFI/OC/Tools/OpenShell.efi inflating: ./Downloaded/X64/EFI/OC/Tools/BootKicker.efi inflating: ./Downloaded/X64/EFI/OC/Tools/GopStop.efi inflating: ./Downloaded/X64/EFI/OC/Tools/RtcRw.efi inflating: ./Downloaded/X64/EFI/OC/Tools/ChipTune.efi inflating: ./Downloaded/X64/EFI/OC/Tools/KeyTester.efi inflating: ./Downloaded/X64/EFI/OC/Tools/MmapDump.efi inflating: ./Downloaded/X64/EFI/OC/Tools/OpenControl.efi inflating: ./Downloaded/X64/EFI/OC/Tools/CleanNvram.efi inflating: ./Downloaded/X64/EFI/OC/Tools/CsrUtil.efi inflating: ./Downloaded/X64/EFI/OC/Tools/ResetSystem.efi creating: ./Downloaded/X64/EFI/OC/Drivers/ inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenRuntime.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/NvmExpressDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/ResetNvramEntry.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/Ext4Dxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenUsbKbDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenCanopy.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/Ip4Dxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/Dhcp4Dxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/TcpDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/CrScreenshotDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenPartitionDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/HttpDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/HiiDatabase.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenVariableRuntimeDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenLinuxBoot.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/Udp4Dxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/ToggleSipEntry.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/HttpBootDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/BiosVideo.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/Ps2MouseDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/ArpDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/DpcDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/HttpUtilitiesDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/DnsDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/MnpDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenNtfsDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/SnpDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/XhciDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/Ps2KeyboardDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/OpenHfsPlus.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/AudioDxe.efi inflating: ./Downloaded/X64/EFI/OC/Drivers/UsbMouseDxe.efi creating: ./Downloaded/X64/EFI/OC/Kexts/ creating: ./Downloaded/X64/EFI/OC/Resources/ creating: ./Downloaded/X64/EFI/OC/Resources/Label/ creating: ./Downloaded/X64/EFI/OC/Resources/Image/ creating: ./Downloaded/X64/EFI/OC/Resources/Audio/ creating: ./Downloaded/X64/EFI/OC/Resources/Font/ extracting: ./Downloaded/X64/EFI/OC/.contentFlavour inflating: ./Downloaded/X64/EFI/OC/OpenCore.efi extracting: ./Downloaded/X64/EFI/OC/.contentVisibility --2023-04-11 00:18:26-- https://github.com/acidanthera/OcBinaryData/raw/master/Drivers/HfsPlus.efi Resolviendo github.com (github.com)... 140.82.121.4 Conectando con github.com (github.com)[140.82.121.4]:443... conectado. Petición HTTP enviada, esperando respuesta... 302 Found Ubicación: https://raw.githubusercontent.com/acidanthera/OcBinaryData/master/Drivers/HfsPlus.efi [siguiente] --2023-04-11 00:18:27-- https://raw.githubusercontent.com/acidanthera/OcBinaryData/master/Drivers/HfsPlus.efi Resolviendo raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ... Conectando con raw.githubusercontent.com (raw.githubusercontent.com)[185.199.111.133]:443... conectado. Petición HTTP enviada, esperando respuesta... 200 OK Longitud: 37892 (37K) [application/octet-stream] Grabando a: “./Downloaded/X64/EFI/OC/Drivers/HfsPlus.efi” 100%[======================================>] 37.892 --.-K/s en 0,004s 2023-04-11 00:18:27 (8,11 MB/s) - “./Downloaded/X64/EFI/OC/Drivers/HfsPlus.efi” guardado [37892/37892] ISK.key was decrypted successfully ISK.pem was decrypted successfully Cleaned... ```
perez987 commented 1 year ago

@xxonehit I close the issue, no feedback in the last 2 weeks. Feel free to reopen it if you want to do additional comments.