GithubHelp home page GithubHelp logo

isabella232 / device-linaro-hikey Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linaro-swg/device-linaro-hikey

0.0 0.0 0.0 130.23 MB

https://android.googlesource.com/device/linaro/hikey

Shell 1.73% C++ 32.34% Python 6.88% C 42.37% Makefile 15.66% Groff 1.02%

device-linaro-hikey's Introduction

Running Android on hikey board:

* Compiling userspace:
Pull AOSP source:
$ repo init -u https://android.googlesource.com/platform/manifest -b master & repo sync -j24

Download and extract HDMI binaries:
$ wget https://dl.google.com/dl/android/aosp/linaro-hikey-20160226-67c37b1a.tgz
$ tar xzf linaro-hikey-20160226-67c37b1a.tgz
$ ./extract-linaro-hikey.sh

Install mcopy utility:
$ apt-get install mtools

Build:
$ . ./build/envsetup.sh
$ lunch hikey-userdebug
$ make -j32

Note: For 4 GB eMMC part use:
$ make -j32 TARGET_USERDATAIMAGE_4GB=true

* Installing initial fastboot and ptable:
Select special bootloader mode by linking J15 1-2 and 3-4 pins
Connect USB to PC to get ttyUSB device (ex: ttyUSB1)
Power the board
$ cd device/linaro/hikey/installer
$ ./flash-all.sh /dev/ttyUSB1 [4g]
Remove link 3-4 and power the board

* Flashing images:
Enter fastboot mode by linking J15 1-2 and 5-6 pins
$ fastboot flash boot out/target/product/hikey/boot.img
$ fastboot flash system out/target/product/hikey/system.img
$ fastboot flash cache out/target/product/hikey/cache.img
$ fastboot flash userdata out/target/product/hikey/userdata.img
Remove jumper 5-6 and power the board

* Building kernel
$ git clone https://android.googlesource.com/kernel/hikey-linaro
$ cd hikey-linaro
$ git checkout -b android-hikey-linaro-4.4 origin/android-hikey-linaro-4.4
$ make ARCH=arm64 hikey_defconfig
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
Output: arch/arm64/boot/Image & arch/arm64/boot/dts/hisilicon/hi6220-hikey.dtb
   copy Image-dtb and hi6220-hikey.dtb to hikey-kernel directory

* Setting monitor resolution
Add to BOARD_KERNEL_CMDLINE in BoardConfig.mk or
if you are setting TARGET_BOOTIMAGE_USE_FAT=true edit
device/linaro/hikey/bootloader/EFI/BOOT/grub.cfg
Set video= (for example for 24โ€ monitor): video=HDMI-A-1:1280x800@60

* Kernel serial output (uart3):
J2 (LS Expansion): 1 - Gnd, 11 - Rx, 13 - Tx

External links:
Board: https://www.96boards.org/products/ce/hikey/
Howto: https://github.com/96boards/documentation/wiki/LatestSnapshots
Schematics: https://www.96boards.org/wp-content/uploads/2015/02/96Boards-Hikey-Rev-A1.pdf

device-linaro-hikey's People

Contributors

d3zd3z avatar hzhuang1 avatar jeffvanderstoep avatar johnstultz-work avatar kuscsik avatar liuyq avatar sumitsemwal avatar vishalbhoj 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.