Attempt to create a minimal EDK2 for Redmi K20/MI 9T (Transplanted from Pixel3XL).
Snapdragon 730
Can boot winpe UFS USB(need powered usb hub)
Boot Linux must add kernel parameters:clk_ignore_unused
Install dependencies:
18.04:
sudo apt install build-essential uuid-dev iasl git nasm python3-distutils gcc-aarch64-linux-gnu abootimg
Also see EDK2 website
Finally, ./build.sh.
Then fastboot boot boot_uefi.img. If you encounter a problem that you can't compile, use the old edk2 source code, because this library hasn't been updated for some time.
SimpleFbDxe screen driver is from imbushuo's Lumia950XLPkg.