Home | History | Annotate | only in /device/linaro/hikey
Up to higher level directory
NameDateSize
Android.mk24-Aug-20161.2K
AndroidProducts.mk24-Aug-2016444
audio/24-Aug-2016
bluetooth/24-Aug-2016
board-info.txt24-Aug-201628
BoardConfig.mk24-Aug-20161.7K
bootloader/24-Aug-2016
bt-wifi-firmware-util/24-Aug-2016
build/24-Aug-2016
cmdline24-Aug-2016181
device.mk24-Aug-20164K
etc/24-Aug-2016
fstab.hikey24-Aug-20161.3K
fstab.hikey-4.124-Aug-20161.2K
gralloc/24-Aug-2016
hikey.kl24-Aug-20162.6K
hikey.mk24-Aug-2016443
init.hikey.rc24-Aug-20162.9K
init.hikey.usb.rc24-Aug-20164K
installer/24-Aug-2016
overlay/24-Aug-2016
proprietary-blobs.txt24-Aug-2016775
README24-Aug-20162K
self-extractors/24-Aug-2016
sepolicy/24-Aug-2016
system.prop24-Aug-2016145
ueventd.hikey.rc24-Aug-2016115
vendor_owner_info.txt24-Aug-201692
vendorsetup.sh24-Aug-2016841
wpa_supplicant.conf24-Aug-2016134
wpan/24-Aug-2016

README

      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 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 Install mcopy utility:
     13 $ apt-get install mtools
     14 
     15 Build:
     16 $ . ./build/envsetup.sh
     17 $ lunch hikey-userdebug
     18 $ make -j32
     19 
     20 Note: For 4 GB eMMC part use:
     21 $ make -j32 TARGET_USERDATAIMAGE_4GB=true
     22 
     23 * Installing initial fastboot and ptable:
     24 Select special bootloader mode by linking J15 1-2 and 3-4 pins
     25 Connect USB to PC to get ttyUSB device (ex: ttyUSB1)
     26 Power the board
     27 $ cd device/linaro/hikey/installer
     28 $ ./flash-all.sh /dev/ttyUSB1 [4g]
     29 Remove link 3-4 and power the board
     30 
     31 * Flashing images:
     32 Enter fastboot mode by linking J15 1-2 and 5-6 pins
     33 $ fastboot flash boot out/target/product/hikey/boot_fat.uefi.img
     34 $ fastboot flash system out/target/product/hikey/system.img
     35 $ fastboot flash cache out/target/product/hikey/cache.img
     36 $ fastboot flash userdata out/target/product/hikey/userdata.img
     37 Remove jumper 5-6 and power the board
     38 
     39 * Building kernel
     40 $ git clone https://android.googlesource.com/kernel/hikey-linaro
     41 $ cd hikey-linaro
     42 $ git checkout -b android-hikey-linaro-4.1 origin/android-hikey-linaro-4.1
     43 $ make ARCH=arm64 hikey_defconfig
     44 $ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24
     45 Output: arch/arm64/boot/Image & arch/arm64/boot/dts/hisilicon/hi6220-hikey.dtb
     46    copy Image and hi6220-hikey.dtb to hikey-kernel directory
     47 
     48 * Setting monitor resolution
     49 Edit device/linaro/hikey/bootloader/EFI/BOOT/grub.cfg
     50 Set video= (for example for 24 monitor): video=HDMI-A-1:1280x800@60
     51 
     52 * Kernel serial output (uart3):
     53 J2 (LS Expansion): 1 - Gnd, 11 - Rx, 13 - Tx
     54 
     55 External links:
     56 Board: https://www.96boards.org/products/ce/hikey/
     57 Howto: https://github.com/96boards/documentation/wiki/LatestSnapshots
     58 Schematics: https://www.96boards.org/wp-content/uploads/2015/02/96Boards-Hikey-Rev-A1.pdf
     59