add build instructions for Raspberry Pi 5

This commit is contained in:
Konsta
2023-11-24 15:28:55 +02:00
parent 783d98c10d
commit 3e569aed9e

View File

@@ -1,4 +1,4 @@
### Device specific configuration to build AOSP Android 14 for Raspberry Pi 4. ### Device specific configuration to build AOSP Android 14 for Raspberry Pi 4 and Raspberry Pi 5.
*** ***
@@ -40,33 +40,41 @@ repo sync
. build/envsetup.sh . build/envsetup.sh
``` ```
6. Select build target: 6. Select the device (`rpi4` or `rpi5`) and build target (tablet UI, `tv` for Android TV, or `car` for Android Automotive):
Tablet UI:
``` ```
lunch aosp_rpi4-userdebug lunch aosp_rpi4-userdebug
``` ```
Android TV:
``` ```
lunch aosp_rpi4_tv-userdebug lunch aosp_rpi4_tv-userdebug
``` ```
Android Automotive:
``` ```
lunch aosp_rpi4_car-userdebug lunch aosp_rpi4_car-userdebug
``` ```
```
lunch aosp_rpi5-userdebug
```
```
lunch aosp_rpi5_tv-userdebug
```
```
lunch aosp_rpi5_car-userdebug
```
7. Compile: 7. Compile:
``` ```
make bootimage systemimage vendorimage -j$(nproc) make bootimage systemimage vendorimage -j$(nproc)
``` ```
8. Make flashable image: 8. Make flashable image for the device (`rpi4` or `rpi5`):
``` ```
./rpi4-mkimg.sh ./rpi4-mkimg.sh
``` ```
```
./rpi5-mkimg.sh
```
Also look into [Linux kernel build instructions](https://github.com/raspberry-vanilla/android_kernel_manifest/tree/android-14.0). Also look into [Linux kernel build instructions](https://github.com/raspberry-vanilla/android_kernel_manifest/tree/android-14.0).