Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
board-info.txt | 22-Oct-2020 | 51 | |
BoardConfig.mk | 22-Oct-2020 | 2.1K | |
device-hikey.mk | 22-Oct-2020 | 2.4K | |
fstab.hikey | 22-Oct-2020 | 1,023 | |
init.hikey.rc | 22-Oct-2020 | 117 | |
README | 22-Oct-2020 | 2K |
1 Running Android on hikey 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 Install mcopy utility: 8 $ apt-get install mtools 9 10 Build: 11 $ . ./build/envsetup.sh 12 $ lunch hikey-userdebug 13 $ make -j32 14 15 Note: For 4 GB eMMC part use: 16 $ make -j32 TARGET_USERDATAIMAGE_4GB=true 17 18 * Installing initial fastboot and ptable: 19 Select special bootloader mode by linking J15 1-2 and 3-4 pins 20 Connect USB to PC to get ttyUSB device (ex: ttyUSB1) 21 Power the board 22 $ cd device/linaro/hikey/installer/hikey 23 $ ./flash-all.sh /dev/ttyUSB1 [4g] 24 Remove link 3-4 and power the board 25 26 * Flashing images: 27 Enter 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 33 Remove 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 41 Output: 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 46 Add 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): 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://github.com/96boards/documentation/blob/master/consumer/hikey/hardware-docs/HiKey_schematics_LeMaker_version_Rev_A1.pdf 56