musabcel / edk2-msm8998

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EDK2 UEFI Firmware For Snapdragon 835 (msm8998)

  • A broken but working EDK2 implementation for Snapdragon 835 platform.

  • **人请看中文版 Chinese version (中文版)

  • Note that the MSM8998 platform has basically migrated to another repository>>edk2-msm

WARNING

  • Since Windows 22H2 discontinued support for ARMv8.0 CPU, MSM8998 is also affected, which means after version 22H2 it is possible not to boot up.

  • DO NOT EVER TRY TO PORT IT TO SONY, SAMSUNG DEVICES

  • YOUR UFS WILL BE WIPED CLEAN!!!

Resources

Telegram group (recommended)

Discord group

QQ chinese group: 697666196 (Main group, full) 996450026 (Second group) 737223105 (Linux/edk2)

Project website

Project forum

Supported devices

  1. Moto Z2 Force (nash)
  2. Xiaomi Mi Mix 2 (chiron)
  3. Xiaomi Mi6 (sagit)
  4. LG V30 (joan)
  5. OnePlus 5T (dumpling)
  6. OnePlus 5 (cheeseburger)

Supported devices

Windows Status Matrix

Dependencies

Compiling has been tested on Debian 11 (bullseye) and on Ubuntu 20.04 LTS.

For Ubuntu 20.04:

sudo apt update
sudo apt upgrade
sudo apt install build-essential uuid-dev iasl git nasm gcc-aarch64-linux-gnu abootimg python3-distutils python3-pil python3-git gettext

If you are using GCC 11+, modify edk2/BaseTools/Source/C/Makefiles/header.makefile

diff --git a/BaseTools/Source/C/Makefiles/header.makefile b/BaseTools/Source/C/Makefiles/header.makefile
index 0df728f..247c917 100644
--- a/BaseTools/Source/C/Makefiles/header.makefile
+++ b/BaseTools/Source/C/Makefiles/header.makefile
@@ -92,7 +92,7 @@ BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -fwrapv \
 -Wno-unused-result -nostdlib -g
 else
 BUILD_CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -fwrapv \
--fno-delete-null-pointer-checks -Wall -Werror \
+-fno-delete-null-pointer-checks -Wall \^M
 -Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict \
 -Wno-unused-result -nostdlib -g
 endif

Building

1.Clone this project

git clone https://github.com/edk2-porting/edk2-msm8998.git --depth=1
cd edk2-msm8998

2.Build this project

bash build.sh --device DEVICE

3.Boot the image

fastboot boot boot_DEVICE.img

(DEVICE is the codename of your phone.)

Credits

About


Languages

Language:ASL 83.2%Language:C 16.4%Language:HTML 0.1%Language:Python 0.1%Language:C++ 0.1%Language:Shell 0.0%Language:Assembly 0.0%