summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2017-06-01 07:56:31 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-06-01 07:56:31 +0000
commit981e78c9bc8ce64847cb31987814d9d5900d42da (patch)
tree43eff27ac31c7199dac1842e168259ec587935f4
parent3873fca6b468cfd886498b4bf5140b65db03bc1e (diff)
parentecfef89bf98ac56c52f72e901ece155a62f3a5ea (diff)
downloadhikey-oreo-dr1-dev.tar.gz
hikey960: Add README am: e9c4e8a30c am: 9d26ead32b am: 326ccf5037oreo-dr1-dev
am: ecfef89bf9 Change-Id: I28e549d120137ce00675ed5f7b4b09ce4909e3bf
-rw-r--r--hikey960/README45
1 files changed, 45 insertions, 0 deletions
diff --git a/hikey960/README b/hikey960/README
new file mode 100644
index 00000000..5b330d01
--- /dev/null
+++ b/hikey960/README
@@ -0,0 +1,45 @@
+Running Android on hikey960 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/arm-hikey960-NOU-7ad3cccc.tgz
+$ tar xzf arm-hikey960-NOU-7ad3cccc.tgz
+$ ./extract-arm-hikey960.sh
+
+Build:
+$ . ./build/envsetup.sh
+$ lunch hikey960-userdebug
+$ make -j32
+
+* Flashing images:
+Enter fastboot mode by turning ON switch 1 and 3
+$ cd device/linaro/hikey/installer/hikey960
+$ ./flash-all.sh
+ or
+$ fastboot flash boot out/target/product/hikey/boot.img
+$ fastboot flash dts out/target/product/hikey960/dt.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
+Turn OFF switch 3 and power cycle 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 hikey960_defconfig
+$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
+Output: arch/arm64/boot/Image.gz & arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb
+ copy Image.gz and hi3660-hikey960.dtb to hikey-kernel directory to files
+ Image.gz-hikey960 and hi3660-hikey960.dtb
+
+* Kernel serial output (uart3):
+J2 (LS Expansion): 1 - Gnd, 11 - Rx, 13 - Tx
+
+External links:
+Board: http://www.96boards.org/product/hikey960/
+Howto: http://www.96boards.org/documentation/ConsumerEdition/HiKey960/README.md/
+Schematics: https://github.com/96boards/documentation/raw/master/ConsumerEdition/HiKey960/HardwareDocs/HiKey960_Schematics.pdf