Coder Social home page Coder Social logo

ci20_android's Introduction

Building Android
================
1. Initialize the environment with the envsetup.sh script. Assuming you
   are at the top of the Android source tree:
    $ export TOP=`pwd`
    $ . build/envsetup.sh

2. Choose target.
    $ lunch aosp_ci20-userdebug

3. Build everything.

- UBIFS:
    $ make -j24

- EXT4:
    $ make WITH_EXT4=true -j24

Flashing Android to device
==========================

This procedure is only usable when you already have a functional Android running
on the board and the latest U-Boot version. Additionally, if partition sizes
on the board's SD card do not match sizes of the partitions that you want to
flash, then you will also have to use "Flashing Android to SD card" procedure or
"Flashing Android to NAND" procedure.

1. Connect the device to PC by USB cable and plug charger into the device.

2. Run the script for flashing Android to the device
    $ cd $TOP/device/imgtec/ci20/sdcardinstaller
    $ ./fastboot-flash-all

The fastboot process takes approximately 6 minutes.

Flashing Android to NAND (UBIFS)
========================================

This procedure is usable in all cases.

1. Make note of which Linux device represents the SD card.
   On my system it's /dev/sde. You'll need to adjust the instructions
   in this section to match the SD card device on your system.

   $ sudo dd if=/dev/zero of=/dev/sdX bs=512 count=1

   This step may not be needed. Typically, it's needed only if the SD
   card was previously formatted for use as VFAT device. In any case,
   running this extra step doesn't hurt anything.

2. Generate an SDCARD image containing the Android compatible u-boot and
   Android boot/recovery/system images.

    $ cd $TOP/device/imgtec/ci20/sdcardinstaller
    $ ./mksdcard /dev/sdX

3. Install Android on CI20. Set the JP3 link to 2-3 to enable boot from
   SDCARD. Install the SD card and power cycle the board. u-boot will
   start up and automatically reformat the flash and install both u-boot
   and Android to it. After it has completed you should see something
   like:

   > 134217728 bytes read in 19742 ms (6.5 MiB/s)
   > 134217728 bytes written to volume system
   > 9338880 bytes read in 1440 ms (6.2 MiB/s)
   > 9338880 bytes written to volume system
   > All done :)

4. After the Android installation is complete it is possible to boot
   Android from NAND by setting the JP3 link to 1-2 and power cycling the
   board. If the JP3 link is left in 2-3, and the board is power cycled
   Android will also boot, but the boot.img file will be read from the
   SDCARD. This can be convenient when testing changes for the kernel or
   root filesystem.

Flashing Android to SD card (EXT4)
========================================

This procedure is usable in all cases.

1. Install SD card into reader. Make note of which Linux device represents
   the SD card. On my system it's /dev/sde. You'll need to adjust the
   instructions in this section to match the SD card device on your system.

2. $ cd $TOP/device/imgtec/ci20/sdcardinstaller

3. $ sudo dd if=/dev/zero of=/dev/sdX bs=512 count=1

   This step may not be needed. Typically, it's needed only if the SD
   card was previously formatted for use as VFAT device. In any case,
   running this extra step doesn't hurt anything.

4. $ ./mksdcard /dev/sdX

5. Install SD card into CI20.

6. Set the JP3 link to 2-3 position and power cycle the board.

ci20_android's People

Contributors

cecavac avatar stevanmarinkovic avatar chrisdearman avatar lazartrsic-img avatar crlarsen-it avatar glraghukishore avatar lazartrsic avatar miodragdinic avatar sfo avatar

Watchers

James Cloos avatar  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.