Dmitry Shmidt | 271e5fd | 2016-02-01 13:42:11 -0800 | [diff] [blame] | 1 | Running Android on hikey board: |
| 2 | |
Dmitry Shmidt | 271e5fd | 2016-02-01 13:42:11 -0800 | [diff] [blame] | 3 | * Compiling userspace: |
Dmitry Shmidt | 7cb5513 | 2016-02-26 16:19:06 -0800 | [diff] [blame^] | 4 | Pull AOSP source: |
Dmitry Shmidt | 271e5fd | 2016-02-01 13:42:11 -0800 | [diff] [blame] | 5 | $ repo init -u https://android.googlesource.com/platform/manifest -b master & repo sync -j24 |
Dmitry Shmidt | 7cb5513 | 2016-02-26 16:19:06 -0800 | [diff] [blame^] | 6 | |
| 7 | Download 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 | |
| 12 | Build: |
Dmitry Shmidt | 271e5fd | 2016-02-01 13:42:11 -0800 | [diff] [blame] | 13 | $ . ./build/envsetup.sh |
| 14 | $ lunch hikey-userdebug |
| 15 | $ make -j32 |
| 16 | |
| 17 | Note: For 4 GB eMMC part use: |
| 18 | $ make -j32 TARGET_USERDATAIMAGE_4GB=true |
| 19 | |
| 20 | * Installing initial fastboot and ptable: |
| 21 | Select special bootloader mode by linking J15 1-2 and 3-4 pins |
| 22 | Connect USB to PC to get ttyUSB device (ex: ttyUSB1) |
| 23 | Power the board |
| 24 | $ cd device/linaro/hikey/installer |
| 25 | $ ./flash-all.sh /dev/ttyUSB1 [4g] |
| 26 | Remove link 3-4 and power the board |
| 27 | |
| 28 | * Flashing images: |
| 29 | Enter 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 |
| 34 | Remove 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 |
| 42 | Output: 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 |
| 46 | Edit device/linaro/hikey/bootloader/EFI/BOOT/grub.cfg |
| 47 | Set video= (for example for 24” monitor): video=HDMI-A-1:1280x800@60 |
| 48 | |
| 49 | * Kernel serial output (uart3): |
| 50 | J2 (LS Expansion): 1 - Gnd, 11 - Rx, 13 - Tx |
| 51 | |
| 52 | External links: |
| 53 | Board: https://www.96boards.org/products/ce/hikey/ |
| 54 | Howto: https://github.com/96boards/documentation/wiki/LatestSnapshots |
| 55 | Schematics: https://www.96boards.org/wp-content/uploads/2015/02/96Boards-Hikey-Rev-A1.pdf |