Coder Social home page Coder Social logo

platform_manifest's Introduction

Build Android for Raspberry Pi3

Getting Started


To get started with building Android from source, you'll need to get familiar with Establishing a build environment.

Sync Android Source (AOSP)

Build Kernel

  • Install gcc-arm-linux-gnueabihf (For Ubuntu: $ sudo apt 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

Build Android source

  • $ source build/envsetup.sh
  • $ lunch rpi3-eng
  • $ make ramdisk systemimage

Help for build failure :

https://github.com/tab-pi/device_brcm_rpi3/wiki/Build-Errors

Prepare SD card

Partitions of the card should be set-up like following:

  1. p1 512MB for BOOT : Do fdisk : W95 FAT32(LBA) & Bootable, mkfs.vfat
  2. p2 1024MB for /system : Do fdisk, new primary partition, mkfs.ext4
  3. p3 512MB for /cache : Do fdisk, mkfs.ext4
  4. p4 remainings for /data : Do fdisk, mkfs.ex4
  5. 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/ 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 set up Android-TV launcher :

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

Graphics HAL of this build : https://github.com/anholt/mesa/wiki/VC4

platform_manifest's People

Contributors

peyo-hd avatar tabp0le avatar konstat avatar deathsoverture avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.