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