Hello,
I’m trying to build kernel from source following guide here:
https://source.android.com/setup/build/devices#hikey960
git clone https://android.googlesource.com/kernel/hikey-linaro
cd hikey-linaro
git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
Kernel sources are downloaded and compiled outside AOSP tree.
AOSP was already build and boots on my board (Hikey960 rev. B with, Hynix flash).
So I just copy two files as guide says (replacing existing prebuild ones) and make boot.img from AOSP tree.
After flashing all images (including new boot.img) board do not boot (kernel crashes).
I was expecting that kernel image that I get by compiling from sources ( arch/arm64/boot/Image.gz-dtb
) will be the same as the prebuild one from AOSP (/device/linaro/hikey-kernel/Image.gz-dtb-hikey960-4.9).
Unfortunately my Image.gz-dtb differs from the prebuild one Image.gz-dtb-hikey960-4.9.
hi3660-hikey960.dtb is the same as hi3660-hikey960.dtb-4.9
Prebuild images are taken from AOSP master
repo init -u https://android.googlesource.com/platform/manifest -b master
What am I doing wrong?
Or how to get kernel sources which will allow me to build the same Kernel image as the prebuild one ?