Skip to content

HolmesPsherlock/edk2-msm8998

 
 

Repository files navigation

EDK2 UEFI Firmware For Snapdragon 835 (msm8998)

A broken but working EDK2 implementation for Snapdragon 835 platform.

中国人请看中文版 Chinese version (中文版)

Resources

Telegram group (recommended)

Discord group

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

Project website

Project forum

WARNING

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

YOUR UFS WILL BE WIPED CLEAN!!!

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ASL 97.1%
  • C 2.5%
  • HTML 0.2%
  • Python 0.1%
  • C++ 0.1%
  • Shell 0.0%