Dmitry Shmidt | 271e5fd | 2016-02-01 13:42:11 -0800 | [diff] [blame] | 1 | Running 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 | |
| 12 | Note: For 4 GB eMMC part use: |
| 13 | $ make -j32 TARGET_USERDATAIMAGE_4GB=true |
| 14 | |
| 15 | * Installing initial fastboot and ptable: |
| 16 | Select special bootloader mode by linking J15 1-2 and 3-4 pins |
| 17 | Connect USB to PC to get ttyUSB device (ex: ttyUSB1) |
| 18 | Power the board |
| 19 | $ cd device/linaro/hikey/installer |
| 20 | $ ./flash-all.sh /dev/ttyUSB1 [4g] |
| 21 | Remove link 3-4 and power the board |
| 22 | |
| 23 | * Flashing images: |
| 24 | Enter 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 |
| 29 | Remove 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 |
| 37 | Output: 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 |
| 41 | Edit device/linaro/hikey/bootloader/EFI/BOOT/grub.cfg |
| 42 | Set video= (for example for 24” monitor): video=HDMI-A-1:1280x800@60 |
| 43 | |
| 44 | * Kernel serial output (uart3): |
| 45 | J2 (LS Expansion): 1 - Gnd, 11 - Rx, 13 - Tx |
| 46 | |
| 47 | External links: |
| 48 | Board: https://www.96boards.org/products/ce/hikey/ |
| 49 | Howto: https://github.com/96boards/documentation/wiki/LatestSnapshots |
| 50 | Schematics: https://www.96boards.org/wp-content/uploads/2015/02/96Boards-Hikey-Rev-A1.pdf |