• Home
Name Date Size #Lines LOC

..--

BoardConfig.mkD03-May-20241.5 KiB4431

READMED03-May-20242 KiB5645

board-info.txtD03-May-202451 32

device-hikey.mkD03-May-20241.9 KiB5421

fstab.hikeyD03-May-20241 KiB108

init.hikey.rcD03-May-2024171 106

init.hikey.usb.rcD03-May-20244.3 KiB9374

README

1Running Android on hikey board:
2
3* Compiling userspace:
4Pull AOSP source:
5$ repo init -u https://android.googlesource.com/platform/manifest -b master & repo sync -j24
6
7Install mcopy utility:
8$ apt-get install mtools
9
10Build:
11$ . ./build/envsetup.sh
12$ lunch hikey-userdebug
13$ make -j32
14
15Note: For 4 GB eMMC part use:
16$ make -j32 TARGET_USERDATAIMAGE_4GB=true
17
18* Installing initial fastboot and ptable:
19Select special bootloader mode by linking J15 1-2 and 3-4 pins
20Connect USB to PC to get ttyUSB device (ex: ttyUSB1)
21Power the board
22$ cd device/linaro/hikey/installer/hikey
23$ ./flash-all.sh /dev/ttyUSB1 [4g]
24Remove link 3-4 and power the board
25
26* Flashing images:
27Enter fastboot mode by linking J15 1-2 and 5-6 pins
28$ fastboot flash boot out/target/product/hikey/boot.img
29$ fastboot flash system out/target/product/hikey/system.img
30$ fastboot flash vendor out/target/product/hikey/vendor.img
31$ fastboot flash cache out/target/product/hikey/cache.img
32$ fastboot flash userdata out/target/product/hikey/userdata.img
33Remove jumper 5-6 and power the board
34
35* Building kernel
36$ git clone https://android.googlesource.com/kernel/hikey-linaro
37$ cd hikey-linaro
38$ git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
39$ make ARCH=arm64 hikey_defconfig
40$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
41Output: arch/arm64/boot/Image & arch/arm64/boot/dts/hisilicon/hi6220-hikey.dtb
42   copy Image-dtb and hi6220-hikey.dtb to hikey-kernel directory to files
43        Image-dtb-4.9 and hi6220-hikey.dtb-4.9
44
45* Setting monitor resolution
46Add to BOARD_KERNEL_CMDLINE in BoardConfig.mk:
47  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://github.com/96boards/documentation/blob/master/consumer/hikey/hardware-docs/HiKey_schematics_LeMaker_version_Rev_A1.pdf
56