forked from android-rpi/device_brcm_rpi2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
31 lines (26 loc) · 1.19 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
# Build Kernel
$ 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
# Build Android source
Continue build with http://source.android.com/source/building-running.html
$ source build/envsetup.sh
$ lunch rpi2-eng
$ make
# Prepare sd card
Partitions of the card should be set-up like followings.
p1 512MB for BOOT : Do fdisk, format as fat32, tag bootable flag
p2 512MB for /system : Do fdisk, new primary partition, size 512M.
p3 512MB for /cache : Do fdisk, format as ext4
p4 remainings for /data : Do fdisk, format as ext4
# Write system partition
$ cd out/target/product/rpi2
$ sudo dd if=system.img of=/dev/<p2> bs=1M
# Boot partition, kernel & ramdisk
device/brcm/rpi2/boot/* to p1:/
kernel/rpi/arch/arm/boot/zImage to p1:/
kernel/rpi/arch/arm/boot/dts/bcm2709-rpi-2-b.dtb to p1:/
out/target/product/rpi2/ramdisk.img to p1:/
# Graphics HAL for VC4 GPU (Experimental)
See https://github.com/peyo-hd/device_brcm_rpi2/wiki#how-to-use-vc4-drmmesa-driver