Couple of videos to get you started on the Hikey960 AOSP


Install Pre built AOP

Build AOSP from Source for the Hikey 960


Any help on how to boot hikey 960 form SD card?


The uefi bootloader was very recently made available, no sd card support yet but it will be there soon enough


Thank you for the information. May be a video on how-to once it is available would be useful.


My build for hikey960 ends with the following error. Any lead on this would be helpful…:slight_smile:
I am trying to flash the eMMC with the image and kernel built on my machine.

rakshith@patkar007:~/Projects/android-source/hikey960$ make -j4


[2/2] bootstrap out/soong/.minibootstrap/
[1/2] out/soong/.bootstrap/bin/minibp out/soong/.minibootstrap/
ninja: no work to do.
ninja: no work to do.
No need to regenerate ninja file
[ 0% 1/47354] Yacc: applypatch <= bootable/recovery/edify/parser.yy
FAILED: out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp
/bin/bash -c “prebuilts/misc/linux-x86/bison/bison -d --defines=out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.h -o out/target/product/hikey960/obj/STATIC_LIBRARIES/libedify_intermediates/parser.cpp bootable/recovery/edify/parser.yy”
/bin/bash: prebuilts/misc/linux-x86/bison/bison: No such file or directory
[ 0% 4/47354] Ensuring Jack server is installed and started
Jack server already installed in "/home/rakshith/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx2048m -cp /home/rakshith/.jack-server/launcher.jar
ninja: build stopped: subcommand failed.
10:02:03 ninja failed with: exit status 1
build/core/ recipe for target ‘run_soong_ui’ failed
make: *** [run_soong_ui] Error 1

make failed to build some targets (01:00 (mm:ss))


looks like you don’t have bison installed …
did you setup build environment properly from:

anyways try this.

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip

also repo sync your source again just to be sure.


Thank you for the reply. Is there a way to flash your locally compiled hikey-linaro kernel to hikey960 when you flash the eMMC with pre-built AOSP?


go through here to create the boot.img file
and use flashboot to flash boot
sudo fastboot flash boot boot.img


When i run:
$ make ARCH=arm64 hikey960_defconfig

platform_testing/build/tasks/tests/ warning: continuous_native_metric_tests: Unknown installed file for module
./test/vts/utils/python/archive/ warning: overriding commands for target default' ./test/vts/runners/host/tcp_server/ warning: ignoring old commands for targetdefault’
ninja: error: unknown target 'hikey960_defconfig’
14:36:25 ninja failed with: exit status 1
build/core/ recipe for target ‘run_soong_ui’ failed
make: *** [run_soong_ui] Error 1

Any take on this?


that command has to be run inside hikey-linaro folder

in the root folder of your android source
download and compile kernel

git clone
cd hikey-linaro
git checkout -b android-hikey-linaro-4.4 origin/android-hikey-linaro-4.4
make ARCH=arm64 hikey960_defconfig
make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j24

again please go through everything is very well explained


If you want to know the entire process that you can also get the ideas and that you should maintain the full process easily from the guidance of the Canon printer tech support for the solution.