forked from android-rpi/device_brcm_rpi3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
52 lines (41 loc) · 1.93 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
Read it first : https://github.com/peyo-hd/local_manifests/tree/nougat
# 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/peyo-hd/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
# 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
# Boot partition, kernel & ramdisk
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
# Put LeanbackLauncher :
https://github.com/peyo-hd/device_brcm_rpi3/wiki#how-to-apply-android-tv-leanback-launcher
Community forum : https://groups.google.com/forum/#!forum/android-rpi
Graphics HAL of this build is Android port of Mesa with VC4 GPU
: https://dri.freedesktop.org/wiki/VC4