A broken but working EDK2 implementation for Snapdragon 835 platform.
中国人请看中文版 Chinese version (中文版)
QQ chinese group: 697666196 (Main group, full) 996450026 (Second group) 737223105 (Linux/edk2)
DO NOT EVER TRY TO PORT IT TO SONY, SAMSUNG DEVICES
YOUR UFS WILL BE WIPED CLEAN!!!
- Moto Z2 Force (nash)
- Xiaomi Mi Mix 2 (chiron)
- Xiaomi Mi6 (sagit)
- LG V30 (joan)
- OnePlus 5T (dumpling)
- OnePlus 5 (cheeseburger)
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
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.)