sm8150: Add platform patched binaries and original ButtonsDxe
authorMolly Sophia <mollysophia379@gmail.com>
星期天, 23 Oct 2022 04:18:41 +0000 (12:18 +0800)
committerMolly Sophia <mollysophia379@gmail.com>
星期天, 23 Oct 2022 04:18:41 +0000 (12:18 +0800)
Signed-off-by: Molly Sophia <mollysophia379@gmail.com>
Drivers/sm8150/ButtonsDxe/ButtonsDxe.depex [new file with mode: 0644]
Drivers/sm8150/ButtonsDxe/ButtonsDxe.efi [new file with mode: 0644]
Drivers/sm8150/ButtonsDxe/binary_version.txt [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/ButtonsDxe.efi [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/DisplayDxe.efi [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/FmpDxe.efi [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/HALIOMMU.efi [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/PciHostBridgeDxe.efi [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/Readme.md [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/UFSDxe.efi [new file with mode: 0644]
Drivers/sm8150/Patched_Binaries/UsbConfigDxe.efi [new file with mode: 0644]

diff --git a/Drivers/sm8150/ButtonsDxe/ButtonsDxe.depex b/Drivers/sm8150/ButtonsDxe/ButtonsDxe.depex
new file mode 100644 (file)
index 0000000..94cf0ca
Binary files /dev/null and b/Drivers/sm8150/ButtonsDxe/ButtonsDxe.depex differ
diff --git a/Drivers/sm8150/ButtonsDxe/ButtonsDxe.efi b/Drivers/sm8150/ButtonsDxe/ButtonsDxe.efi
new file mode 100644 (file)
index 0000000..be6dc27
Binary files /dev/null and b/Drivers/sm8150/ButtonsDxe/ButtonsDxe.efi differ
diff --git a/Drivers/sm8150/ButtonsDxe/binary_version.txt b/Drivers/sm8150/ButtonsDxe/binary_version.txt
new file mode 100644 (file)
index 0000000..a524ff7
--- /dev/null
@@ -0,0 +1 @@
+BOOT.XF.3.0-00527-SM8150LZB-1-202206
\ No newline at end of file
diff --git a/Drivers/sm8150/Patched_Binaries/ButtonsDxe.efi b/Drivers/sm8150/Patched_Binaries/ButtonsDxe.efi
new file mode 100644 (file)
index 0000000..aaf78ef
Binary files /dev/null and b/Drivers/sm8150/Patched_Binaries/ButtonsDxe.efi differ
diff --git a/Drivers/sm8150/Patched_Binaries/DisplayDxe.efi b/Drivers/sm8150/Patched_Binaries/DisplayDxe.efi
new file mode 100644 (file)
index 0000000..48f1e1a
Binary files /dev/null and b/Drivers/sm8150/Patched_Binaries/DisplayDxe.efi differ
diff --git a/Drivers/sm8150/Patched_Binaries/FmpDxe.efi b/Drivers/sm8150/Patched_Binaries/FmpDxe.efi
new file mode 100644 (file)
index 0000000..7b7b3ba
Binary files /dev/null and b/Drivers/sm8150/Patched_Binaries/FmpDxe.efi differ
diff --git a/Drivers/sm8150/Patched_Binaries/HALIOMMU.efi b/Drivers/sm8150/Patched_Binaries/HALIOMMU.efi
new file mode 100644 (file)
index 0000000..67b919a
Binary files /dev/null and b/Drivers/sm8150/Patched_Binaries/HALIOMMU.efi differ
diff --git a/Drivers/sm8150/Patched_Binaries/PciHostBridgeDxe.efi b/Drivers/sm8150/Patched_Binaries/PciHostBridgeDxe.efi
new file mode 100644 (file)
index 0000000..85f721a
Binary files /dev/null and b/Drivers/sm8150/Patched_Binaries/PciHostBridgeDxe.efi differ
diff --git a/Drivers/sm8150/Patched_Binaries/Readme.md b/Drivers/sm8150/Patched_Binaries/Readme.md
new file mode 100644 (file)
index 0000000..ee4f979
--- /dev/null
@@ -0,0 +1,27 @@
+# Patched Binaries
+
+This file aims to provide further information about the different patches applied to stock firmware UEFI DXEs. These files are from [SurfaceDuoPkg](https://github.com/WOA-Project/SurfaceDuoPkg) repo.
+
+## Reasoning behind each patch
+
+- DisplayDxe: Panels get deinitialized partially on exit boot services by the stock firmware, it is thus needed to reinitialize them, but due to them being partially deinitialized, running some routines again will break the platform. An MMU Domain is already setup by the previous firmware and gets re-set again, causing a crash.
+
+- UFSDxe: An MMU Domain is already setup by the previous firmware and gets re-set again, causing a crash.
+
+- UsbConfigDxe: Important to get USB to work after exit boot services for KdNet or DeveloperMenu or FFULoader.
+
+- ButtonsDxe: to help navigating menus more easily.
+
+## UFSDxe & DisplayDxe
+
+MMU related setup routine was patched to not recreate already existing MMU domains.
+
+## DisplayDxe
+
+Panel Reset function was patched to not run again.
+
+Exit BootServices routine was patched to not deinitialize the panels.
+
+## UsbConfigDxe
+
+Exit BootServices routine was patched to not deinit USB after exit boot services.
\ No newline at end of file
diff --git a/Drivers/sm8150/Patched_Binaries/UFSDxe.efi b/Drivers/sm8150/Patched_Binaries/UFSDxe.efi
new file mode 100644 (file)
index 0000000..e379b16
Binary files /dev/null and b/Drivers/sm8150/Patched_Binaries/UFSDxe.efi differ
diff --git a/Drivers/sm8150/Patched_Binaries/UsbConfigDxe.efi b/Drivers/sm8150/Patched_Binaries/UsbConfigDxe.efi
new file mode 100644 (file)
index 0000000..f4ae72d
Binary files /dev/null and b/Drivers/sm8150/Patched_Binaries/UsbConfigDxe.efi differ