Linux kernel 4.12 branch

You will need latest bootloader from
run to update bootloader

and one 4.12 kernel
branch “hikey960-upstream-rebase”

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

any idea how to build it for uefi ?

try this

hmm i thought this script was specific to aosp, but I’ll give it a shot

@xlazom00 which ramdisk and rootfs are you using?

empty ramdisk
‘’’ http:://

try some from dragonboard

Thanks, this is working.

root@linaro-developer:~# uname -a
Linux linaro-developer 4.13.0-rc6-linaro-hikey960 #1 SMP PREEMPT Tue Sep 5 09:20:37 EDT 2017 aarch64 GNU/Linux

I also installed the kernel modules into /lib/modules/ .

Can you post here all the steps to get this kernel into the Hikey board ?
Which version of the UEFI did you used ?

This is without UEFI .