Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make applying patches easier and better Readme #72

Open
wants to merge 7 commits into
base: nougat
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions README

This file was deleted.

68 changes: 68 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Read it first : https://github.com/android-rpi/local_manifests

## Build Kernel

```
Install gcc-arm-linux-gnueabihf
$ cd kernel/rpi
$ ARCH=arm scripts/kconfig/merge_config.sh arch/arm/configs/bcm2709_defconfig android/configs/android-base.cfg android/configs/android-recommended.cfg
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make zImage
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make dtbs
```

## Install python mako module


`sudo apt-get install python-mako`

## Patch framework source :

https://github.com/android-rpi/device_brcm_rpi3/wiki#use-hal_pixel_format_bgra_8888

## Build Android source

```
Continue build with http://source.android.com/source/building.html
$ source build/envsetup.sh
$ lunch rpi3-eng
$ make ramdisk systemimage
```

## Help for build failure :
https://github.com/android-rpi/device_brcm_rpi3/wiki/Build-Errors

## Prepare sd card

# Partitions of the card should be set-up like followings.

* p1 512MB for BOOT : Do fdisk : W95 FAT32(LBA) & Bootable, mkfs.vfat
* p2 512MB for /system : Do fdisk, new primary partition
* p3 512MB for /cache : Do fdisk, mkfs.ext4
* p4 remainings for /data : Do fdisk, mkfs.ex4
* Set volume label for each partition - system, cache, userdata: use -L option of mkfs.ext4, e2label command, or -n option of mkfs.vfat

## Write system partition

```
$ cd out/target/product/rpi3
$ sudo dd if=system.img of=/dev/<p2> bs=1M
```

## Copy kernel & ramdisk to BOOT partition

* device/brcm/rpi3/boot/* to p1:/
* kernel/rpi/arch/arm/boot/zImage to p1:/
* kernel/rpi/arch/arm/boot/dts/bcm2710-rpi-3-b.dtb to p1:/
* kernel/rpi/arch/arm/boot/dts/overlays/vc4-kms-v3d.dtbo to p1:/overlays/vc4-kms-v3d.dtbo
* out/target/product/rpi3/ramdisk.img to p1:/

## HDMI_MODE : If DVI monitor does not work, try followings for p1:/config.txt

```
hdmi_group=2
hdmi_mode=85
```

## How to put Android-TV launcher :

* https://github.com/android-rpi/device_brcm_rpi3/wiki#how-to-apply-android-tv-leanback-launcher