Based on Danct12's port for Xiaomi Redmi Note 7 (lavender) (https://github.com/dreemurrs-embedded/edk2-lavender).
What works:
- Display
- UEFI Shell
- Clocks
- eMMC (Thanks to @serdeliuk)
What does not work:
- Buttons
- USB ...
Tested on Ubuntu WSL.
First, clone EDK2.
cd ..
git clone https://github.com/tianocore/edk2.git --recursive
git clone https://github.com/tianocore/edk2-platforms.git
You should have all three directories side by side.
Finally, ./build.sh.
Then fastboot boot uefi.img
.
This is based on Danct12's port for Xiaomi Redmi Note 7 (lavender) (https://github.com/dreemurrs-embedded/edk2-lavender),which is based on fxsheep's Mi6 port, which is based on zhuowei's edk2-pixel3.
SimpleFbDxe screen driver is from imbushuo's Lumia950XLPkg.
Special thanks to @lemon1ice and @imbushuo for guidance.