blob: 0fafc53a36fe618ed08f31eef1ad04cfec20a116 [file] [log] [blame]
Dmitry Shmidt271e5fd2016-02-01 13:42:11 -08001Running Android on hikey board:
2
3# TODO
4* Download HDMI binaries:
5
6* Compiling userspace:
7$ repo init -u https://android.googlesource.com/platform/manifest -b master & repo sync -j24
8$ . ./build/envsetup.sh
9$ lunch hikey-userdebug
10$ make -j32
11
12Note: For 4 GB eMMC part use:
13$ make -j32 TARGET_USERDATAIMAGE_4GB=true
14
15* Installing initial fastboot and ptable:
16Select special bootloader mode by linking J15 1-2 and 3-4 pins
17Connect USB to PC to get ttyUSB device (ex: ttyUSB1)
18Power the board
19$ cd device/linaro/hikey/installer
20$ ./flash-all.sh /dev/ttyUSB1 [4g]
21Remove link 3-4 and power the board
22
23* Flashing images:
24Enter fastboot mode by linking J15 1-2 and 5-6 pins
25$ fastboot flash boot out/target/product/hikey/boot_fat.uefi.img
26$ fastboot flash system out/target/product/hikey/system.img
27$ fastboot flash cache out/target/product/hikey/cache.img
28$ fastboot flash userdata out/target/product/hikey/userdata.img
29Remove jumper 5-6 and power the board
30
31* Building kernel
32$ git clone https://android.googlesource.com/kernel/hikey-linaro
33$ cd hikey-linaro
34$ git checkout -b android-hikey-linaro-4.1 origin/android-hikey-linaro-4.1
35$ make ARCH=arm64 hikey_defconfig
36$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
37Output: arch/arm64/boot/Image & arch/arm64/boot/dts/hisilicon/hi6220-hikey.dtb
38 copy Image and hi6220-hikey.dtb to hikey-kernel directory
39
40* Setting monitor resolution
41Edit device/linaro/hikey/bootloader/EFI/BOOT/grub.cfg
42Set video= (for example for 24 monitor): video=HDMI-A-1:1280x800@60
43
44* Kernel serial output (uart3):
45J2 (LS Expansion): 1 - Gnd, 11 - Rx, 13 - Tx
46
47External links:
48Board: https://www.96boards.org/products/ce/hikey/
49Howto: https://github.com/96boards/documentation/wiki/LatestSnapshots
50Schematics: https://www.96boards.org/wp-content/uploads/2015/02/96Boards-Hikey-Rev-A1.pdf