├── README.md └── manifest_brcm_rpi.xml /README.md: -------------------------------------------------------------------------------- 1 | ### Device specific configuration to build TWRP for [Raspberry Pi 4](http://konstakang.com/devices/rpi4/TWRP) and [Raspberry Pi 5](http://konstakang.com/devices/rpi5/TWRP). 2 | 3 | *** 4 | 5 | ### How to build: 6 | 7 | 1. Establish [Android build environment](https://source.android.com/setup/initializing) and install [repo](https://source.android.com/docs/setup/develop#installing-repo). 8 | 9 | 2. Initialize repo: 10 | 11 | ``` 12 | repo init -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git -b twrp-11 --depth=1 13 | curl -o .repo/local_manifests/manifest_brcm_rpi.xml -L https://raw.githubusercontent.com/twrp-raspberry/android_local_manifest/twrp-11/manifest_brcm_rpi.xml --create-dirs 14 | repo sync 15 | ``` 16 | 17 | 3. Compile: 18 | 19 | ``` 20 | . build/envsetup.sh 21 | lunch twrp_rpi-eng 22 | make ramdisk-recovery -j$(nproc) 23 | ``` 24 | 25 | 4. Copy ramdisk-recovery.img to Android boot partition. 26 | -------------------------------------------------------------------------------- /manifest_brcm_rpi.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | --------------------------------------------------------------------------------