WARNING: This repo is highly experimental
This repository is based on the official open-source UEFI implementation from Rockchip, which is under active development.
Therefore, to keep up with the work from Rockchip, we should avoid modifying code from Rockchip in most cases.
Discussion thread: Windows / UEFI on Rock 5 (Mega thread)
Using Arch Linux as example
Install required packages:
sudo pacman -Syu
sudo pacman -S git base-devel gcc dtc aarch64-linux-gnu-binutils aarch64-linux-gnu-gcc aarch64-linux-gnu-glibc python python-pyelftools iasl --needed
Required packages for Ubuntu/Debian:
sudo apt install git gcc g++ build-essential gcc-aarch64-linux-gnu iasl python3-pyelftools
Clone the repository:
git clone https://github.com/wdmomoxx/edk2-geek-3588.git --recursive
cd edk2-geek-3588
Build for StationPC Geek-3588
./build.sh -d geek-3588
Build for StationM3
./build.sh -d station-m3
- Create gpt image in build process instead of using the prebuilt one
- Fix resetting to maskrom
Address | Size | Desc | File |
---|---|---|---|
0x00000000 | 0x00004400 | GPT Table | rk3588_spi_nor_gpt.img |
0x00008000 | IDBlock | idblock.bin | |
0x00088000 | IDBlock | idblock.bin | |
0x00100000 | 0x00500000 | BL33_AP_UEFI FV | ${DEVICE}_EFI.itb |
0x007C0000 | 0x00010000 | NV_VARIABLE_STORE | |
0x007D0000 | 0x00010000 | NV_FTW_WORKING header | |
0x007E0000 | 0x00010000 | NV_FTW_WORKING data | NV_DATA.img |
Address | Size | Desc | File |
---|---|---|---|
0x00040000 | ATF | bl31_0x00040000.bin | |
0x000f0000 | ATF | bl31_0x000f0000.bin | |
0x00200000 | UEFI FV | BL33_AP_UEFI.Fv | |
0x08400000 | OP-TEE | bl32.bin | |
0xff100000 | ATF (PMU_MEM) | bl31_0xff100000.bin |