summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2016-02-03 18:52:49 +0000
committerAndroid Partner Code Review <android-gerrit-partner@google.com>2016-02-03 18:52:49 +0000
commited78cc638bd9730451a631fbffe534f2a7879f57 (patch)
tree3485dbd54a2b8607f6b0075a74e16a1fd4725574
parent2da0a535f4bef9b16f12b92bf9dfc8df5838989b (diff)
parent271e5fdf128a0d95c4b39ef814dad1fb6ac65fba (diff)
downloadhikey-ed78cc638bd9730451a631fbffe534f2a7879f57.tar.gz
Merge "hikey: Add general README" into m-betta-dev
-rw-r--r--README50
1 files changed, 50 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 00000000..0fafc53a
--- /dev/null
+++ b/README
@@ -0,0 +1,50 @@
+Running Android on hikey board:
+
+# TODO
+* Download HDMI binaries:
+
+* Compiling userspace:
+$ repo init -u https://android.googlesource.com/platform/manifest -b master & repo sync -j24
+$ . ./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_fat.uefi.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.1 origin/android-hikey-linaro-4.1
+$ 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 and hi6220-hikey.dtb to hikey-kernel directory
+
+* Setting monitor resolution
+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