Dmitry Shmidt | e9c4e8a | 2017-05-31 13:46:05 -0700 | [diff] [blame] | 1 | Running Android on hikey960 board: |
| 2 | |
| 3 | * Compiling userspace: |
| 4 | Pull AOSP source: |
| 5 | $ repo init -u https://android.googlesource.com/platform/manifest -b master & repo sync -j24 |
| 6 | |
| 7 | Download and extract HDMI binaries: |
Daniele Palmas | 440f7a2 | 2017-10-20 11:13:33 +0200 | [diff] [blame] | 8 | $ wget https://dl.google.com/dl/android/aosp/arm-hikey960-OPR-cf4e0c80.tgz |
| 9 | $ tar xzf arm-hikey960-OPR-cf4e0c80.tgz |
Dmitry Shmidt | e9c4e8a | 2017-05-31 13:46:05 -0700 | [diff] [blame] | 10 | $ ./extract-arm-hikey960.sh |
| 11 | |
| 12 | Build: |
| 13 | $ . ./build/envsetup.sh |
| 14 | $ lunch hikey960-userdebug |
| 15 | $ make -j32 |
| 16 | |
| 17 | * Flashing images: |
| 18 | Enter fastboot mode by turning ON switch 1 and 3 |
| 19 | $ cd device/linaro/hikey/installer/hikey960 |
| 20 | $ ./flash-all.sh |
| 21 | or |
Daniele Palmas | 440f7a2 | 2017-10-20 11:13:33 +0200 | [diff] [blame] | 22 | $ fastboot flash boot out/target/product/hikey960/boot.img |
Dmitry Shmidt | e9c4e8a | 2017-05-31 13:46:05 -0700 | [diff] [blame] | 23 | $ fastboot flash dts out/target/product/hikey960/dt.img |
Daniele Palmas | 440f7a2 | 2017-10-20 11:13:33 +0200 | [diff] [blame] | 24 | $ fastboot flash system out/target/product/hikey960/system.img |
John Stultz | 43aeee2 | 2018-04-05 17:55:27 -0700 | [diff] [blame] | 25 | $ fastboot flash vendor out/target/product/hikey960/vendor.img |
Daniele Palmas | 440f7a2 | 2017-10-20 11:13:33 +0200 | [diff] [blame] | 26 | $ fastboot flash cache out/target/product/hikey960/cache.img |
| 27 | $ fastboot flash userdata out/target/product/hikey960/userdata.img |
Dmitry Shmidt | e9c4e8a | 2017-05-31 13:46:05 -0700 | [diff] [blame] | 28 | Turn OFF switch 3 and power cycle the board. |
| 29 | |
| 30 | * Building kernel |
| 31 | $ git clone https://android.googlesource.com/kernel/hikey-linaro |
| 32 | $ cd hikey-linaro |
Daniele Palmas | 440f7a2 | 2017-10-20 11:13:33 +0200 | [diff] [blame] | 33 | $ git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9 |
Dmitry Shmidt | e9c4e8a | 2017-05-31 13:46:05 -0700 | [diff] [blame] | 34 | $ make ARCH=arm64 hikey960_defconfig |
| 35 | $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24 |
Daniele Palmas | 440f7a2 | 2017-10-20 11:13:33 +0200 | [diff] [blame] | 36 | |
| 37 | * Update the kernel in the boot image |
| 38 | Copy hi3660-hikey960.dtb (arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb) |
| 39 | to the hikey-kernel directory as file: hi3660-hikey960.dtb-4.9 |
| 40 | Copy the Image file (arch/arm64/boot/Image.gz) to the hikey-kernel |
| 41 | directory as file: Image.gz-hikey960-4.9 |
| 42 | $ make bootimage -j24 |
Dmitry Shmidt | e9c4e8a | 2017-05-31 13:46:05 -0700 | [diff] [blame] | 43 | |
| 44 | * Kernel serial output (uart3): |
| 45 | J2 (LS Expansion): 1 - Gnd, 11 - Rx, 13 - Tx |
| 46 | |
| 47 | External links: |
| 48 | Board: http://www.96boards.org/product/hikey960/ |
| 49 | Howto: http://www.96boards.org/documentation/ConsumerEdition/HiKey960/README.md/ |
| 50 | Schematics: https://github.com/96boards/documentation/raw/master/ConsumerEdition/HiKey960/HardwareDocs/HiKey960_Schematics.pdf |