You will need latest bootloader from
‘’'https://github.com/96boards-hikey/tools-images-hikey960
run recovery-flash.sh to update bootloader
and one 4.12 kernel
‘’'https://github.com/96boards-hikey/linux/tree/hikey960-upstream-rebase
branch “hikey960-upstream-rebase”
then
export DTB=hi3660-hikey960.dtb
export ARCH=arm64
export BOOT=arch/arm64/boot
export CROSS_COMPILE=aarch64-linux-gnu-
export OUT=out_v8
export RAMDISK=/home/misko/image_out/ramdisk.gz
mkdir out_v8
make defconfig O=$OUT
if you want to enable/disable some drivers in my case usb network adapter
make menuconfig O=$OUT
make ${UIMAGE} -j8 O=$OUT
make boot.img
/opt/workspace/boot/uefi/hikey960/tools-images-hikey960/build-from-source/mkbootimg --kernel $OUT/$BOOT/Image.gz --ramdisk $RAMDISK --cmdline “loglevel=15 console=tty0 console=ttyAMA6,115200,8n1 printk.time=1 root=/dev/sdd10 rootwait rw” --base 0x0 --tags-addr 0x07A00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000 --os_patch_level 2016-08-05 --os_version 7.0 --output boot.img
and dt.img
/opt/workspace/boot/uefi/hikey960/tools-images-hikey960/build-from-source/mkdtimg -d $OUT/$BOOT/dts/hisilicon/hi3660-hikey960.dtb -s 2048 -c -o dt.img